use ROTL32 in x14_shabal
no impacts on perf but easier to read
This commit is contained in:
parent
56170bb32e
commit
cc9df2d361
@ -126,10 +126,10 @@
|
||||
|
||||
#define PERM_ELT(xa0, xa1, xb0, xb1, xb2, xb3, xc, xm) do { \
|
||||
xa0 = T32((xa0 \
|
||||
^ (((xa1 << 15) | (xa1 >> 17)) * 5U) \
|
||||
^ (ROTL32(xa1, 15) * 5U) \
|
||||
^ xc) * 3U) \
|
||||
^ xb1 ^ (xb2 & ~xb3) ^ xm; \
|
||||
xb0 = T32(~(((xb0 << 1) | (xb0 >> 31)) ^ xa0)); \
|
||||
xb0 = T32(~(ROTL32(xb0, 1) ^ xa0)); \
|
||||
} while (0)
|
||||
|
||||
#define PERM_STEP_0 do { \
|
||||
|
Loading…
x
Reference in New Issue
Block a user