[CRYPTO] cipher: Added block ciphers for CBC/ECB
This patch adds two block cipher algorithms, CBC and ECB. These
are implemented as templates on top of existing single-block cipher
algorithms. They invoke the single-block cipher through the new
encrypt_one/decrypt_one interface.
This also optimises the in-place encryption and decryption to remove
the cost of an IV copy each round.
Signed-off-by:
Herbert Xu <herbert@gondor.apana.org.au>
Showing
- crypto/Kconfig 17 additions, 0 deletionscrypto/Kconfig
- crypto/Makefile 2 additions, 0 deletionscrypto/Makefile
- crypto/cbc.c 344 additions, 0 deletionscrypto/cbc.c
- crypto/ecb.c 181 additions, 0 deletionscrypto/ecb.c
- crypto/internal.h 0 additions, 1 deletioncrypto/internal.h
- include/crypto/algapi.h 2 additions, 0 deletionsinclude/crypto/algapi.h
Loading
Please register or sign in to comment