diff options
author | Jeffrey Walton <noloader@gmail.com> | 2017-09-05 16:43:29 -0400 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2017-09-05 16:43:29 -0400 |
commit | 09023bf45e5bb32ac31c5ddce0105a4e0afe3b83 (patch) | |
tree | fcf5e5a20b7a5c2b486188118e044abb11f4c478 /vmac.cpp | |
parent | 37e02f9e0e2ee627f0f95b7bc0a09f4ba1ce562e (diff) | |
download | cryptopp-git-09023bf45e5bb32ac31c5ddce0105a4e0afe3b83.tar.gz |
Align buffers for Poly1305 and VMAC
Diffstat (limited to 'vmac.cpp')
-rw-r--r-- | vmac.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -69,8 +69,8 @@ void VMAC_Base::UncheckedSetKey(const byte *userKey, unsigned int keylength, con cipher.SetKey(userKey, keylength, params);
const unsigned int blockSize = cipher.BlockSize();
const unsigned int blockSizeInWords = blockSize / sizeof(word64);
- SecBlock<word64> out(blockSizeInWords);
- SecByteBlock in;
+ SecBlock<word64, AllocatorWithCleanup<word64, true> > out(blockSizeInWords);
+ AlignedSecByteBlock in;
in.CleanNew(blockSize);
size_t i;
|