summaryrefslogtreecommitdiff
path: root/block
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2020-10-02 17:55:22 +1000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-10-17 10:11:24 +0200
commitaa1167908ac4f8119f0a52df03b5cc1a2f624260 (patch)
tree6b930e02f1255b0266cb7190ea3a8ddc46719468 /block
parent564312e08892a3e5ac38569280c89032bd7a5b00 (diff)
crypto: bcm - Verify GCM/CCM key length in setkey
commit 10a2f0b311094ffd45463a529a410a51ca025f27 upstream. The setkey function for GCM/CCM algorithms didn't verify the key length before copying the key and subtracting the salt length. This patch delays the copying of the key til after the verification has been done. It also adds checks on the key length to ensure that it's at least as long as the salt. Fixes: 9d12ba86f818 ("crypto: brcm - Add Broadcom SPU driver") Cc: <stable@vger.kernel.org> Reported-by: kiyin(尹亮) <kiyin@tencent.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'block')
0 files changed, 0 insertions, 0 deletions