|
Botan 3.13.0
Crypto and TLS for C&
|
#include <filters.h>
Public Member Functions | |
| virtual bool | attachable () |
| Cipher_Mode_Filter (Cipher_Mode *t) | |
| Cipher_Mode_Filter (std::unique_ptr< Cipher_Mode > t) | |
| Key_Length_Specification | key_spec () const override |
| std::string | name () const override |
| void | set_iv (const InitializationVector &iv) override |
| void | set_key (const SymmetricKey &key) override |
| bool | valid_iv_length (size_t length) const override |
| bool | valid_keylength (size_t length) const |
Protected Member Functions | |
| virtual void | send (const uint8_t in[], size_t length) |
| void | send (std::span< const uint8_t > in) |
| void | send (std::span< const uint8_t > in, size_t length) |
| void | send (uint8_t in) |
Private Member Functions | |
| template<typename Alloc> | |
| void | write (const std::vector< uint8_t, Alloc > &in, size_t length) |
|
explicit |
Construct a filter wrapping the given cipher mode
| t | the cipher mode to use |
Definition at line 28 of file cipher_filter.cpp.
References Botan::Buffered_Filter::Buffered_Filter().
Referenced by Cipher_Mode_Filter().
|
inlineexplicit |
Construct a filter wrapping the given cipher mode
| t | the cipher mode to use |
Definition at line 179 of file filters.h.
References Cipher_Mode_Filter().
|
inlinevirtualinherited |
Check whether this filter is an attachable filter.
Reimplemented in Botan::DataSink, and Botan::SecureQueue.
Definition at line 53 of file filter.h.
|
overridevirtual |
Return the key lengths supported by this filter
Implements Botan::Keyed_Filter.
Definition at line 45 of file cipher_filter.cpp.
|
overridevirtual |
Return a descriptive name for this filter
Implements Botan::Filter.
Definition at line 33 of file cipher_filter.cpp.
|
protectedvirtualinherited |
Send some bytes to the next filter in the chain
| in | some input for the filter |
| length | the length of in |
Definition at line 30 of file filter.cpp.
Referenced by Botan::Base64_Decoder::end_msg(), Botan::Base64_Encoder::end_msg(), Botan::Hex_Decoder::end_msg(), Botan::Hex_Encoder::end_msg(), operator=(), send(), Botan::Base64_Decoder::write(), Botan::Chain::write(), Botan::Fork::write(), and Botan::Hex_Decoder::write().
|
inlineprotectedinherited |
|
protectedinherited |
Send some bytes to the next filter in the chain
| in | some input for the filter |
| length | the number of bytes of in to send |
This previously took a std::vector, for which the length field (allowing using just a prefix of the vector) somewhat made sense. It makes less sense now that we are using a span here; you can just use first to get a prefix.
Definition at line 22 of file filter.cpp.
References BOTAN_ASSERT_NOMSG, and send().
|
inlineprotectedinherited |
|
overridevirtual |
Set the initialization vector for this filter
| iv | the initialization vector to set |
Reimplemented from Botan::Keyed_Filter.
Definition at line 37 of file cipher_filter.cpp.
References Botan::OctetString::bits_of(), and Botan::unlock().
|
overridevirtual |
Set the key of this filter
| key | the key to set |
Implements Botan::Keyed_Filter.
Definition at line 41 of file cipher_filter.cpp.
|
overridevirtual |
Check whether an IV length is valid for this filter
| length | the IV length to be checked for validity |
Reimplemented from Botan::Keyed_Filter.
Definition at line 49 of file cipher_filter.cpp.
|
inlineinherited |
Check whether a key length is valid for this filter
| length | the key length to be checked for validity |
Definition at line 148 of file filters.h.
References key_spec().