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

Document constants and FieldElement #14

Open
benma opened this issue Dec 22, 2015 · 0 comments
Open

Document constants and FieldElement #14

benma opened this issue Dec 22, 2015 · 0 comments

Comments

@benma
Copy link

benma commented Dec 22, 2015

// FieldElement represents an element of the field GF(2^255 - 19). An element
// t, entries t[0]...t[9], represents the integer t[0]+2^26 t[1]+2^51 t[2]+2^77
// t[3]+2^102 t[4]+...+2^230 t[9]. Bounds on each t[i] vary depending on
// context.

Please expand the "..." and document where does exponents (26, 51, ...) come from.

Please document a bit what the constants mean here:
https://github.com/agl/ed25519/blob/278e1ec8e8a6e017cd07577924d6766039146ced/edwards25519/const.go

benma added a commit to benma/ed25519 that referenced this issue Dec 22, 2015
benma added a commit to benma/ed25519 that referenced this issue Dec 22, 2015
@benma benma mentioned this issue Dec 22, 2015
benma added a commit to benma/ed25519 that referenced this issue Dec 22, 2015
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