summaryrefslogtreecommitdiff
path: root/src/common/crypto.h
diff options
context:
space:
mode:
authorYawning Angel <yawning@schwanenlied.me>2015-08-12 15:57:05 +0000
committerYawning Angel <yawning@schwanenlied.me>2015-08-12 15:57:05 +0000
commitaf898f54752f45fa2a8da28ca88379c89ca1f5a0 (patch)
treed6076d6456ae26d47e1f7095586b46ed16dc08b1 /src/common/crypto.h
parentda04fed865b6df09b33e6b632d51d34b3eb20d14 (diff)
downloadtor-af898f54752f45fa2a8da28ca88379c89ca1f5a0.tar.gz
tor-af898f54752f45fa2a8da28ca88379c89ca1f5a0.zip
Add crypto_rand_unmocked, which is crypto_rand without mocking.
There is odd issues with calling crypto_rand from our copy of ed25519-donna, due to mocking that are not easily resolved.
Diffstat (limited to 'src/common/crypto.h')
-rw-r--r--src/common/crypto.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/common/crypto.h b/src/common/crypto.h
index 368e9d8e32..6256f7346b 100644
--- a/src/common/crypto.h
+++ b/src/common/crypto.h
@@ -260,6 +260,7 @@ int crypto_expand_key_material_rfc5869_sha256(
/* random numbers */
int crypto_seed_rng(void);
MOCK_DECL(int,crypto_rand,(char *to, size_t n));
+int crypto_rand_unmocked(char *to, size_t n);
int crypto_strongest_rand(uint8_t *out, size_t out_len);
int crypto_rand_int(unsigned int max);
int crypto_rand_int_range(unsigned int min, unsigned int max);