Botan  2.6.0
Crypto and TLS for C++11
Namespaces | Macros
chacha.cpp File Reference
#include <botan/chacha.h>
#include <botan/loadstor.h>
#include <botan/cpuid.h>

Go to the source code of this file.

Namespaces

 Botan
 

Macros

#define CHACHA_QUARTER_ROUND(a, b, c, d)
 

Macro Definition Documentation

◆ CHACHA_QUARTER_ROUND

#define CHACHA_QUARTER_ROUND (   a,
  b,
  c,
 
)
Value:
do { \
a += b; d ^= a; d = rotl<16>(d); \
c += d; b ^= c; b = rotl<12>(b); \
a += b; d ^= a; d = rotl<8>(d); \
c += d; b ^= c; b = rotl<7>(b); \
} while(0)