crypto: cfb - add support for Cipher FeedBack mode
authorJames Bottomley <James.Bottomley@HansenPartnership.com>
Thu, 1 Mar 2018 22:36:17 +0000 (14:36 -0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 9 Mar 2018 14:45:49 +0000 (22:45 +0800)
commita7d85e06ed8033f263451f3aef4159024e7dae5f
tree4f5dc50bb388a34c718c3e6be2ed8b4d017feb96
parent6584eacb7cc7885509d4a27120a48ae1e404dc4c
crypto: cfb - add support for Cipher FeedBack mode

TPM security routines require encryption and decryption with AES in
CFB mode, so add it to the Linux Crypto schemes.  CFB is basically a
one time pad where the pad is generated initially from the encrypted
IV and then subsequently from the encrypted previous block of
ciphertext.  The pad is XOR'd into the plain text to get the final
ciphertext.

https://en.wikipedia.org/wiki/Block_cipher_mode_of_operation#CFB

Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/Kconfig
crypto/Makefile
crypto/cfb.c [new file with mode: 0644]