HomeFreeBSD

crypto: Validate AES-GCM IV length in check_csp().

Description

crypto: Validate AES-GCM IV length in check_csp().

This centralizes the check for valid nonce lengths for AES-GCM.

While here, remove some duplicate checks for valid AES-GCM tag lengths
from ccp(4) and ccr(4).

Reviewed by: markj
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D33194

Details

Provenance
jhbAuthored on Dec 9 2021, 7:52 PM
Reviewer
markj
Differential Revision
D33194: crypto: Validate AES-GCM IV length in check_csp().
Parents
rGec498562b71a: crypto: Don't assert for empty output buffers.
Branches
Unknown
Tags
Unknown