#include <crypto/chacha20.h>
#include <crypto/common.h>
#include <span.h>
#include <support/cleanse.h>
#include <algorithm>
#include <cstring>
Go to the source code of this file.
|
| static constexpr uint32_t | rotl32 (uint32_t v, int c) |
| |
◆ 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 20 of file chacha20.cpp.
◆ REPEAT10
Value: do { \
{a}; \
{a}; \
{a}; \
{a}; \
{a}; \
{a}; \
{a}; \
{a}; \
{a}; \
{a}; \
} while (0)
Definition at line 32 of file chacha20.cpp.
◆ rotl32()
| static constexpr uint32_t rotl32 |
( |
uint32_t |
v, |
|
|
int |
c |
|
) |
| |
|
inlinestaticconstexpr |