]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: testmgr - fix sglen in test_aead for case 'dst != src'
authorHoria Geanta <horia.geanta@freescale.com>
Thu, 28 Nov 2013 13:11:18 +0000 (15:11 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 28 Nov 2013 14:25:17 +0000 (22:25 +0800)
commitf1e6a20dcb8e6af538ab211c4ccf188d94ec9cb2
tree985f9c3c6a790555230680c16f85297e4eeffefb
parent31c3b4296cdc77f71ad0c89f34111ae5a9693148
crypto: testmgr - fix sglen in test_aead for case 'dst != src'

Commit b9dd55e66aafd9e2717960ec97830941cf1dc98c (crypto: testmgr - make
test_aead also test 'dst != src' code paths) added support for different
source and destination buffers in test_aead.

This patch modifies the source and destination buffer lengths accordingly:
the lengths are not equal since encryption / decryption adds / removes
the ICV.

Cc: Jussi Kivilinna <jussi.kivilinna@mbnet.fi>
Signed-off-by: Horia Geanta <horia.geanta@freescale.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/testmgr.c