9#ifndef BOTAN_MODE_CFB_H_
10#define BOTAN_MODE_CFB_H_
12#include <botan/block_cipher.h>
13#include <botan/cipher_mode.h>
22 std::string
name()
const final;
45 CFB_Mode(std::unique_ptr<BlockCipher>
cipher,
size_t feedback_bits);
49 size_t feedback()
const {
return m_feedback_bytes; }
60 void start_msg(
const uint8_t nonce[],
size_t nonce_len)
override;
61 void key_schedule(std::span<const uint8_t> key)
override;
63 std::unique_ptr<BlockCipher> m_cipher;
64 const size_t m_block_size;
65 const size_t m_feedback_bytes;
83 size_t process_msg(uint8_t buf[],
size_t size)
override;
102 size_t process_msg(uint8_t buf[],
size_t size)
override;
CFB_Decryption(std::unique_ptr< BlockCipher > cipher, size_t feedback_bits)
CFB_Encryption(std::unique_ptr< BlockCipher > cipher, size_t feedback_bits)
size_t ideal_granularity() const final
size_t block_size() const
secure_vector< uint8_t > m_keystream
std::string name() const final
CFB_Mode(std::unique_ptr< BlockCipher > cipher, size_t feedback_bits)
Key_Length_Specification key_spec() const final
size_t default_nonce_length() const final
bool has_keying_material() const final
size_t output_length(size_t input_length) const final
secure_vector< uint8_t > m_state
const BlockCipher & cipher() const
size_t update_granularity() const final
bool valid_nonce_length(size_t n) const final
size_t minimum_final_size() const final
int(* final)(unsigned char *, CTX *)
std::vector< T, secure_allocator< T > > secure_vector