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

Adopt CIRCL for HPKE implementation #23

Merged
merged 2 commits into from Apr 13, 2023
Merged

Adopt CIRCL for HPKE implementation #23

merged 2 commits into from Apr 13, 2023

Conversation

chris-wood
Copy link
Owner

cc @bwesterb, as this is the first step towards adopting the xyber-based suite.


// response_nonce = random(max(Nn, Nk)), taken from the encapsualted response
responseNonceLen := max(c.suite.AEAD.KeySize(), c.suite.AEAD.NonceSize())
responseNonceLen := max(int(AEAD.KeySize()), 12)
Copy link
Owner Author

Choose a reason for hiding this comment

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

@armfazh, can we get a function in CIRCL that returns the nonce length for an AEAD?

Copy link

Choose a reason for hiding this comment

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

cloudflare/circl#424

does this help?

Copy link
Owner Author

Choose a reason for hiding this comment

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

Yes, perfect!

Copy link

Choose a reason for hiding this comment

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

done

@chris-wood chris-wood merged commit c176596 into main Apr 13, 2023
1 check passed
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

3 participants