8 #ifndef BOTAN_SALSA20_H__
9 #define BOTAN_SALSA20_H__
11 #include <botan/stream_cipher.h>
21 void cipher(
const uint8_t in[], uint8_t out[],
size_t length)
override;
23 void set_iv(
const uint8_t iv[],
size_t iv_len)
override;
26 {
return (iv_len == 0 || iv_len == 8 || iv_len == 24); }
33 void clear()
override;
34 std::string name()
const override;
37 void seek(uint64_t offset)
override;
39 void key_schedule(
const uint8_t key[],
size_t key_len)
override;
43 size_t m_position = 0;
StreamCipher * clone() const override
std::vector< T, secure_allocator< T >> secure_vector
bool valid_iv_length(size_t iv_len) const override
Key_Length_Specification key_spec() const override