]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: shash - require neither or both ->export() and ->import()
authorEric Biggers <ebiggers@google.com>
Mon, 7 Jan 2019 03:07:20 +0000 (19:07 -0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 18 Jan 2019 10:40:24 +0000 (18:40 +0800)
commit26c7fcdac4bc2e602bdce95190312978a50b1f45
tree7eabd787fabeef3ef189b6ff28a8787ef082ff91
parent56cef0ca301d815381851c467493a76b1c970ac4
crypto: shash - require neither or both ->export() and ->import()

Prevent registering shash algorithms that implement ->export() but not
->import(), or ->import() but not ->export().  Such cases don't make
sense and could confuse the check that shash_prepare_alg() does for just
->export().

I don't believe this affects any existing algorithms; this is just
preventing future mistakes.

Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/shash.c