HomeFreeBSD

Don't panic for empty CCM requests.

Description

Don't panic for empty CCM requests.

A request to encrypt an empty payload without any AAD is unusual, but
it is defined behavior. Removing this assertion removes a panic and
instead returns the correct tag for an empty buffer.

Reviewed by: cem, sef
MFC after: 2 weeks
Sponsored by: Chelsio Communications
Differential Revision: https://reviews.freebsd.org/D20043

Details

Provenance
jhbAuthored on
Reviewer
cem
Differential Revision
D20043: Don't panic for empty CCM requests.
Parents
rS346648: Fix requests for "plain" SHA digests of an empty buffer.
Branches
Unknown
Tags
Unknown