56 void encrypt(uint32_t *x,
const uint32_t *k);
64 void decrypt(uint32_t *x,
const uint32_t *k);
85 uint32_t
rotl(uint32_t X,
int R);
95 uint32_t
rotr(uint32_t X,
int R);
Class for encryption and decryption using the RedPike algorithm.
uint32_t CONST
Constant value used in the RedPike algorithm.
void decrypt(uint32_t *x, const uint32_t *k)
Decrypts the given data using the RedPike algorithm.
int ROUNDS
Number of rounds in the RedPike algorithm.
uint32_t rotl(uint32_t X, int R)
Performs left rotation on the given value.
void encrypt(uint32_t *x, const uint32_t *k)
Encrypts the given data using the RedPike algorithm.
uint32_t rotr(uint32_t X, int R)
Performs right rotation on the given value.
The source C++ openGPMP namespace.