Botan  1.11.15
Namespaces | Defines | Functions
src/lib/stream/salsa20/salsa20.cpp File Reference
#include <botan/internal/stream_utils.h>
#include <botan/salsa20.h>

Go to the source code of this file.

Namespaces

namespace  Botan

Defines

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

Functions

 Botan::BOTAN_REGISTER_STREAM_CIPHER_NOARGS (Salsa20)

Define Documentation

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

Definition at line 17 of file salsa20.cpp.