Replies: 1 comment 2 replies
-
|
Right, this should be |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
The ristretto example has the following snippet:
Here 32 bytes k are randomly generated and$v = g^k$ is computed.
In my testing this seems to result in an invalid point v if k is not in the interval 0..L.
If it is the case that
crypto_scalarmult_ristretto255_baserequires the scalar to be in the interval 0..L it should at the very least return an error if this is the case and the example should include a reduction step for k.My current solution to solve this is to erase 4 bits from k:
k[31] &= 0xfBeta Was this translation helpful? Give feedback.
All reactions