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

Go to the source code of this file.

Namespaces

namespace  Botan

Defines

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

Functions

 Botan::BOTAN_REGISTER_STREAM_CIPHER_NOARGS (ChaCha)

Define Documentation

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

Referenced by Botan::ChaCha::chacha().