Cipher Fayadh
Block cipher Feistel 128-bit dengan fungsi putaran sigma-delta
Toggle main menu visibility
Loading...
Searching...
No Matches
bits.hpp
Go to the documentation of this file.
1
#ifndef BITS_HPP
2
#define BITS_HPP
3
4
#include <cstdint>
5
10
21
inline
uint64_t
rotl64
(uint64_t x,
unsigned
n){
22
return
(x << n) | x >> (64 - n);
23
}
24
25
36
inline
uint32_t
rotl32
(uint32_t x,
unsigned
n){
37
return
(x << n) | x >> (32 - n);
38
}
39
40
#endif
rotl32
uint32_t rotl32(uint32_t x, unsigned n)
Rotasi kiri 32 bit.
Definition
bits.hpp:36
rotl64
uint64_t rotl64(uint64_t x, unsigned n)
Rotasi kiri 64 bit.
Definition
bits.hpp:21
include
bits.hpp
Generated by
1.18.0