Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add AEAD_AES_128_CCM support #1501

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

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.

None yet

1 participant