diff options
| author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2013-08-10 10:12:16 -0400 |
|---|---|---|
| committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2013-08-10 10:12:16 -0400 |
| commit | 67acba4bc9fe9215f384c0753ec968f032161aee (patch) | |
| tree | 8d885579505360a998ed0acd7bbf0de2aa7fb56f /selftest.cpp | |
| parent | 9979474f1e623bc362eb00b4cb882457863c44b7 (diff) | |
| download | infinitytier-67acba4bc9fe9215f384c0753ec968f032161aee.tar.gz infinitytier-67acba4bc9fe9215f384c0753ec968f032161aee.zip | |
Stop using RAND_ in libcrypto for Utils::getSecureRandom() due to annoying valgrind spew from libcrypto use of uninitialized RAM as a random source. Might look into replacing RAND_ in libcrypto with our own simple /dev/urandom / Windows CAPI plugin.
Diffstat (limited to 'selftest.cpp')
| -rw-r--r-- | selftest.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/selftest.cpp b/selftest.cpp index edbdcaf1..a8266ca3 100644 --- a/selftest.cpp +++ b/selftest.cpp @@ -64,6 +64,9 @@ static int testCrypto() unsigned char buf1[16384]; unsigned char buf2[sizeof(buf1)],buf3[sizeof(buf1)]; + //Utils::getSecureRandom(buf1,1024); + //std::cout << "[crypto] getSecureRandom() -> " << Utils::hex(buf1,1024) << std::endl; + std::cout << "[crypto] Testing ECDSA... "; std::cout.flush(); for(unsigned int k=0;k<64;++k) { EllipticCurveKeyPair kp; |
