mirror of
https://github.com/monero-project/monero.git
synced 2025-08-23 09:05:09 -04:00
crypto: remove slight bias in key generation due to modulo
This commit is contained in:
parent
eed4dba880
commit
61caab8a8c
5 changed files with 77 additions and 10 deletions
|
@ -99,6 +99,7 @@ namespace crypto {
|
|||
#pragma pack(pop)
|
||||
|
||||
void hash_to_scalar(const void *data, size_t length, ec_scalar &res);
|
||||
void random32_unbiased(unsigned char *bytes);
|
||||
|
||||
static_assert(sizeof(ec_point) == 32 && sizeof(ec_scalar) == 32 &&
|
||||
sizeof(public_key) == 32 && sizeof(secret_key) == 32 &&
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue