summaryrefslogtreecommitdiff
path: root/mersenne.h
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2021-02-27 21:31:22 -0500
committerJeffrey Walton <noloader@gmail.com>2021-02-27 21:31:22 -0500
commit596af9457140a2df667579b630a071e1f7c78472 (patch)
tree48cc5b92d66b9f7fdbe556fbc0b649b0719518fb /mersenne.h
parent5cb57e1431dc3d0402042d588d067a061f7a573c (diff)
downloadcryptopp-git-596af9457140a2df667579b630a071e1f7c78472.tar.gz
Use FixedSizeSecBlock in Mersenne class
Diffstat (limited to 'mersenne.h')
-rw-r--r--mersenne.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/mersenne.h b/mersenne.h
index 2b2af111..3ec6f4c6 100644
--- a/mersenne.h
+++ b/mersenne.h
@@ -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();