nil::crypto3::block::modes::padding::basic_padding< Cipher > Struct Template Reference
Block Cipher Mode Padding Method. More...
#include <padding.hpp>
Inheritance diagram for nil::crypto3::block::modes::padding::basic_padding< Cipher >:
Collaboration diagram for nil::crypto3::block::modes::padding::basic_padding< Cipher >:
Public Types | |
typedef cipher_type::block_type | block_type |
typedef Cipher | cipher_type |
typedef std::size_t | size_type |
Static Public Attributes | |
constexpr static const size_type | block_bits = cipher_type::block_bits |
constexpr static const size_type | block_words = cipher_type::block_words |
Detailed Description
template<typename Cipher>
struct nil::crypto3::block::modes::padding::basic_padding< Cipher >
Block Cipher Mode Padding Method.
- Template Parameters
-
Cipher Block cipher used
This class is pretty limited, it cannot deal well with randomized padding methods, or any padding method that wants to add more than one block. For instance, it should be possible to define cipher text stealing mode as simply a padding mode for CBC, which happens to consume the last two block (and requires use of the block cipher).
Member Typedef Documentation
◆ block_type
template<typename Cipher >
typedef cipher_type::block_type nil::crypto3::block::modes::padding::basic_padding< Cipher >::block_type |
◆ cipher_type
template<typename Cipher >
typedef Cipher nil::crypto3::block::modes::padding::basic_padding< Cipher >::cipher_type |
◆ size_type
template<typename Cipher >
typedef std::size_t nil::crypto3::block::modes::padding::basic_padding< Cipher >::size_type |
Member Data Documentation
◆ block_bits
template<typename Cipher >
|
staticconstexpr |
◆ block_words
template<typename Cipher >
|
staticconstexpr |
The documentation for this struct was generated from the following file: