diff options
author | Horia Geantă | 2018-09-12 15:20:48 +0200 |
---|---|---|
committer | Herbert Xu | 2018-09-21 07:24:51 +0200 |
commit | 331351f89c36bf7d03561a28b6f64fa10a9f6f3a (patch) | |
tree | f3a721e20e076f73268d21e9021f704f961651a2 /crypto/lrw.c | |
parent | arm64: defconfig: enable CAAM crypto engine on QorIQ DPAA2 SoCs (diff) | |
download | kernel-qcow2-linux-331351f89c36bf7d03561a28b6f64fa10a9f6f3a.tar.gz kernel-qcow2-linux-331351f89c36bf7d03561a28b6f64fa10a9f6f3a.tar.xz kernel-qcow2-linux-331351f89c36bf7d03561a28b6f64fa10a9f6f3a.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: 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>
Diffstat (limited to 'crypto/lrw.c')
0 files changed, 0 insertions, 0 deletions