nil::crypto3::hashes::detail::ripemd_policy< 160 > Struct Reference

#include <ripemd_policy.hpp>

+ Inheritance diagram for nil::crypto3::hashes::detail::ripemd_policy< 160 >:
+ Collaboration diagram for nil::crypto3::hashes::detail::ripemd_policy< 160 >:

Classes

struct  iv_generator
 

Public Types

typedef std::array< word_type, block_wordsblock_type
 
typedef boost::uint_t< byte_bits >::exact byte_type
 
typedef boost::uint_t< byte_bits >::exact byte_type
 
typedef boost::uint_t< byte_bits >::exact byte_type
 
typedef stream_endian::little_octet_big_bit digest_endian
 
typedef static_digest< digest_bitsdigest_type
 
typedef std::array< byte_type, key_indexes_sizekey_indexes_type
 
typedef std::array< std::uint8_t, pkcs_id_sizepkcs_id_type
 
typedef std::array< word_type, state_wordsstate_type
 
typedef basic_ripemd_policy< 160 >::word_type word_type
 

Static Public Member Functions

template<std::size_t n>
static word_type rotl (word_type x)
 
template<std::size_t n>
static word_type rotl (word_type x)
 
template<std::size_t n>
static word_type rotl (word_type x)
 
static word_type rotl (word_type x, std::size_t n)
 
static word_type rotl (word_type x, std::size_t n)
 
static word_type rotl (word_type x, std::size_t n)
 
template<std::size_t n>
static word_type rotr (word_type x)
 
template<std::size_t n>
static word_type rotr (word_type x)
 
template<std::size_t n>
static word_type rotr (word_type x)
 
static word_type rotr (word_type x, std::size_t n)
 
static word_type rotr (word_type x, std::size_t n)
 
static word_type rotr (word_type x, std::size_t n)
 
template<std::size_t n>
static word_type shl (word_type x)
 
template<std::size_t n>
static word_type shl (word_type x)
 
template<std::size_t n>
static word_type shl (word_type x)
 
static word_type shl (word_type x, std::size_t n)
 
static word_type shl (word_type x, std::size_t n)
 
static word_type shl (word_type x, std::size_t n)
 
template<std::size_t n>
static word_type shr (word_type x)
 
template<std::size_t n>
static word_type shr (word_type x)
 
template<std::size_t n>
static word_type shr (word_type x)
 
static word_type shr (word_type x, std::size_t n)
 
static word_type shr (word_type x, std::size_t n)
 
static word_type shr (word_type x, std::size_t n)
 

Static Public Attributes

constexpr static const std::size_t block_bits
 
constexpr static const std::size_t block_words
 
constexpr static const std::size_t byte_bits = CHAR_BIT
 
constexpr static const std::size_t digest_bits
 
constexpr static const std::uint8_t ieee1363_hash_id = 0x31
 
constexpr static const std::size_t key_indexes_size
 
constexpr static const std::size_t length_bits
 
constexpr static const pkcs_id_type pkcs_id
 
constexpr static const std::size_t pkcs_id_bits
 
constexpr static const std::size_t pkcs_id_size
 
constexpr static const key_indexes_type r1
 
constexpr static const key_indexes_type r2
 
constexpr static const key_indexes_type s1
 
constexpr static const key_indexes_type s2
 
constexpr static const std::size_t state_bits = state_words * word_bits
 
constexpr static const std::size_t state_words = 5
 
constexpr static const std::size_t word_bits = basic_ripemd_policy<160>::word_bits
 

Member Typedef Documentation

◆ block_type

◆ byte_type [1/3]

typedef boost::uint_t<byte_bits>::exact nil::crypto3::detail::basic_functions< 32 >::byte_type
inherited

◆ byte_type [2/3]

typedef boost::uint_t<byte_bits>::exact nil::crypto3::detail::basic_functions< 32 >::byte_type
inherited

◆ byte_type [3/3]

