nil::crypto3::codec::detail::basic_base_policy< 32 > Class Reference

#include <base_policy.hpp>

+ Inheritance diagram for nil::crypto3::codec::detail::basic_base_policy< 32 >:
+ Collaboration diagram for nil::crypto3::codec::detail::basic_base_policy< 32 >:

Public Types

typedef boost::uint_t< CHAR_BIT >::exact byte_type
 
typedef std::array< byte_type, constants_sizeconstants_type
 
typedef std::array< decoded_value_type, decoded_block_bits/CHAR_BIT > decoded_block_type
 
typedef byte_type decoded_value_type
 
typedef std::array< encoded_value_type, encoded_block_bits/CHAR_BIT > encoded_block_type
 
typedef byte_type encoded_value_type
 
typedef std::array< byte_type, inverted_constants_sizeinverted_constants_type
 

Public Member Functions

 CRYPTO3_INLINE_VARIABLE (constants_type, constants,({ 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', '2', '3', '4', '5', '6', '7'}))
 
 CRYPTO3_INLINE_VARIABLE (inverted_constants_type, inverted_constants,({0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x80, 0x80, 0xFF, 0xFF, 0x80, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x80, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x1A, 0x1B, 0x1C, 0x1D, 0x1E, 0x1F, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x81, 0xFF, 0xFF, 0xFF, 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F, 0x10, 0x11,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 0xFF}))
 

Static Public Attributes

constexpr static const std::size_t constants_size = 32
 
constexpr static const std::size_t decoded_block_bits = decoded_block_values * decoded_value_bits
 
constexpr static const std::size_t decoded_block_values = 5
 
constexpr static const std::size_t decoded_value_bits = CHAR_BIT
 
constexpr static const std::size_t encoded_block_bits = encoded_block_values * encoded_value_bits
 
constexpr static const std::size_t encoded_block_values = 8
 
constexpr static const std::size_t encoded_value_bits = CHAR_BIT
 
constexpr static const std::size_t inverted_constants_size = constants_size * 8
 
constexpr static const std::size_t padding_bits = 6
 
constexpr static const std::size_t padding_block_bits = 5
 

Member Typedef Documentation

◆ byte_type

typedef boost::uint_t<CHAR_BIT>::exact nil::crypto3::codec::detail::basic_base_policy< 32 >::byte_type

◆ constants_type

◆ decoded_block_type

◆ decoded_value_type

◆ encoded_block_type

◆ encoded_value_type

◆ inverted_constants_type

Member Function Documentation

◆ CRYPTO3_INLINE_VARIABLE() [1/2]

nil::crypto3::codec::detail::basic_base_policy< 32 >::CRYPTO3_INLINE_VARIABLE ( constants_type  ,
constants  ,
({ 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', '2', '3', '4', '5', '6', '7'})   
)

◆ CRYPTO3_INLINE_VARIABLE() [2/2]

nil::crypto3::codec::detail::basic_base_policy< 32 >::CRYPTO3_INLINE_VARIABLE ( inverted_constants_type  ,
inverted_constants  ,
({0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x80, 0x80, 0xFF, 0xFF, 0x80, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x80, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x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F, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF})   
)

Member Data Documentation

◆ constants_size

constexpr static const std::size_t nil::crypto3::codec::detail::basic_base_policy< 32 >::constants_size = 32
staticconstexpr

◆ decoded_block_bits

constexpr static const std::size_t nil::crypto3::codec::detail::basic_base_policy< 32 >::decoded_block_bits = decoded_block_values * decoded_value_bits
staticconstexpr

◆ decoded_block_values

constexpr static const std::size_t nil::crypto3::codec::detail::basic_base_policy< 32 >::decoded_block_values = 5
staticconstexpr

◆ decoded_value_bits

constexpr static const std::size_t nil::crypto3::codec::detail::basic_base_policy< 32 >::decoded_value_bits = CHAR_BIT
staticconstexpr

◆ encoded_block_bits

constexpr static const std::size_t nil::crypto3::codec::detail::basic_base_policy< 32 >::encoded_block_bits = encoded_block_values * encoded_value_bits
staticconstexpr

◆ encoded_block_values

constexpr static const std::size_t nil::crypto3::codec::detail::basic_base_policy< 32 >::encoded_block_values = 8
staticconstexpr

◆ encoded_value_bits

constexpr static const std::size_t nil::crypto3::codec::detail::basic_base_policy< 32 >::encoded_value_bits = CHAR_BIT
staticconstexpr

◆ inverted_constants_size

constexpr static const std::size_t nil::crypto3::codec::detail::basic_base_policy< 32 >::inverted_constants_size = constants_size * 8
staticconstexpr

◆ padding_bits

constexpr static const std::size_t nil::crypto3::codec::detail::basic_base_policy< 32 >::padding_bits = 6
staticconstexpr

◆ padding_block_bits

constexpr static const std::size_t nil::crypto3::codec::detail::basic_base_policy< 32 >::padding_block_bits = 5
staticconstexpr

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