+17
−0
+2
−0
crypto/cbc.c
0 → 100644
+344
−0
crypto/ecb.c
0 → 100644
+181
−0
+0
−1
Loading
Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more
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>