Skip to content
Commit db131ef9 authored by Herbert Xu's avatar Herbert Xu
Browse files

[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: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 5cde0af2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment