commit | bbe240454d86be95151e0ecfd6ac55fe5ef5a6f5 | [log] [tgz] |
---|---|---|
author | Eric Biggers <ebiggers@google.com> | Thu Jun 08 14:49:34 2017 +0100 |
committer | James Morris <james.l.morris@oracle.com> | Fri Jun 09 13:29:49 2017 +1000 |
tree | 662839ffc98b691fe598cef81a1bab0c2b123ccd | |
parent | 0620fddb56dfaf0e1034eeb69d79c73b361debbf [diff] |
KEYS: DH: forbid using digest_null as the KDF hash Requesting "digest_null" in the keyctl_kdf_params caused an infinite loop in kdf_ctr() because the "null" hash has a digest size of 0. Fix it by rejecting hash algorithms with a digest size of 0. Signed-off-by: Eric Biggers <ebiggers@google.com> Signed-off-by: David Howells <dhowells@redhat.com> Acked-by: Stephan Mueller <smueller@chronox.de> Signed-off-by: James Morris <james.l.morris@oracle.com>