Skip to content

Conversation

@jadamcrain
Copy link

CCM is defined generically with varying Tag and Nonce lengths. This implementation constrains:

  • Tag == 16 bytes
  • Nonce == 12 bytes

per RFC 5116.

The end goal is of this PR is to get CCM modes into Rustls:

rustls/rustls#1034

Adding CCM with 16-byte tags fit perfectly into how ring currently defines other AEADs. We would need to modify the Tag abstraction a bit to support AES_128_CCM_8 which is just a truncation of the 16-byte tag.

I agree to license my contributions to each file under the terms given
at the top of each file I changed.
This was referenced Jun 6, 2022
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.

1 participant