Add helper function for adding value to cipher block
authorJussi Kivilinna <jussi.kivilinna@iki.fi>
Sun, 31 Mar 2019 15:21:20 +0000 (18:21 +0300)
committerJussi Kivilinna <jussi.kivilinna@iki.fi>
Sun, 31 Mar 2019 15:21:20 +0000 (18:21 +0300)
commit0fe918fa897cca9e01cbdb80d14106cfe5af680e
treebc38e691a6734ef4578adfbb47daa16b7c8aa711
parentefd700e31dc8e1e386d367d1b682000977e0c810
Add helper function for adding value to cipher block

* cipher/cipher-internal.h (cipher_block_add): New.
* cipher/blowfish.c (_gcry_blowfish_ctr_enc): Use new helper function
for CTR block increment.
* cipher/camellia-glue.c (_gcry_camellia_ctr_enc): Ditto.
* cipher/cast5.c (_gcry_cast5_ctr_enc): Ditto.
* cipher/cipher-ctr.c (_gcry_cipher_ctr_encrypt): Ditto.
* cipher/des.c (_gcry_3des_ctr_enc): Ditto.
* cipher/rijndael.c (_gcry_aes_ctr_enc): Ditto.
* cipher/serpent.c (_gcry_serpent_ctr_enc): Ditto.
* cipher/twofish.c (_gcry_twofish_ctr_enc): Ditto.
--

Signed-off-by: Jussi Kivilinna <jussi.kivilinna@iki.fi>
cipher/blowfish.c
cipher/camellia-glue.c
cipher/cast5.c
cipher/cipher-ctr.c
cipher/cipher-internal.h
cipher/des.c
cipher/rijndael.c
cipher/serpent.c
cipher/twofish.c