hash/include/nil/crypto3/detail/reverser.hpp
Go to the documentation of this file.
420 template<typename InputEndianness, typename OutputEndianness, int UnitBits, typename Enable = void>
438 typename std::enable_if<is_same_unit<InputEndianness, OutputEndianness, UnitBits>::value>::type> {
void reverse_bits(UnitType &unit)
The functions listed below deal with bit reversal in a unit.
Definition: block/include/nil/crypto3/detail/reverser.hpp:132
void reverse_byte(byte_type &b)
This function reverses bit order in the byte b depending on the machine word size....
Definition: block/include/nil/crypto3/detail/reverser.hpp:63
T unbounded_shr(T x)
Definition: algebra/include/nil/crypto3/detail/unbounded_shift.hpp:64
T unbounded_shl(T x)
Definition: algebra/include/nil/crypto3/detail/unbounded_shift.hpp:59
boost::uint_t< CHAR_BIT >::exact byte_type
Definition: block/include/nil/crypto3/detail/reverser.hpp:49
typename std::iterator_traits< Iterator >::value_type ValueType
Definition: algebra/include/nil/crypto3/detail/make_array.hpp:50
Definition: pair.hpp:31
static void reverse(typename boost::uint_t< UnitBits >::exact &, typename boost::uint_t< UnitBits >::exact &)
Definition: hash/include/nil/crypto3/detail/reverser.hpp:104
bit_in_unit_byte_reverser transforms the sequence of bits in each byte of the input unit into reverse...
Definition: block/include/nil/crypto3/detail/reverser.hpp:87
static void reverse(UnitType &in, UnitType &out)
Definition: hash/include/nil/crypto3/detail/reverser.hpp:92
boost::uint_t< UnitBits >::exact UnitType
Definition: hash/include/nil/crypto3/detail/reverser.hpp:90
BOOST_STATIC_ASSERT(!(UnitBits % CHAR_BIT))
bit_in_unit_byte_reverser< UnitBits, k+CHAR_BIT > next_type
Definition: hash/include/nil/crypto3/detail/reverser.hpp:89
static void reverse(ValueType &, ValueType &)
Definition: hash/include/nil/crypto3/detail/reverser.hpp:190
bit_in_unit_reverser transforms the sequence of bits in each unit of the input value into reversed se...
Definition: block/include/nil/crypto3/detail/reverser.hpp:171
static void reverse(ValueType &in, ValueType &out)
Definition: hash/include/nil/crypto3/detail/reverser.hpp:177
bit_in_unit_reverser< InputBits, UnitBits, k+UnitBits > next_type
Definition: hash/include/nil/crypto3/detail/reverser.hpp:173
boost::uint_t< UnitBits >::exact UnitType
Definition: hash/include/nil/crypto3/detail/reverser.hpp:174
BOOST_STATIC_ASSERT(!(InputBits % UnitBits) &&!(UnitBits % CHAR_BIT))
static ValueType reverse(ValueType const &val)
Definition: hash/include/nil/crypto3/detail/reverser.hpp:308
static void reverse(ValueType &val)
Definition: hash/include/nil/crypto3/detail/reverser.hpp:301
static ValueType reverse(ValueType const &val)
Definition: hash/include/nil/crypto3/detail/reverser.hpp:283
static void reverse(ValueType &)
Definition: hash/include/nil/crypto3/detail/reverser.hpp:279
static void reverse(ValueType &, ValueType &)
Definition: hash/include/nil/crypto3/detail/reverser.hpp:351
byte_in_unit_reverser transforms the sequence of bytes in each unit of the input value into reversed ...
Definition: block/include/nil/crypto3/detail/reverser.hpp:332
static void reverse(ValueType &in, ValueType &out)
Definition: hash/include/nil/crypto3/detail/reverser.hpp:338
boost::uint_t< UnitBits >::exact UnitType
Definition: hash/include/nil/crypto3/detail/reverser.hpp:335
BOOST_STATIC_ASSERT(!(InputBits % UnitBits) &&!(UnitBits % CHAR_BIT))
byte_in_unit_reverser< InputBits, UnitBits, k+UnitBits > next_type
Definition: hash/include/nil/crypto3/detail/reverser.hpp:334
constexpr static const bool value
Definition: block/include/nil/crypto3/detail/reverser.hpp:212
constexpr static const bool value
Definition: block/include/nil/crypto3/detail/reverser.hpp:373
constexpr static const bool value
Definition: block/include/nil/crypto3/detail/reverser.hpp:228
constexpr static const bool value
Definition: block/include/nil/crypto3/detail/reverser.hpp:389
constexpr static const bool value
Definition: block/include/nil/crypto3/detail/reverser.hpp:245
constexpr static const bool value
Definition: block/include/nil/crypto3/detail/reverser.hpp:406
static void reverse(ValueType &)
Definition: hash/include/nil/crypto3/detail/reverser.hpp:440
static ValueType reverse(ValueType const &val)
Definition: hash/include/nil/crypto3/detail/reverser.hpp:444
static ValueType reverse(ValueType const &val)
Definition: hash/include/nil/crypto3/detail/reverser.hpp:504
static void reverse(ValueType &val)
Definition: hash/include/nil/crypto3/detail/reverser.hpp:496
static void reverse(ValueType &val)
Definition: hash/include/nil/crypto3/detail/reverser.hpp:467
static ValueType reverse(ValueType const &val)
Definition: hash/include/nil/crypto3/detail/reverser.hpp:472