#include <botan/noekeon.h>
#include <botan/internal/simd_32.h>
Go to the source code of this file.
|
#define | NOK_SIMD_GAMMA(A0, A1, A2, A3) |
|
#define | NOK_SIMD_THETA(A0, A1, A2, A3, K0, K1, K2, K3) |
|
◆ NOK_SIMD_GAMMA
#define NOK_SIMD_GAMMA |
( |
|
A0, |
|
|
|
A1, |
|
|
|
A2, |
|
|
|
A3 |
|
) |
| |
Value: do \
{ \
A1 ^= A3.andc(~A2); \
A0 ^= A2 & A1; \
\
A3 = A0; \
\
A2 ^= A0 ^ A1 ^ A3; \
\
A1 ^= A3.andc(~A2); \
A0 ^= A2 & A1; \
} while(0)
Definition at line 37 of file noekeon_simd.cpp.
◆ NOK_SIMD_THETA
#define NOK_SIMD_THETA |
( |
|
A0, |
|
|
|
A1, |
|
|
|
A2, |
|
|
|
A3, |
|
|
|
K0, |
|
|
|
K1, |
|
|
|
K2, |
|
|
|
K3 |
|
) |
| |
Value: do { \
T ^=
T.rotl<8>() ^
T.rotr<8>(); \
\
A0 ^= K0; \
A1 ^= K1; \
A2 ^= K2; \
A3 ^= K3; \
\
T = A1 ^ A3; \
T ^=
T.rotl<8>() ^
T.rotr<8>(); \
} while(0)
Definition at line 16 of file noekeon_simd.cpp.