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

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