Skip to content

Conversation

@kkoyung
Copy link

@kkoyung kkoyung commented Jan 25, 2026

Add 32-bit and 64-bit tag length support to AES-GCM. (Fix #541)

Appendix C of NIST SP800-38D enforces a maxium decryption invocations on a key when using short tag, while this crate currently does not track the number of invocations. The crate users are responsible to follow the NIST enforcement. Therefore, these two newly added tag lengths are gated on the hazmat crate feature, and a warning message is added to the document.

Add 32-bit and 64-bit tag length support to AES-GCM.

Appendix C of NIST SP800-38D enforces a maxium decryption invocations on
a key when using short tag, while this crate currently does not track
the number of invocations. The crate users are responsible to follow the
NIST enforcement. Therefore, these two newly added tag lengths are gated
on the `hazmat` crate feature, and a warning message is added to the
document.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Consider adding tag size of 4 and 8 to AES GCM

1 participant