8 #include <botan/filters.h>     9 #include <botan/libstate.h>    18    buffer(DEFAULT_BUFFERSIZE)
    20    cipher = stream_cipher;
    28    buffer(DEFAULT_BUFFERSIZE)
    30    cipher = stream_cipher;
    38    buffer(DEFAULT_BUFFERSIZE)
    49    buffer(DEFAULT_BUFFERSIZE)
    71       size_t copied = std::min<size_t>(length, buffer.
size());
    72       cipher->
cipher(input, &buffer[0], copied);
    97       send(output, std::min<size_t>(OUTPUT_LENGTH, output.
size()));
   116                        size_t len) : OUTPUT_LENGTH(len)
   130       send(output, std::min<size_t>(OUTPUT_LENGTH, output.
size()));
 virtual void set_iv(const byte iv[], size_t iv_len)
Algorithm_Factory & algorithm_factory() const
StreamCipher_Filter(StreamCipher *cipher_obj)
MAC_Filter(MessageAuthenticationCode *mac_obj, size_t out_len=0)
Hash_Filter(HashFunction *hash_fun, size_t len=0)
MessageAuthenticationCode * make_mac(const std::string &algo_spec, const std::string &provider="")
StreamCipher * make_stream_cipher(const std::string &algo_spec, const std::string &provider="")
const byte * begin() const
void send(const byte in[], size_t length)
void set_key(const SymmetricKey &key)
Library_State & global_state()
virtual void cipher(const byte in[], byte out[], size_t len)=0
HashFunction * make_hash_function(const std::string &algo_spec, const std::string &provider="")
void set_iv(const InitializationVector &iv)
void write(const byte input[], size_t input_len)