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 support for AES-CCM #24

Merged
merged 4 commits into from
Aug 27, 2024
Merged

Add support for AES-CCM #24

merged 4 commits into from
Aug 27, 2024

Conversation

pulsastrix
Copy link
Member

@pulsastrix pulsastrix commented Aug 22, 2024

This PR adds support for all AES-CCM variants to the COSE module and both cryptographic backends.
Part of #18.

Additionally, this PR makes some smaller optimizations to the AES-GCM code (saving one copy operation and making it consistent with the AES-CCM code) and adds support for partial IVs.

@pulsastrix pulsastrix self-assigned this Aug 22, 2024
@pulsastrix pulsastrix added the enhancement New feature or request label Aug 22, 2024
@pulsastrix pulsastrix added this to the Version 0.5 milestone Aug 22, 2024
@pulsastrix pulsastrix marked this pull request as ready for review August 22, 2024 19:14
@pulsastrix
Copy link
Member Author

This PR should now be ready for review.

Aside from the added features (AES-CCM and partial IVs), I have also applied some (new?) clippy suggestions for old code in 4b33e00.

@coveralls
Copy link

coveralls commented Aug 22, 2024

Coverage Status

coverage: 85.156% (+0.2%) from 84.95%
when pulling 6bc0fd9 on aes_ccm
into d087ba7 on main.

Copy link
Member

@falko17 falko17 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A record low of only 6 review comments from me! And these comments are only very minor, so I expect we can merge this very soon.

src/token/cose/encrypted/mod.rs Outdated Show resolved Hide resolved
src/token/cose/encrypted/mod.rs Outdated Show resolved Hide resolved
src/token/cose/encrypted/mod.rs Outdated Show resolved Hide resolved
src/token/cose/encrypted/mod.rs Outdated Show resolved Hide resolved
src/token/tests.rs Outdated Show resolved Hide resolved
tests/dcaf_cose_examples/aes-ccm/empty_payload.json Outdated Show resolved Hide resolved
pulsastrix added a commit that referenced this pull request Aug 27, 2024
Co-authored-by: Falko Galperin <10247603+falko17@users.noreply.github.com>
Copy link
Member

@falko17 falko17 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me now 👍🏻

@pulsastrix pulsastrix merged commit c7f1691 into main Aug 27, 2024
10 checks passed
@pulsastrix pulsastrix deleted the aes_ccm branch August 27, 2024 19:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants