aboutsummaryrefslogtreecommitdiff
path: root/src/crypto/crypto.h
diff options
context:
space:
mode:
authorluigi1111 <luigi1111w@gmail.com>2018-07-27 14:23:54 -0500
committerluigi1111 <luigi1111w@gmail.com>2018-07-27 14:23:54 -0500
commit3fde902394946281665531abd742c64bdb23be25 (patch)
tree9eab237d53c8cda2c1d5217880b135c02f6f0b61 /src/crypto/crypto.h
parentMerge pull request #4091 (diff)
parentcrypto: remove slight bias in key generation due to modulo (diff)
downloadmonero-3fde902394946281665531abd742c64bdb23be25.tar.xz
Merge pull request #4097
61caab8 crypto: remove slight bias in key generation due to modulo (moneromooo-monero)
Diffstat (limited to 'src/crypto/crypto.h')
-rw-r--r--src/crypto/crypto.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/crypto/crypto.h b/src/crypto/crypto.h
index 9ea0f2ec0..449af8f6d 100644
--- a/src/crypto/crypto.h
+++ b/src/crypto/crypto.h
@@ -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 &&