diff options
author | Isis Lovecruft <isis@torproject.org> | 2018-04-06 21:23:29 +0000 |
---|---|---|
committer | Isis Lovecruft <isis@torproject.org> | 2018-04-06 21:45:28 +0000 |
commit | fe3aca149191f2eac410caa7113fb6f7e0804d8c (patch) | |
tree | aabae7d1953667965ba9fd3a6fc15f0a531ac4a0 /src/test/test_crypto.c | |
parent | 21c81348a39dd235c40656c34abb76daf88e81f3 (diff) | |
download | tor-fe3aca149191f2eac410caa7113fb6f7e0804d8c.tar.gz tor-fe3aca149191f2eac410caa7113fb6f7e0804d8c.zip |
crypto: Refactor (P)RNG functionality into new crypto_rand module.
* ADD new /src/common/crypto_rand.[ch] module.
* ADD new /src/common/crypto_util.[ch] module (contains the memwipe()
function, since all crypto_* modules need this).
* FIXES part of #24658: https://bugs.torproject.org/24658
Diffstat (limited to 'src/test/test_crypto.c')
-rw-r--r-- | src/test/test_crypto.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/test/test_crypto.c b/src/test/test_crypto.c index c8443fd3bb..24eef156b0 100644 --- a/src/test/test_crypto.c +++ b/src/test/test_crypto.c @@ -5,7 +5,7 @@ #include "orconfig.h" #define CRYPTO_CURVE25519_PRIVATE -#define CRYPTO_PRIVATE +#define CRYPTO_RAND_PRIVATE #include "or.h" #include "test.h" #include "aes.h" @@ -13,6 +13,7 @@ #include "siphash.h" #include "crypto_curve25519.h" #include "crypto_ed25519.h" +#include "crypto_rand.h" #include "ed25519_vectors.inc" /** Run unit tests for Diffie-Hellman functionality. */ |