8 #ifndef BOTAN_TRANSFORM_FILTER_H__
9 #define BOTAN_TRANSFORM_FILTER_H__
11 #include <botan/cipher_mode.h>
12 #include <botan/key_filt.h>
13 #include <botan/buf_filt.h>
32 bool valid_iv_length(
size_t length)
const override;
34 std::string name()
const override;
42 void write(
const uint8_t input[],
size_t input_length)
override;
43 void start_msg()
override;
44 void end_msg()
override;
46 void buffered_block(
const uint8_t input[],
size_t input_length)
override;
47 void buffered_final(
const uint8_t input[],
size_t input_length)
override;
52 explicit Nonce_State(
bool allow_null_nonce) : m_fresh_nonce(allow_null_nonce) {}
55 std::vector<uint8_t>
get();
58 std::vector<uint8_t> m_nonce;
62 std::unique_ptr<Cipher_Mode> m_mode;
63 secure_vector<uint8_t> m_buffer;
OctetString InitializationVector
Transform_Filter Transformation_Filter
Cipher_Mode_Filter Transform_Filter
const Cipher_Mode & get_mode() const