diff options
| author | Jeffrey Walton <noloader@gmail.com> | 2016-05-28 16:01:18 -0400 |
|---|---|---|
| committer | Jeffrey Walton <noloader@gmail.com> | 2016-05-28 16:01:18 -0400 |
| commit | b86f3fef8716436705b2963baea350beebb1d790 (patch) | |
| tree | 0ffd6d67785800c9faf93fab14da9cf6b2de93dd /blake2.cpp | |
| parent | 3b583346ae0784d10b423a716b7c9d885e518772 (diff) | |
| download | cryptopp-git-b86f3fef8716436705b2963baea350beebb1d790.tar.gz | |
Backed-off assert for input byte array
Diffstat (limited to 'blake2.cpp')
| -rw-r--r-- | blake2.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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>()));
|
