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

Format of r in poly1305? #617

Open
donaastor opened this issue May 28, 2023 · 0 comments
Open

Format of r in poly1305? #617

donaastor opened this issue May 28, 2023 · 0 comments

Comments

@donaastor
Copy link

I would like to know how is $r$ from Poly1305 represented in the poly1305_state structure? It is stored in 5 uint32's: r[0], r[1], r[2], r[3], r[4], but what is the format? Is it a little-endian in some base? Perhaps in the base of 0x3ffffff? Does it mean that r[0] is the value of r mod 0x3ffffff?

The main reason for this is to be able to check if $r$ is too small in which case I want to choose another one.

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

No branches or pull requests

1 participant