Deduplicate code for ECB encryption and decryption
authorJussi Kivilinna <jussi.kivilinna@iki.fi>
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)
commit51f1beab3d1e879942a95f58b08de7dbcce75dce
treebeb85485bcc52f62c432735583761900570029af
parentd9431725952e40f201c7eda000d3c8511ebd5b33
Deduplicate code for ECB encryption and decryption

* cipher/cipher.c (do_ecb_crypt): New, based on old 'do_ecb_encrypt'.
(do_ecb_encrypt): Use 'do_ecb_crypt', pass encryption function.
(do_ecb_decrypt): Use 'do_ecb_crypt', pass decryption function.
--

Signed-off-by: Jussi Kivilinna <jussi.kivilinna@iki.fi>
cipher/cipher.c