mirror of
https://github.com/shadps4-emu/ext-cryptopp.git
synced 2024-11-23 09:59:42 +00:00
Use FixedSizeSecBlock in Mersenne class
This commit is contained in:
parent
5cb57e1431
commit
596af94571
@ -54,7 +54,7 @@ public:
|
||||
void IncorporateEntropy(const byte *input, size_t length)
|
||||
{
|
||||
// Handle word32 size blocks
|
||||
SecBlock<word32> temp(1);
|
||||
FixedSizeSecBlock<word32, 1> temp;
|
||||
temp[0] = 0;
|
||||
|
||||
if (length > 4)
|
||||
@ -79,7 +79,7 @@ public:
|
||||
void GenerateBlock(byte *output, size_t size)
|
||||
{
|
||||
// Handle word32 size blocks
|
||||
SecBlock<word32> temp(1);
|
||||
FixedSizeSecBlock<word32, 1> temp;
|
||||
for (size_t i=0; i < size/4; i++, output += 4)
|
||||
{
|
||||
temp[0] = NextMersenneWord();
|
||||
|
Loading…
Reference in New Issue
Block a user