]> asedeno.scripts.mit.edu Git - linux.git/commit
crypto: bcm - check assoclen for rfc4543/rfc4106
authorIuliana Prodan <iuliana.prodan@nxp.com>
Fri, 19 Jul 2019 07:09:24 +0000 (10:09 +0300)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sat, 27 Jul 2019 11:08:37 +0000 (21:08 +1000)
commitb3553effafa027feca33e0aa357fce08b3c80b02
tree060ee6421c42008d0b5ae8ce9b3a0c69d4235b47
parentb93ecf4296742c36192621645f59e4a607263233
crypto: bcm - check assoclen for rfc4543/rfc4106

Validated assoclen for RFC4543 which expects an assoclen
of 16 or 20, the same as RFC4106.
Based on seqiv, IPsec ESP and RFC4543/RFC4106 the assoclen is sizeof
IP Header (spi, seq_no, extended seq_no) and IV len. This can be 16 or
20 bytes.

Signed-off-by: Iuliana Prodan <iuliana.prodan@nxp.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/bcm/cipher.c