]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit - crypto/tcrypt.c
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)
commit4431bd49530c7379dffaf0963d69bdab7fbead05
treeac82c63e4c80d128014e87c958900fce512c2b66
parent7c3f13238992884abf3782dcc8e97e0862e5c23e
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