56 RC5(uint32_t rounds = 12, uint32_t wordSize = 32, uint32_t blockSize = 16);
75 uint32_t
rotl(uint32_t value, uint32_t shift);
76 uint32_t
rotr(uint32_t value, uint32_t shift);
80 std::vector<uint32_t>
S;
82 const uint32_t
P = 0xB7E15163;
83 const uint32_t
Q = 0x9E3779B9;
RC5 encryption and decryption class.
uint32_t rotr(uint32_t value, uint32_t shift)
void decrypt(uint32_t &A, uint32_t &B)
Decrypts the given block.
void encrypt(uint32_t &A, uint32_t &B)
Encrypts the given block.
RC5(uint32_t rounds=12, uint32_t wordSize=32, uint32_t blockSize=16)
Constructs an RC5 object.
std::vector< uint32_t > S
uint32_t rotl(uint32_t value, uint32_t shift)
The source C++ openGPMP namespace.