diff options
author | Horia Geantă <horia.geanta@nxp.com> | 2018-09-12 16:20:48 +0300 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2018-09-21 13:24:51 +0800 |
commit | 57eed97bf971f13afd9ba159ca96480c96d73620 (patch) | |
tree | b1ce6b6e34ccf14665f63cedc4134053ff55aad0 /crypto/hash_info.c | |
parent | 7a55a1c19d1ccff6d76aab3b07016f112754c19b (diff) | |
download | linux-crypto-57eed97bf971f13afd9ba159ca96480c96d73620.tar.gz linux-crypto-57eed97bf971f13afd9ba159ca96480c96d73620.zip |
crypto: tcrypt - fix ghash-generic speed test
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: 0c9acd29225b ("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>
Diffstat (limited to 'crypto/hash_info.c')
0 files changed, 0 insertions, 0 deletions