From d9431725952e40f201c7eda000d3c8511ebd5b33 Mon Sep 17 00:00:00 2001 From: Dmitry Eremin-Solenikov Date: Sat, 26 Oct 2013 14:51:44 +0300 Subject: 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 --- cipher/cipher-internal.h | 4 ---- 1 file changed, 4 deletions(-) (limited to 'cipher/cipher-internal.h') 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 @@ -170,10 +170,6 @@ gcry_err_code_t _gcry_cipher_cfb_decrypt /*-- cipher-ofb.c --*/ 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); -- cgit v1.2.1