Public Types |
Public Member Functions |
Static Public Member Functions |
Static Public Attributes |
List of all members
nil::crypto3::codec::detail::base_functions< 64 > Class Reference
#include <base_policy.hpp>
Inheritance diagram for nil::crypto3::codec::detail::base_functions< 64 >:
Collaboration diagram for nil::crypto3::codec::detail::base_functions< 64 >:
Public Types | |
typedef boost::uint_t< CHAR_BIT >::exact | byte_type |
typedef std::array< byte_type, constants_size > | constants_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_size > | inverted_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', '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', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '+', '/'})) | |
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, 0x3E, 0xFF, 0xFF, 0xFF, 0x3F, 0x34, 0x35, 0x36, 0x37, 0x38, 0x39, 0x3A, 0x3B, 0x3C, 0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, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF})) | |
Static Public Member Functions | |
static decoded_block_type | decode_block (const encoded_block_type &encoded) |
static encoded_block_type | encode_block (const decoded_block_type &plaintext) |
Static Public Attributes | |
constexpr static const std::size_t | constants_size = 64 |
constexpr static const std::size_t | decoded_block_bits = decoded_block_values * decoded_value_bits |
constexpr static const std::size_t | decoded_block_values = 3 |
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 = 4 |
constexpr static const std::size_t | encoded_value_bits = CHAR_BIT |
constexpr static const std::size_t | inverted_constants_size = constants_size * 4 |
constexpr static const std::size_t | padding_bits = 8 |
constexpr static const std::size_t | padding_block_bits = 6 |
Member Typedef Documentation
◆ byte_type
|
inherited |
◆ constants_type
|
inherited |
◆ decoded_block_type
|
inherited |
◆ decoded_value_type
|
inherited |
◆ encoded_block_type
|
inherited |
◆ encoded_value_type
|
inherited |
◆ inverted_constants_type
|
inherited |
Member Function Documentation
◆ CRYPTO3_INLINE_VARIABLE() [1/2]
|
inherited |
◆ CRYPTO3_INLINE_VARIABLE() [2/2]
|
inherited |
◆ decode_block()
|
inlinestatic |
◆ encode_block()
|
inlinestatic |
Member Data Documentation
◆ constants_size
|
staticconstexprinherited |
◆ decoded_block_bits
|
staticconstexprinherited |
◆ decoded_block_values
|
staticconstexprinherited |
◆ decoded_value_bits
|
staticconstexprinherited |
◆ encoded_block_bits
|
staticconstexprinherited |
◆ encoded_block_values
|
staticconstexprinherited |
◆ encoded_value_bits
|
staticconstexprinherited |
◆ inverted_constants_size
|
staticconstexprinherited |
◆ padding_bits
|
staticconstexprinherited |
◆ padding_block_bits
|
staticconstexprinherited |
The documentation for this class was generated from the following file: