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

Go to the source code of this file.

Namespaces

 Botan
 

Macros

#define SALSA20_QUARTER_ROUND(x1, x2, x3, x4)
 

Macro Definition Documentation

◆ SALSA20_QUARTER_ROUND

#define SALSA20_QUARTER_ROUND (   x1,
  x2,
  x3,
  x4 
)
Value:
do { \
x2 ^= rotl<7>(x1 + x4); \
x3 ^= rotl<9>(x2 + x1); \
x4 ^= rotl<13>(x3 + x2); \
x1 ^= rotl<18>(x4 + x3); \
} while(0)

Definition at line 15 of file salsa20.cpp.