diff options
author | Paul Duncan <pabs@pablotron.org> | 2024-05-03 22:51:21 -0400 |
---|---|---|
committer | Paul Duncan <pabs@pablotron.org> | 2024-05-03 22:51:21 -0400 |
commit | 4cb43f1a39ea1479ac04bcb296fe0ddc285cea6b (patch) | |
tree | a5754a334d70ac706b5f3e51bbc59a2f5a38fdbd | |
parent | 4fdd7953fde90c0a68a3679bcdca1001b96188d6 (diff) | |
download | sha3-4cb43f1a39ea1479ac04bcb296fe0ddc285cea6b.tar.bz2 sha3-4cb43f1a39ea1479ac04bcb296fe0ddc285cea6b.zip |
sha3.c: add missing RHO_IDS
-rw-r--r-- | sha3.c | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -621,6 +621,15 @@ static inline row_t row_chi(const row_t a) { return row_eor(a, row_not(row_orn(b, c))); } +// rho lane rotate values +static const int64_t RHO_IDS[25] = { + 0, 1, 62, 28, 27, + 36, 44, 6, 55, 20, + 3, 10, 43, 25, 39, + 41, 45, 15, 21, 8, + 18, 2, 61, 56, 14, +}; + // permute IDS to take low lane of first pair and hi lane of second pair // a = [ a0, a1 ], b = [ b0, b1 ] => c = [ a0, b1 ] static const uint8x16_t PI_LO_HI_IDS = { |