diff options
author | Jeffrey Walton <noloader@gmail.com> | 2017-01-29 04:58:56 -0500 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2017-01-29 04:58:56 -0500 |
commit | b8adc91ce888b94505f383101ed3a2b06e4a70a2 (patch) | |
tree | b544c3450f2216194ba7b5722c3fd07c7c44cbce /blake2.cpp | |
parent | 7c7e8aa8046ac6689f4a5468842e4333badebc6c (diff) | |
download | cryptopp-git-b8adc91ce888b94505f383101ed3a2b06e4a70a2.tar.gz |
Add asserts to validation routines
Diffstat (limited to 'blake2.cpp')
-rw-r--r-- | blake2.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -3705,13 +3705,13 @@ static void BLAKE2_NEON_Compress32(const byte* input, BLAKE2_State<word32, false t0 = vext_u32(vget_high_u32(m2), vget_high_u32(m3), 1); \
t1 = vzip_u32(vget_low_u32(m3), vget_low_u32(m0)).val[0]; \
buf = vcombine_u32(t0, t1); } while(0)
-
+
#define vrorq_n_u32_16(x) vreinterpretq_u32_u16(vrev32q_u16(vreinterpretq_u16_u32(x)))
#define vrorq_n_u32_8(x) vsriq_n_u32(vshlq_n_u32((x), 24), (x), 8)
#define vrorq_n_u32(x, c) vsriq_n_u32(vshlq_n_u32((x), 32-(c)), (x), (c))
-
+
#define BLAKE2S_G1(row1,row2,row3,row4,buf) \
do { \
row1 = vaddq_u32(vaddq_u32(row1, buf), row2); row4 = veorq_u32(row4, row1); \
|