8#ifndef BOTAN_SALSA20_H_
9#define BOTAN_SALSA20_H_
11#include <botan/stream_cipher.h>
23 void clear()
override;
24 std::string
name()
const override;
25 std::unique_ptr<StreamCipher>
new_object()
const override;
27 void seek(uint64_t offset)
override;
32 static void salsa_core(uint8_t output[64],
const uint32_t input[16],
size_t rounds);
35 static void hsalsa20(uint32_t output[8],
const uint32_t input[16]);
38 void cipher_bytes(
const uint8_t in[], uint8_t out[],
size_t length)
override;
39 void set_iv_bytes(
const uint8_t iv[],
size_t iv_len)
override;
42 void key_schedule(std::span<const uint8_t> key)
override;
44 void initialize_state();
49 size_t m_position = 0;
void seek(uint64_t offset) override
bool has_keying_material() const override
size_t buffer_size() const override
void set_iv_bytes(const uint8_t iv[], size_t iv_len) override
void cipher_bytes(const uint8_t in[], uint8_t out[], size_t length) override
static void hsalsa20(uint32_t output[8], const uint32_t input[16])
bool valid_iv_length(size_t iv_len) const override
size_t default_iv_length() const override
static void salsa_core(uint8_t output[64], const uint32_t input[16], size_t rounds)
std::unique_ptr< StreamCipher > new_object() const override
std::string name() const override
Key_Length_Specification key_spec() const override
int(* final)(unsigned char *, CTX *)
std::vector< T, secure_allocator< T > > secure_vector