Skip to content

[WIP] aead: add PrefixNonceAead#2418

Draft
tarcieri wants to merge 1 commit into
masterfrom
aead/prefix-nonce-support
Draft

[WIP] aead: add PrefixNonceAead#2418
tarcieri wants to merge 1 commit into
masterfrom
aead/prefix-nonce-support

Conversation

@tarcieri
Copy link
Copy Markdown
Member

This is another attempt at #1666 (see also #1818).

Where #1818 tried to add some additional trait methods, this instead opts for a generic newtype which provides type safety around the use of prefix messages (i.e. avoids confusion around accidentally mixing up prefixed and non-prefixed messages by calling the wrong methods) and in general keeps the method space unambiguous so we don't need to worry about qualifying every method name with something to indicate it's working on nonce-prefixed messages.

TODO: tests, docs, but I'm posting this early to get feedback on the general direction

@tarcieri tarcieri force-pushed the aead/prefix-nonce-support branch from 27d714b to 4995e9a Compare May 18, 2026 19:15
@tarcieri
Copy link
Copy Markdown
Member Author

tarcieri commented May 18, 2026

I suppose this is always assuming a postfix nonce, I will need to further compose it to abstract over prefix vs postfix nonces

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