HomeFreeBSD

Fix AES-CCM requests with an AAD size smaller than a single block.

Description

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

Details

Provenance
jhbAuthored on
Differential Revision
D25140: Fix AES-CCM requests with an AAD size smaller than a single block.
Parents
rS362122: Various fixes to TLS for MIPS.
Branches
Unknown
Tags
Unknown