Skip to content

[PSQ] Allow more control over AEAD nonces for transport#1339

Draft
jschneider-bensch wants to merge 3 commits intomainfrom
jonas/psq-robust-nonces
Draft

[PSQ] Allow more control over AEAD nonces for transport#1339
jschneider-bensch wants to merge 3 commits intomainfrom
jonas/psq-robust-nonces

Conversation

@jschneider-bensch
Copy link
Collaborator

This PR changes AEAD decryption in libcrux-psq such that a decryption error will leave the receiver nonce unchanged. This is so the decrypting party can aks for re-transmission of a faulty ciphertext and re-attempt decryption. To do so safely requires that the underlying AEAD implementations do not reveal anything other than the decryption error, which is the case for the ChaCha20Poly1305 and AES-GCM implementations used here.

The PR also adds a new optional feature nonce-control which gives the application calling into libcrux-psq full control over the nonces used in Transport channels. This makes it the application's responsibility to avoid nonce re-use.

Closes #1325.
Closes #1326.

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.

[PSQ] External message counter support [PSQ] Incrementing Nonces

1 participant

Comments