Public Types |
Public Member Functions |
Static Public Attributes |
Protected Member Functions |
Protected Attributes |
List of all members
nil::crypto3::mac::cmac< BlockCipher > Struct Template Reference
CMAC, also known as OMAC1. More...
#include <cmac.hpp>
Collaboration diagram for nil::crypto3::mac::cmac< BlockCipher >:
Public Types | |
typedef policy_type::block_type | block_type |
typedef BlockCipher | cipher_type |
typedef policy_type::digest_type | digest_type |
typedef policy_type::key_type | key_type |
Public Member Functions | |
void | begin_message (const block_type &block) const |
cmac (const cipher_type &cipher) | |
cmac (const key_type &key) | |
void | end_message (const block_type &block) const |
void | process_block (const block_type &block) const |
Static Public Attributes | |
constexpr static const std::size_t | block_bits = policy_type::block_bits |
constexpr static const std::size_t | block_words = policy_type::block_words |
constexpr static const std::size_t | digest_bits = policy_type::digest_bits |
constexpr static const std::size_t | key_bits = policy_type::key_bits |
constexpr static const std::size_t | key_words = policy_type::key_words |
Protected Member Functions | |
void | schedule_key (const key_type &key) |
Protected Attributes | |
cipher_type | cipher |
Detailed Description
template<typename BlockCipher>
struct nil::crypto3::mac::cmac< BlockCipher >
CMAC, also known as OMAC1.
- Template Parameters
-
BlockCipher
Member Typedef Documentation
◆ block_type
template<typename BlockCipher >
typedef policy_type::block_type nil::crypto3::mac::cmac< BlockCipher >::block_type |
◆ cipher_type
template<typename BlockCipher >
typedef BlockCipher nil::crypto3::mac::cmac< BlockCipher >::cipher_type |
◆ digest_type
template<typename BlockCipher >
typedef policy_type::digest_type nil::crypto3::mac::cmac< BlockCipher >::digest_type |
◆ key_type
template<typename BlockCipher >
typedef policy_type::key_type nil::crypto3::mac::cmac< BlockCipher >::key_type |
Constructor & Destructor Documentation
◆ cmac() [1/2]
template<typename BlockCipher >
|
inline |
◆ cmac() [2/2]
template<typename BlockCipher >
|
inline |
Member Function Documentation
◆ begin_message()
template<typename BlockCipher >
|
inline |
◆ end_message()
template<typename BlockCipher >
|
inline |
◆ process_block()
template<typename BlockCipher >
|
inline |
◆ schedule_key()
template<typename BlockCipher >
|
inlineprotected |
Member Data Documentation
◆ block_bits
template<typename BlockCipher >
|
staticconstexpr |
◆ block_words
template<typename BlockCipher >
|
staticconstexpr |
◆ cipher
template<typename BlockCipher >
|
protected |
◆ digest_bits
template<typename BlockCipher >
|
staticconstexpr |
◆ key_bits
template<typename BlockCipher >
|
staticconstexpr |
◆ key_words
template<typename BlockCipher >
|
staticconstexpr |
The documentation for this struct was generated from the following file: