]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix AES-CCM requests with an AAD size smaller than a single block.
authorJohn Baldwin <jhb@FreeBSD.org>
Fri, 12 Jun 2020 21:33:02 +0000 (21:33 +0000)
committerJohn Baldwin <jhb@FreeBSD.org>
Fri, 12 Jun 2020 21:33:02 +0000 (21:33 +0000)
commitb0b2161ce4b871148745fd1f451f57fb87a84992
tree8f001617613049fd9f5cb5f00eb3c5e2f5c35fb2
parent822d2d6ac94fd32049de39edfe9ac7d596b4a09b
Fix AES-CCM requests with an AAD size smaller than a single block.

The amount to copy for the first block is the minimum of the size of
the AAD region or the remaining space in the first block.

Reported by: cryptocheck -z
MFC after: 2 weeks
Sponsored by: Netflix
Differential Revision: https://reviews.freebsd.org/D25140
sys/crypto/aesni/aesni_ccm.c