crypto: ccp - fix AES CFB error exposed by new test vectors
authorHook, Gary <Gary.Hook@amd.com>
Tue, 14 May 2019 21:53:23 +0000 (21:53 +0000)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 23 May 2019 06:01:07 +0000 (14:01 +0800)
commitc3b359d6567c0b8f413e924feb37cf025067d55a
tree46c8d1d7aea3f7a8368e0263c7616a5855fec67b
parent499df9674c54a733f4deb3329dfcfc5487eb7738
crypto: ccp - fix AES CFB error exposed by new test vectors

Updated testmgr will exhibit this error message when loading the
ccp-crypto module:

alg: skcipher: cfb-aes-ccp encryption failed with err -22 on test vector 3, cfg="in-place"

Update the CCP crypto driver to correctly treat CFB as a streaming mode
cipher (instead of block mode). Update the configuration for CFB to
specify the block size as a single byte;

Fixes: 2b789435d7f3 ('crypto: ccp - CCP AES crypto API support')

Signed-off-by: Gary R Hook <gary.hook@amd.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/ccp/ccp-crypto-aes.c