#include <filters.h>
|
template<typename Alloc > |
void | send (const std::vector< uint8_t, Alloc > &in) |
|
template<typename Alloc > |
void | send (const std::vector< uint8_t, Alloc > &in, size_t length) |
|
virtual void | send (const uint8_t in[], size_t length) |
|
void | send (uint8_t in) |
|
|
template<typename Alloc > |
void | write (const std::vector< uint8_t, Alloc > &in, size_t length) |
|
Filter interface for cipher modes
Definition at line 163 of file filters.h.
◆ Cipher_Mode_Filter() [1/2]
Botan::Cipher_Mode_Filter::Cipher_Mode_Filter |
( |
Cipher_Mode * |
t | ) |
|
|
explicit |
Definition at line 27 of file cipher_filter.cpp.
27 :
29 mode->minimum_final_size()),
30 m_mode(mode),
31 m_nonce(mode->default_nonce_length()),
32 m_buffer(m_mode->update_granularity())
33 {
34 }
Buffered_Filter(size_t block_size, size_t final_minimum)
◆ Cipher_Mode_Filter() [2/2]
Botan::Cipher_Mode_Filter::Cipher_Mode_Filter |
( |
std::unique_ptr< Cipher_Mode > |
t | ) |
|
|
inlineexplicit |
Definition at line 169 of file filters.h.
169 :
Cipher_Mode_Filter(Cipher_Mode *t)
◆ attachable()
virtual bool Botan::Filter::attachable |
( |
| ) |
|
|
inlinevirtualinherited |
◆ key_spec()
◆ name()
std::string Botan::Cipher_Mode_Filter::name |
( |
| ) |
const |
|
overridevirtual |
◆ send() [1/4]
template<typename Alloc >
void Botan::Filter::send |
( |
const std::vector< uint8_t, Alloc > & |
in | ) |
|
|
inlineprotectedinherited |
- Parameters
-
in | some input for the filter |
Definition at line 71 of file filter.h.
72 {
73 send(in.data(), in.size());
74 }
virtual void send(const uint8_t in[], size_t length)
◆ send() [2/4]
template<typename Alloc >
void Botan::Filter::send |
( |
const std::vector< uint8_t, Alloc > & |
in, |
|
|
size_t |
length |
|
) |
| |
|
inlineprotectedinherited |
- Parameters
-
in | some input for the filter |
length | the number of bytes of in to send |
Definition at line 81 of file filter.h.
82 {
84 send(in.data(), length);
85 }
#define BOTAN_ASSERT_NOMSG(expr)
References BOTAN_ASSERT_NOMSG.
◆ send() [3/4]
void Botan::Filter::send |
( |
const uint8_t |
in[], |
|
|
size_t |
length |
|
) |
| |
|
protectedvirtualinherited |
◆ send() [4/4]
void Botan::Filter::send |
( |
uint8_t |
in | ) |
|
|
inlineprotectedinherited |
◆ set_iv()
◆ set_key()
void Botan::Cipher_Mode_Filter::set_key |
( |
const SymmetricKey & |
key | ) |
|
|
overridevirtual |
◆ valid_iv_length()
bool Botan::Cipher_Mode_Filter::valid_iv_length |
( |
size_t |
length | ) |
const |
|
overridevirtual |
Check whether an IV length is valid for this filter
- Parameters
-
length | the IV length to be checked for validity |
- Returns
- true if the IV length is valid, false otherwise
Reimplemented from Botan::Keyed_Filter.
Definition at line 56 of file cipher_filter.cpp.
57 {
58 return m_mode->valid_nonce_length(length);
59 }
◆ valid_keylength()
bool Botan::Keyed_Filter::valid_keylength |
( |
size_t |
length | ) |
const |
|
inlineinherited |
Check whether a key length is valid for this filter
- Parameters
-
length | the key length to be checked for validity |
- Returns
- true if the key length is valid, false otherwise
Definition at line 141 of file filters.h.
142 {
144 }
bool valid_keylength(size_t length) const
virtual Key_Length_Specification key_spec() const =0
The documentation for this class was generated from the following files: