]> git.baikalelectronics.ru Git - kernel.git/commit
[CRYPTO] cipher: Added block ciphers for CBC/ECB
authorHerbert Xu <herbert@gondor.apana.org.au>
Thu, 21 Sep 2006 01:44:08 +0000 (11:44 +1000)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 21 Sep 2006 01:44:08 +0000 (11:44 +1000)
commit3944d445dc6b7caab7674e203b8c9c94cf34302c
tree65330d3557a7dda47fa48876b7ea9cac1461301d
parent001bdc008e406185014ab69d4dccd7cce57074b3
[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>
crypto/Kconfig
crypto/Makefile
crypto/cbc.c [new file with mode: 0644]
crypto/ecb.c [new file with mode: 0644]
crypto/internal.h
include/crypto/algapi.h