Drop _gcry_cipher_ofb_decrypt as it duplicates _gcry_cipher_ofb_encrypt
authorDmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Sat, 26 Oct 2013 11:51:44 +0000 (14:51 +0300)
committerJussi Kivilinna <jussi.kivilinna@iki.fi>
Sat, 26 Oct 2013 11:51:44 +0000 (14:51 +0300)
commitd9431725952e40f201c7eda000d3c8511ebd5b33
tree3218ae8a1f59ce18017450d7223067e0911fb98b
parent6c6d4810927de7310ae7bac61b4ff5467d7cb485
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>
cipher/cipher-internal.h
cipher/cipher-ofb.c
cipher/cipher.c