diff options
author | Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> | 2013-10-26 14:51:44 +0300 |
---|---|---|
committer | Jussi Kivilinna <jussi.kivilinna@iki.fi> | 2013-10-26 14:51:44 +0300 |
commit | d9431725952e40f201c7eda000d3c8511ebd5b33 (patch) | |
tree | 3218ae8a1f59ce18017450d7223067e0911fb98b /cipher/cipher-internal.h | |
parent | 6c6d4810927de7310ae7bac61b4ff5467d7cb485 (diff) | |
download | libgcrypt-d9431725952e40f201c7eda000d3c8511ebd5b33.tar.gz |
Drop _gcry_cipher_ofb_decrypt as it duplicates _gcry_cipher_ofb_encrypt
* cipher/cipher.c (cipher_decrypt): Use _gcry_cipher_ofb_encrypt for OFB
decryption.
* cipher/cipher-internal.h: Remove _gcry_cipher_ofb_decrypt declaration.
* cipher/cipher-ofb.c (_gcry_cipher_ofb_decrypt): Remove.
(_gcry_cipher_ofb_encrypt): remove copying of IV to lastiv, it's
unused there.
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Diffstat (limited to 'cipher/cipher-internal.h')
-rw-r--r-- | cipher/cipher-internal.h | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/cipher/cipher-internal.h b/cipher/cipher-internal.h index 981caa83..f528c84e 100644 --- a/cipher/cipher-internal.h +++ b/cipher/cipher-internal.h @@ -173,10 +173,6 @@ gcry_err_code_t _gcry_cipher_ofb_encrypt /* */ (gcry_cipher_hd_t c, unsigned char *outbuf, unsigned int outbuflen, const unsigned char *inbuf, unsigned int inbuflen); -gcry_err_code_t _gcry_cipher_ofb_decrypt -/* */ (gcry_cipher_hd_t c, - unsigned char *outbuf, unsigned int outbuflen, - const unsigned char *inbuf, unsigned int inbuflen); /*-- cipher-ctr.c --*/ gcry_err_code_t _gcry_cipher_ctr_encrypt |