mirror of
https://github.com/shadps4-emu/ext-cryptopp.git
synced 2025-02-13 09:34:56 +00:00
Use non-0 seed OldRandomPool test
This should tickle endianness issues
This commit is contained in:
parent
24db613a81
commit
860a9f4266
12
validat1.cpp
12
validat1.cpp
@ -727,13 +727,15 @@ bool TestRandomPool()
|
||||
|
||||
// https://github.com/weidai11/cryptopp/issues/452
|
||||
byte actual[32], expected[32] = {
|
||||
0x58,0x3E,0x0A,0xAC,0x79,0x71,0x19,0x18,
|
||||
0x51,0x97,0xC6,0x9B,0xEF,0x82,0x18,0x1E,
|
||||
0x9C,0x0F,0x5C,0xEF,0xC7,0x89,0xB2,0x94,
|
||||
0x04,0x96,0xD6,0xD9,0xA4,0x3B,0xB7,0xEC
|
||||
0x41,0xD1,0xEF,0x8F,0x10,0x3C,0xE2,0x94,
|
||||
0x47,0xC0,0xC3,0x86,0x66,0xBC,0x86,0x09,
|
||||
0x57,0x77,0x73,0x91,0x57,0x4D,0x93,0x66,
|
||||
0xD1,0x13,0xE1,0xBA,0x07,0x49,0x8F,0x75
|
||||
};
|
||||
|
||||
SecByteBlock seed(0x00, 384);
|
||||
SecByteBlock seed(384);
|
||||
for (size_t i=0; i<384; ++i)
|
||||
seed[i] = static_cast<byte>(i);
|
||||
old.IncorporateEntropy(seed, seed.size());
|
||||
|
||||
old.GenerateBlock(actual, sizeof(actual));
|
||||
|
Loading…
x
Reference in New Issue
Block a user