diff options
author | LEROY Christophe <christophe.leroy@c-s.fr> | 2017-09-12 09:03:39 (GMT) |
---|---|---|
committer | Xie Xiaobo <xiaobo.xie@nxp.com> | 2017-12-13 03:18:14 (GMT) |
commit | 6d52ef703d187e992c771f2458280e95630e37b8 (patch) | |
tree | 76a271317ade48b6e78e36b975e00ae5820a3f49 /mm/cma.h | |
parent | d773489c0d5e10cd6f48baab7a746e4f3eca27b2 (diff) | |
download | linux-6d52ef703d187e992c771f2458280e95630e37b8.tar.xz |
crypto: talitos - Don't provide setkey for non hmac hashing algs.
commit 56136631573baa537a15e0012055ffe8cfec1a33 upstream.
Today, md5sum fails with error -ENOKEY because a setkey
function is set for non hmac hashing algs, see strace output below:
mmap(NULL, 378880, PROT_READ, MAP_SHARED, 6, 0) = 0x77f50000
accept(3, 0, NULL) = 7
vmsplice(5, [{"bin/\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 378880}], 1, SPLICE_F_MORE|SPLICE_F_GIFT) = 262144
splice(4, NULL, 7, NULL, 262144, SPLICE_F_MORE) = -1 ENOKEY (Required key not available)
write(2, "Generation of hash for file kcap"..., 50) = 50
munmap(0x77f50000, 378880) = 0
This patch ensures that setkey() function is set only
for hmac hashing.
Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'mm/cma.h')
0 files changed, 0 insertions, 0 deletions