8#ifndef BOTAN_SALSA20_H__
9#define BOTAN_SALSA20_H__
11#include <botan/stream_cipher.h>
21 void cipher(
const byte in[],
byte out[],
size_t length);
23 void set_iv(
const byte iv[],
size_t iv_len);
26 {
return (iv_len == 8 || iv_len == 24); }
34 std::string name()
const;
37 Salsa20() : state(16), buffer(64), position(0) {}
39 void key_schedule(
const byte key[],
size_t key_len);
Key_Length_Specification key_spec() const
StreamCipher * clone() const
void set_iv(const byte iv[], size_t iv_len)
bool valid_iv_length(size_t iv_len) const
void cipher(const byte in[], byte out[], size_t length)