8#ifndef BOTAN_OUTPUT_FEEDBACK_MODE_H__
9#define BOTAN_OUTPUT_FEEDBACK_MODE_H__
11#include <botan/stream_cipher.h>
12#include <botan/block_cipher.h>
22 void cipher(
const byte in[],
byte out[],
size_t length);
24 void set_iv(
const byte iv[],
size_t iv_len);
27 {
return (iv_len <= permutation->block_size()); }
31 return permutation->key_spec();
34 std::string name()
const;
37 {
return new OFB(permutation->clone()); }
47 void key_schedule(
const byte key[],
size_t key_len);
bool valid_iv_length(size_t iv_len) const
Key_Length_Specification key_spec() const
void set_iv(const byte iv[], size_t iv_len)
void cipher(const byte in[], byte out[], size_t length)