Dash Core Source Documentation (0.16.0.1)
Find detailed information regarding the Dash Core source code.
Include dependency graph for chacha20.cpp:
Go to the source code of this file.
Macros | |
#define | QUARTERROUND(a, b, c, d) |
Functions | |
static constexpr uint32_t | rotl32 (uint32_t v, int c) |
Variables | |
static const unsigned char | sigma [] = "expand 32-byte k" |
static const unsigned char | tau [] = "expand 16-byte k" |
Macro Definition Documentation
◆ QUARTERROUND
#define QUARTERROUND | ( | a, | |
b, | |||
c, | |||
d | |||
) |
Value:
a += b; d = rotl32(d ^ a, 16); \
c += d; b = rotl32(b ^ c, 12); \
a += b; d = rotl32(d ^ a, 8); \
c += d; b = rotl32(b ^ c, 7);
Definition at line 15 of file chacha20.cpp.
Referenced by ChaCha20::Crypt(), and ChaCha20::Keystream().
Function Documentation
◆ rotl32()
|
inlinestatic |
Definition at line 13 of file chacha20.cpp.
Variable Documentation
◆ sigma
|
static |
Definition at line 21 of file chacha20.cpp.
Referenced by ChaCha20::SetKey().
◆ tau
|
static |
Definition at line 22 of file chacha20.cpp.
Referenced by ChaCha20::SetKey().