diff options
author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2017-04-17 17:54:12 -0700 |
---|---|---|
committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2017-04-17 17:54:12 -0700 |
commit | 7a94f6305812b7ea5748283a6ec9503f4ea9c7e1 (patch) | |
tree | a0568641d5746c171b15db3e8f6af6a4e7af4fce /node/Utils.cpp | |
parent | db0edf154cd695410ed4322b733637c5a5112825 (diff) | |
download | infinitytier-7a94f6305812b7ea5748283a6ec9503f4ea9c7e1.tar.gz infinitytier-7a94f6305812b7ea5748283a6ec9503f4ea9c7e1.zip |
Back out NaCl since the old one with xmm6 salsa2012 does not support multi-block use and the new one is slower.
Diffstat (limited to 'node/Utils.cpp')
-rw-r--r-- | node/Utils.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/node/Utils.cpp b/node/Utils.cpp index 92d14d19..9ce1bf05 100644 --- a/node/Utils.cpp +++ b/node/Utils.cpp @@ -177,6 +177,7 @@ void Utils::getSecureRandom(void *buf,unsigned int bytes) } randomPtr = 0; s20.crypt12(randomBuf,randomBuf,sizeof(randomBuf)); + s20.init(randomBuf,randomBuf); } ((uint8_t *)buf)[i] = randomBuf[randomPtr++]; } @@ -209,6 +210,7 @@ void Utils::getSecureRandom(void *buf,unsigned int bytes) } randomPtr = 0; s20.crypt12(randomBuf,randomBuf,sizeof(randomBuf)); + s20.init(randomBuf,randomBuf); } ((uint8_t *)buf)[i] = randomBuf[randomPtr++]; } |