typedef boost::uint_t<byte_bits>::exact nil::crypto3::detail::basic_functions< 32 >::byte_type
inherited

◆ digest_endian

◆ digest_type

◆ key_indexes_type

◆ pkcs_id_type

typedef std::array<std::uint8_t, pkcs_id_size> nil::crypto3::hashes::detail::basic_ripemd_policy< DigestBits >::pkcs_id_type
inherited

◆ state_type

◆ word_type

Member Function Documentation

◆ rotl() [1/6]

template<std::size_t n>
static word_type nil::crypto3::detail::basic_functions< 32 >::rotl ( word_type  x)
inlinestaticinherited

◆ rotl() [2/6]

template<std::size_t n>
static word_type nil::crypto3::detail::basic_functions< 32 >::rotl ( word_type  x)
inlinestaticinherited

◆ rotl() [3/6]

template<std::size_t n>
static word_type nil::crypto3::detail::basic_functions< 32 >::rotl ( word_type  x)
inlinestaticinherited

◆ rotl() [4/6]

static word_type nil::crypto3::detail::basic_functions< 32 >::rotl ( word_type  x,
std::size_t  n 
)
inlinestaticinherited

◆ rotl() [5/6]

static word_type nil::crypto3::detail::basic_functions< 32 >::rotl ( word_type  x,
std::size_t  n 
)
inlinestaticinherited

◆ rotl() [6/6]

static word_type nil::crypto3::detail::basic_functions< 32 >::rotl ( word_type  x,
std::size_t  n 
)
inlinestaticinherited

◆ rotr() [1/6]

template<std::size_t n>
static word_type nil::crypto3::detail::basic_functions< 32 >::rotr ( word_type  x)
inlinestaticinherited

◆ rotr() [2/6]

template<std::size_t n>
static word_type nil::crypto3::detail::basic_functions< 32 >::rotr ( word_type  x)
inlinestaticinherited

◆ rotr() [3/6]

template<std::size_t n>
static word_type nil::crypto3::detail::basic_functions< 32 >::rotr ( word_type  x)
inlinestaticinherited

◆ rotr() [4/6]

static word_type nil::crypto3::detail::basic_functions< 32 >::rotr ( word_type  x,
std::size_t  n 
)
inlinestaticinherited

◆ rotr() [5/6]

static word_type nil::crypto3::detail::basic_functions< 32 >::rotr ( word_type  x,
std::size_t  n 
)
inlinestaticinherited

◆ rotr() [6/6]

static word_type nil::crypto3::detail::basic_functions< 32 >::rotr ( word_type  x,
std::size_t  n 
)
inlinestaticinherited

◆ shl() [1/6]

template<std::size_t n>
static word_type nil::crypto3::detail::basic_functions< 32 >::shl ( word_type  x)
inlinestaticinherited

◆ shl() [2/6]

template<std::size_t n>
static word_type nil::crypto3::detail::basic_functions< 32 >::shl ( word_type  x)
inlinestaticinherited

◆ shl() [3/6]

template<std::size_t n>
static word_type nil::crypto3::detail::basic_functions< 32 >::shl ( word_type  x)
inlinestaticinherited

◆ shl() [4/6]

static word_type nil::crypto3::detail::basic_functions< 32 >::shl ( word_type  x,
std::size_t  n 
)
inlinestaticinherited

◆ shl() [5/6]

static word_type nil::crypto3::detail::basic_functions< 32 >::shl ( word_type  x,
std::size_t  n 
)
inlinestaticinherited

◆ shl() [6/6]

static word_type nil::crypto3::detail::basic_functions< 32 >::shl ( word_type  x,
std::size_t  n 
)
inlinestaticinherited

◆ shr() [1/6]

template<std::size_t n>
static word_type nil::crypto3::detail::basic_functions< 32 >::shr ( word_type  x)
inlinestaticinherited

◆ shr() [2/6]

template<std::size_t n>
static word_type nil::crypto3::detail::basic_functions< 32 >::shr ( word_type  x)
inlinestaticinherited

