Add a guideline

This commit is contained in:
Frank Denis 2018-12-23 18:49:56 +01:00
parent b4617940f3
commit 2916230061

View File

@ -46,6 +46,10 @@ SODIUM_EXPORT
int crypto_core_ed25519_scalar_invert(unsigned char *recip, const unsigned char s[64])
__attribute__ ((nonnull));
/*
* The interval `s` is sampled from should be at least 317 bits to ensure almost
* uniformity of `r` over `L`.
*/
SODIUM_EXPORT
void crypto_core_ed25519_scalar_reduce(unsigned char *r, const unsigned char s[64])
__attribute__ ((nonnull));