nil::crypto3::block::modes::padding::esp< Cipher > Struct Template Reference

ESP Padding (RFC 4304) More...

#include <padding.hpp>

+ Inheritance diagram for nil::crypto3::block::modes::padding::esp< Cipher >:
+ Collaboration diagram for nil::crypto3::block::modes::padding::esp< Cipher >:

Public Types

typedef basic_padding< Cipher >::block_type block_type
 
typedef basic_padding< Cipher >::cipher_type cipher_type
 
typedef basic_padding< Cipher >::size_type size_type
 

Static Public Member Functions

static void pad (const block_type &block, size_type bytes_in_block)
 
static void unpad (const block_type &block, size_type size)
 

Static Public Attributes

constexpr static const size_type block_bits = basic_padding<Cipher>::block_bits
 
constexpr static const size_type block_words = basic_padding<Cipher>::block_words
 

Detailed Description

template<typename Cipher>
struct nil::crypto3::block::modes::padding::esp< Cipher >

ESP Padding (RFC 4304)

Template Parameters
Cipher

Member Typedef Documentation

◆ block_type

template<typename Cipher >
typedef basic_padding<Cipher>::block_type nil::crypto3::block::modes::padding::esp< Cipher >::block_type

◆ cipher_type

template<typename Cipher >
typedef basic_padding<Cipher>::cipher_type nil::crypto3::block::modes::padding::esp< Cipher >::cipher_type

◆ size_type

template<typename Cipher >
typedef basic_padding<Cipher>::size_type nil::crypto3::block::modes::padding::esp< Cipher >::size_type

Member Function Documentation

◆ pad()

template<typename Cipher >
static void nil::crypto3::block::modes::padding::esp< Cipher >::pad ( const block_type block,
size_type  bytes_in_block 
)
inlinestatic

◆ unpad()

template<typename Cipher >
static void nil::crypto3::block::modes::padding::esp< Cipher >::unpad ( const block_type block,
size_type  size 
)
inlinestatic

Member Data Documentation

◆ block_bits

template<typename Cipher >
constexpr static const size_type nil::crypto3::block::modes::padding::esp< Cipher >::block_bits = basic_padding<Cipher>::block_bits
staticconstexpr

◆ block_words

template<typename Cipher >
constexpr static const size_type nil::crypto3::block::modes::padding::esp< Cipher >::block_words = basic_padding<Cipher>::block_words
staticconstexpr

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