Fix constants buffers in TestPadlockRNG

pull/730/head
Jeffrey Walton 2018-10-21 12:23:31 -04:00
parent e0d37b22f8
commit 8790467fac
No known key found for this signature in database
GPG Key ID: B36AB348921B1838
1 changed files with 2 additions and 0 deletions

View File

@ -733,6 +733,8 @@ bool TestMersenne()
pass = Test_RandomNumberGenerator(padlock);
SecByteBlock zero(16), one(16), t(16);
std::memset(zero, 0x00, zero.size());
std::memset( one, 0xff, one.size());
// Cryptography Research, Inc tests
word32 oldDivisor = padlock.SetDivisor(0);