24 #ifndef INC_LIBGCRYPTHASH_HPP_7F29545C_1293_4A6B_9980_C4C262F332D1
25 #define INC_LIBGCRYPTHASH_HPP_7F29545C_1293_4A6B_9980_C4C262F332D1
50 static inline uint32_t
rol(uint32_t x,
int n)
52 return ((x << n) | (x >> (32 - n)));
62 static inline uint32_t
ror(uint32_t x,
int n)
64 return ((x >> n) | (x << (32 - n)));
Add some utilities to Checksum class.
Computes a hash from a byte stream.
Computes a hash from a byte stream.
void reset() override=0
Resets the checksum to initial value.
static uint32_t ror(uint32_t x, int n)
Rotate the 32 bit unsigned integer x by n bits right.
static uint32_t rol(uint32_t x, int n)
Rotate the 32 bit unsigned integer x by n bits left.