summaryrefslogtreecommitdiffstats
path: root/crypto/testmgr.h
diff options
context:
space:
mode:
authorIuliana Prodan2019-03-22 13:12:30 +0100
committerHerbert Xu2019-03-28 06:54:32 +0100
commitb4e9e931e9bb2f5b302ce66640832f5a3e57e8c4 (patch)
tree6c209289547a11d9d16692235aec3fc0540af91d /crypto/testmgr.h
parentMerge branch 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert... (diff)
downloadkernel-qcow2-linux-b4e9e931e9bb2f5b302ce66640832f5a3e57e8c4.tar.gz
kernel-qcow2-linux-b4e9e931e9bb2f5b302ce66640832f5a3e57e8c4.tar.xz
kernel-qcow2-linux-b4e9e931e9bb2f5b302ce66640832f5a3e57e8c4.zip
crypto: caam - fix copy of next buffer for xcbc and cmac
Fix a side effect of adding xcbc support, when the next_buffer is not copied. The issue occurs, when there is stored from previous state a blocksize buffer and received, a less than blocksize, from user. In this case, the nents for req->src is 0, and the next_buffer is not copied. An example is: { .tap = { 17, 15, 8 }, .psize = 40, .np = 3, .ksize = 16, } Fixes: 12b8567f6fa4 ("crypto: caam - add support for xcbc(aes)") Signed-off-by: Iuliana Prodan <iuliana.prodan@nxp.com> Reviewed-by: Horia Geantă <horia.geanta@nxp.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/testmgr.h')
0 files changed, 0 insertions, 0 deletions