commit | db131ef9084110d9e82549c0a627e157e8bb99d7 | [log] [tgz] |
---|---|---|
author | Herbert Xu <herbert@gondor.apana.org.au> | Thu Sep 21 11:44:08 2006 +1000 |
committer | Herbert Xu <herbert@gondor.apana.org.au> | Thu Sep 21 11:44:08 2006 +1000 |
tree | 65330d3557a7dda47fa48876b7ea9cac1461301d | |
parent | 5cde0af2a9825dd1edaca233bd9590566579ef21 [diff] |
[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>