summaryrefslogtreecommitdiff
path: root/drivers/crypto/omap-aes.h
diff options
context:
space:
mode:
authorArd Biesheuvel <ardb@kernel.org>2019-11-05 16:01:04 +0200
committerHerbert Xu <herbert@gondor.apana.org.au>2019-12-11 16:36:59 +0800
commitb877ad1a135c802d4529a72aa82faf46ef5db097 (patch)
tree0059418c5856ae710afd77d8ce4c2ed4711da237 /drivers/crypto/omap-aes.h
parent12adf9d63ec3af674f1e3145308a29daffb73887 (diff)
crypto: omap-aes-gcm - check length of assocdata in RFC4106 mode
RFC4106 requires the associated data to be a certain size, so reject inputs that are wrong. This also prevents crashes or other problems due to assoclen becoming negative after subtracting 8 bytes. Signed-off-by: Ard Biesheuvel <ardb@kernel.org> Reviewed-by: Tero Kristo <t-kristo@ti.com> Tested-by: Tero Kristo <t-kristo@ti.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/omap-aes.h')
0 files changed, 0 insertions, 0 deletions