Back out NaCl since the old one with xmm6 salsa2012 does not support multi-block use and the new one is slower.
This commit is contained in:
parent
db0edf154c
commit
7a94f63058
31 changed files with 18 additions and 792 deletions
|
@ -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++];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue