]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
crypto: tcrypt - fix ghash-generic speed test
authorHoria Geantă <horia.geanta@nxp.com>
Wed, 12 Sep 2018 13:20:48 +0000 (16:20 +0300)
committerJuerg Haefliger <juergh@canonical.com>
Wed, 24 Jul 2019 01:57:22 +0000 (19:57 -0600)
commit5ed3c7ee4ca64ac3634f000200f0bdd582fd5062
tree10b1fa794ddd5644552ce6768ad95a5036f34ac4
parent19d2fffe041b1fa37128cf4075cd074e490b336c
crypto: tcrypt - fix ghash-generic speed test

BugLink: https://bugs.launchpad.net/bugs/1836802
commit 331351f89c36bf7d03561a28b6f64fa10a9f6f3a upstream.

ghash is a keyed hash algorithm, thus setkey needs to be called.
Otherwise the following error occurs:
$ modprobe tcrypt mode=318 sec=1
testing speed of async ghash-generic (ghash-generic)
tcrypt: test  0 (   16 byte blocks,   16 bytes per update,   1 updates):
tcrypt: hashing failed ret=-126

Cc: <stable@vger.kernel.org> # 4.6+
Fixes: 0660511c0bee ("crypto: tcrypt - Use ahash")
Tested-by: Franck Lenormand <franck.lenormand@nxp.com>
Signed-off-by: Horia Geantă <horia.geanta@nxp.com>
Acked-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
crypto/tcrypt.c