OSDN Git Service

crypto: tcrypt - fix buffer lengths in test_aead_speed()
authorRobert Baronescu <robert.baronescu@nxp.com>
Tue, 10 Oct 2017 10:22:00 +0000 (13:22 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Dec 2017 09:07:29 +0000 (10:07 +0100)
commit18498f1c7089035faba2bc9ba64c5c96542ae0c4
tree1e7585feae81795c5c40fed3605c5e58b4abdad2
parent2ed46cbf23fc48ea63e3a3eaa820de5d54534cb6
crypto: tcrypt - fix buffer lengths in test_aead_speed()

[ Upstream commit 7aacbfcb331ceff3ac43096d563a1f93ed46e35e ]

Fix the way the length of the buffers used for
encryption / decryption are computed.
For e.g. in case of encryption, input buffer does not contain
an authentication tag.

Signed-off-by: Robert Baronescu <robert.baronescu@nxp.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
crypto/tcrypt.c