Dark Mode

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Committing AEAD marker traits and generic constructions#564

Open
rlee287 wants to merge 8 commits intoRustCrypto:masterfrom
rlee287:committing_ae
Open

Committing AEAD marker traits and generic constructions#564
rlee287 wants to merge 8 commits intoRustCrypto:masterfrom
rlee287:committing_ae

Conversation

Copy link

rlee287 commented Oct 31, 2023

This is a successor to the PR RustCrypto/traits#1365.

Notes for the future as to schemes I chose not to implement:

  • Appending a hash of the key to the tag: This scheme would provide key-commitment security, but it has catastrophic interactions with the naive key rotation scheme of replacing a key by hashing the existing one.
  • CTX+: An attacker that obtains the inner tag of a ciphertext may be able to perform a length extension attack by extending the AAD to forge a new tag. (Admittedly, this is an unlikely attack scenario, but this consideration was what led me to create CTXish-HMAC instead of a CTX+ish-HMAC.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant