Go to the documentation of this file.
32 #define TRACE_LEVEL CRYPTO_TRACE_LEVEL
39 #if (SALSA20_SUPPORT == ENABLED)
42 #define QUARTER_ROUND(a, b, c, d) \
44 b ^= ROL32(a + d, 7); \
45 c ^= ROL32(b + a, 9); \
46 d ^= ROL32(c + b, 13); \
47 a ^= ROL32(d + c, 18); \
64 for(i = 0; i < 16; i++)
70 for(i = 0; i < nr; i += 2)
88 for(i = 0; i < 16; i++)
#define QUARTER_ROUND(a, b, c, d)
General definitions for cryptographic algorithms.
void salsa20ProcessBlock(const uint8_t *input, uint8_t *output, uint_t nr)
Salsa20 core function.
Salsa20 encryption algorithm.