]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: bcm - convert to use crypto_authenc_extractkeys()
authorEric Biggers <ebiggers@google.com>
Mon, 17 Dec 2018 07:23:23 +0000 (23:23 -0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 10 Jan 2019 13:37:31 +0000 (21:37 +0800)
commit30d73f66c77a13dd2293492449bc8598d780015b
tree46705ef8eb4a9574def091929841c7a75ec4360f
parent50195db59dc5cde5585a4c0ea22a879bb0de3d44
crypto: bcm - convert to use crypto_authenc_extractkeys()

Convert the bcm crypto driver to use crypto_authenc_extractkeys() so
that it picks up the fix for broken validation of rtattr::rta_len.

This also fixes the DES weak key check to actually be done on the right
key. (It was checking the authentication key, not the encryption key...)

Fixes: fafe61d8dac2 ("crypto: brcm - Add Broadcom SPU driver")
Cc: <stable@vger.kernel.org> # v4.11+
Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/Kconfig
drivers/crypto/bcm/cipher.c