9#ifndef BOTAN_MODE_CBC_H_
10#define BOTAN_MODE_CBC_H_
12#include <botan/block_cipher.h>
13#include <botan/cipher_mode.h>
14#include <botan/internal/mode_pad.h>
23 std::string
name()
const final;
37 void reset()
override;
58 void start_msg(
const uint8_t nonce[],
size_t nonce_len)
override;
60 void key_schedule(std::span<const uint8_t> key)
override;
62 std::unique_ptr<BlockCipher> m_cipher;
63 std::unique_ptr<BlockCipherModePaddingMethod> m_padding;
85 size_t process_msg(uint8_t buf[],
size_t size)
override;
125 void reset()
override;
128 size_t process_msg(uint8_t buf[],
size_t size)
override;
#define BOTAN_ASSERT_NONNULL(ptr)
size_t minimum_final_size() const override
CBC_Decryption(std::unique_ptr< BlockCipher > cipher, std::unique_ptr< BlockCipherModePaddingMethod > padding)
size_t output_length(size_t input_length) const override
size_t minimum_final_size() const override
size_t output_length(size_t input_length) const override
CBC_Encryption(std::unique_ptr< BlockCipher > cipher, std::unique_ptr< BlockCipherModePaddingMethod > padding)
std::string name() const final
size_t update_granularity() const final
size_t ideal_granularity() const final
const BlockCipherModePaddingMethod & padding() const
size_t block_size() const
bool valid_nonce_length(size_t n) const override
CBC_Mode(std::unique_ptr< BlockCipher > cipher, std::unique_ptr< BlockCipherModePaddingMethod > padding)
size_t default_nonce_length() const final
const BlockCipher & cipher() const
secure_vector< uint8_t > & state()
Key_Length_Specification key_spec() const final
bool has_keying_material() const final
CTS_Decryption(std::unique_ptr< BlockCipher > cipher)
bool valid_nonce_length(size_t n) const override
size_t minimum_final_size() const override
CTS_Encryption(std::unique_ptr< BlockCipher > cipher)
size_t output_length(size_t input_length) const override
size_t minimum_final_size() const override
bool valid_nonce_length(size_t n) const override
int(* final)(unsigned char *, CTX *)
std::vector< T, secure_allocator< T > > secure_vector