summaryrefslogtreecommitdiff
path: root/vmac.cpp
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2017-09-05 16:43:29 -0400
committerJeffrey Walton <noloader@gmail.com>2017-09-05 16:43:29 -0400
commit09023bf45e5bb32ac31c5ddce0105a4e0afe3b83 (patch)
treefcf5e5a20b7a5c2b486188118e044abb11f4c478 /vmac.cpp
parent37e02f9e0e2ee627f0f95b7bc0a09f4ba1ce562e (diff)
downloadcryptopp-git-09023bf45e5bb32ac31c5ddce0105a4e0afe3b83.tar.gz
Align buffers for Poly1305 and VMAC
Diffstat (limited to 'vmac.cpp')
-rw-r--r--vmac.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/vmac.cpp b/vmac.cpp
index 8978a73a..c99b2692 100644
--- a/vmac.cpp
+++ b/vmac.cpp
@@ -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;