summaryrefslogtreecommitdiff
path: root/blake2.cpp
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2016-05-28 16:01:18 -0400
committerJeffrey Walton <noloader@gmail.com>2016-05-28 16:01:18 -0400
commitb86f3fef8716436705b2963baea350beebb1d790 (patch)
tree0ffd6d67785800c9faf93fab14da9cf6b2de93dd /blake2.cpp
parent3b583346ae0784d10b423a716b7c9d885e518772 (diff)
downloadcryptopp-git-b86f3fef8716436705b2963baea350beebb1d790.tar.gz
Backed-off assert for input byte array
Diffstat (limited to 'blake2.cpp')
-rw-r--r--blake2.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/blake2.cpp b/blake2.cpp
index a18de170..64048958 100644
--- a/blake2.cpp
+++ b/blake2.cpp
@@ -3441,6 +3441,7 @@ static const int LANE_L64 = 0;
static void BLAKE2_NEON_Compress32(const byte* input, BLAKE2_State<word32, false>& state)
{
+ assert(IsAlignedOn(input,GetAlignmentOf<uint8_t*>()));
assert(IsAlignedOn(&state.h[0],GetAlignmentOf<uint32x4_t>()));
assert(IsAlignedOn(&state.h[4],GetAlignmentOf<uint32x4_t>()));
assert(IsAlignedOn(&state.t[0],GetAlignmentOf<uint32x4_t>()));
@@ -3946,7 +3947,7 @@ static void BLAKE2_NEON_Compress32(const byte* input, BLAKE2_State<word32, false
static void BLAKE2_NEON_Compress64(const byte* input, BLAKE2_State<word64, true>& state)
{
- assert(IsAlignedOn(input,GetAlignmentOf<uint8x16_t>()));
+ assert(IsAlignedOn(input,GetAlignmentOf<uint8_t*>()));
assert(IsAlignedOn(&state.h[0],GetAlignmentOf<uint64x2_t>()));
assert(IsAlignedOn(&state.h[4],GetAlignmentOf<uint64x2_t>()));
assert(IsAlignedOn(&state.t[0],GetAlignmentOf<uint64x2_t>()));