]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: tcrypt - fix AEAD decryption speed test
authorGilad Ben-Yossef <gilad@benyossef.com>
Sun, 17 Dec 2017 08:29:01 +0000 (08:29 +0000)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 28 Dec 2017 06:56:39 +0000 (17:56 +1100)
commit4d566047b96ee4191242538f631050b1c0322de1
treeac82c63e4c80d128014e87c958900fce512c2b66
parenta027cf56895e2f70a710c48e4a0a3c19f34bd98c
crypto: tcrypt - fix AEAD decryption speed test

The AEAD speed test pretended to support decryption, however that support
was broken as decryption requires a valid auth field which the test did
not provide.

Fix this by running the encryption path once with inout/output sgls
switched to calculate the auth field prior to performing decryption
speed tests.

Signed-off-by: Gilad Ben-Yossef <gilad@benyossef.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/tcrypt.c