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

Bitwise operations on secret key #11

Closed
gjedeer opened this issue Jun 1, 2017 · 2 comments
Closed

Bitwise operations on secret key #11

gjedeer opened this issue Jun 1, 2017 · 2 comments

Comments

@gjedeer
Copy link

gjedeer commented Jun 1, 2017

I'm wondering what's the reason why there are bit-wise operations on the secret key in generatePrivateKey():

https://github.com/tgalal/python-axolotl-curve25519/blame/e4a9c4de0eae27223200579c58d1f8f6d20637e2/curve25519module.c#L98

I've been trying to find something similar in the reference 25519 implementation by Bernstein and I could not. Care to point me in the right direction?

@Vinc0682
Copy link

These operations are specified on Bernstein's official homepage: https://cr.yp.to/ecdh.html

@gjedeer
Copy link
Author

gjedeer commented Apr 25, 2018

I see, he just used a precomputed secret key that's why these operations were already performed. Thanks @Vinc0682

@gjedeer gjedeer closed this as completed Apr 25, 2018
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

2 participants