◆ shr() [3/6]

template<std::size_t n>
static word_type nil::crypto3::detail::basic_functions< 32 >::shr ( word_type  x)
inlinestaticinherited

◆ shr() [4/6]

static word_type nil::crypto3::detail::basic_functions< 32 >::shr ( word_type  x,
std::size_t  n 
)
inlinestaticinherited

◆ shr() [5/6]

static word_type nil::crypto3::detail::basic_functions< 32 >::shr ( word_type  x,
std::size_t  n 
)
inlinestaticinherited

◆ shr() [6/6]

static word_type nil::crypto3::detail::basic_functions< 32 >::shr ( word_type  x,
std::size_t  n 
)
inlinestaticinherited

Member Data Documentation

◆ block_bits

constexpr static const std::size_t nil::crypto3::hashes::detail::basic_ripemd_policy< DigestBits >::block_bits
staticconstexprinherited

◆ block_words

constexpr static const std::size_t nil::crypto3::hashes::detail::basic_ripemd_policy< DigestBits >::block_words
staticconstexprinherited

◆ byte_bits

constexpr static const std::size_t nil::crypto3::stream::detail::basic_functions< 32 >::byte_bits = CHAR_BIT
staticconstexprinherited

◆ digest_bits

constexpr static const std::size_t nil::crypto3::hashes::detail::basic_ripemd_policy< DigestBits >::digest_bits
staticconstexprinherited

◆ ieee1363_hash_id

constexpr static const std::uint8_t nil::crypto3::hashes::detail::ripemd_policy< 160 >::ieee1363_hash_id = 0x31
staticconstexpr

◆ key_indexes_size

constexpr static const std::size_t nil::crypto3::hashes::detail::basic_ripemd_policy< DigestBits >::key_indexes_size
staticconstexprinherited

◆ length_bits

constexpr static const std::size_t nil::crypto3::hashes::detail::basic_ripemd_policy< DigestBits >::length_bits
staticconstexprinherited

◆ pkcs_id

constexpr basic_ripemd_policy< DigestSize >::pkcs_id_type const nil::crypto3::hashes::detail::basic_ripemd_policy< DigestSize >::pkcs_id
staticconstexprinherited

◆ pkcs_id_bits

constexpr static const std::size_t nil::crypto3::hashes::detail::basic_ripemd_policy< DigestBits >::pkcs_id_bits
staticconstexprinherited

◆ pkcs_id_size

constexpr static const std::size_t nil::crypto3::hashes::detail::basic_ripemd_policy< DigestBits >::pkcs_id_size
staticconstexprinherited

◆ r1

constexpr basic_ripemd_policy< DigestSize >::key_indexes_type const nil::crypto3::hashes::detail::basic_ripemd_policy< DigestSize >::r1
staticconstexprinherited

◆ r2

constexpr basic_ripemd_policy< DigestSize >::key_indexes_type const nil::crypto3::hashes::detail::basic_ripemd_policy< DigestSize >::r2
staticconstexprinherited

◆ s1

constexpr basic_ripemd_policy< DigestSize >::key_indexes_type const nil::crypto3::hashes::detail::basic_ripemd_policy< DigestSize >::s1
staticconstexprinherited

◆ s2

constexpr basic_ripemd_policy< DigestSize >::key_indexes_type const nil::crypto3::hashes::detail::basic_ripemd_policy< DigestSize >::s2
staticconstexprinherited

◆ state_bits

constexpr static const std::size_t nil::crypto3::hashes::detail::ripemd_policy< 160 >::state_bits = state_words * word_bits
staticconstexpr

◆ state_words

constexpr static const std::size_t nil::crypto3::hashes::detail::ripemd_policy< 160 >::state_words = 5
staticconstexpr

◆ word_bits

constexpr static const std::size_t nil::crypto3::hashes::detail::ripemd_policy< 160 >::word_bits = basic_ripemd_policy<160>::word_bits
staticconstexpr

The documentation for this struct was generated from the following file: