]> 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)
commit3060c5a4fd09cf8d091794d1e1157d3ba5bdba80
tree985f9c3c6a790555230680c16f85297e4eeffefb
parent1a638a3211bd86309d5a1873284610bc58795c5a
crypto: testmgr - fix sglen in test_aead for case 'dst != src'

Commit b2c7a5413770331c5852f1f992e1211fe3e134cf (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