diff options
author | Eric Biggers <ebiggers@google.com> | 2018-01-03 11:16:25 -0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-02-16 20:09:43 +0100 |
commit | de1ca9ef43de77e507752182c1b5050851a1aa58 (patch) | |
tree | 3ff2b5aa93b181cdb098aadc20ed681493954be2 /arch/x86/crypto/sha256-avx-asm.S | |
parent | 693d395faecaab8321d506042653fe81aa7d6da0 (diff) |
crypto: poly1305 - remove ->setkey() method
commit a16e772e664b9a261424107784804cffc8894977 upstream.
Since Poly1305 requires a nonce per invocation, the Linux kernel
implementations of Poly1305 don't use the crypto API's keying mechanism
and instead expect the key and nonce as the first 32 bytes of the data.
But ->setkey() is still defined as a stub returning an error code. This
prevents Poly1305 from being used through AF_ALG and will also break it
completely once we start enforcing that all crypto API users (not just
AF_ALG) call ->setkey() if present.
Fix it by removing crypto_poly1305_setkey(), leaving ->setkey as NULL.
Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'arch/x86/crypto/sha256-avx-asm.S')
0 files changed, 0 insertions, 0 deletions