]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf703c2d64a0e86ccee702aa5da7028e06b9ac663
tree4f5dc50bb388a34c718c3e6be2ed8b4d017feb96
parent5a033ea211fbac873c5517e296c0c718dd72782c
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]