#include <crypto/chacha20.h>
#include <crypto/common.h>
#include <cstring>
Go to the source code of this file.
|
static constexpr uint32_t | rotl32 (uint32_t v, int c) |
|
|
static const uint8_t | sigma [] = "expand 32-byte k" |
|
static const uint8_t | tau [] = "expand 16-byte k" |
|
◆ QUARTERROUND
#define QUARTERROUND |
( |
|
a, |
|
|
|
b, |
|
|
|
c, |
|
|
|
d |
|
) |
| |
Value: do { \
a += b; \
c += d; \
a += b; \
c += d; \
} while (0)
static constexpr uint32_t rotl32(uint32_t v, int c)
Definition at line 17 of file chacha20.cpp.
◆ rotl32()
static constexpr uint32_t rotl32 |
( |
uint32_t |
v, |
|
|
int |
c |
|
) |
| |
|
inlinestaticconstexpr |
◆ sigma
const uint8_t sigma[] = "expand 32-byte k" |
|
static |
◆ tau
const uint8_t tau[] = "expand 16-byte k" |
|
static |