8#ifndef BOTAN_BLOWFISH_H_
9#define BOTAN_BLOWFISH_H_
11#include <botan/block_cipher.h>
20 void encrypt_n(
const uint8_t in[], uint8_t out[],
size_t blocks)
const override;
21 void decrypt_n(
const uint8_t in[], uint8_t out[],
size_t blocks)
const override;
26 void salted_set_key(
const uint8_t key[],
30 const size_t workfactor,
31 bool salt_first =
false);
33 void clear()
override;
35 std::string
name()
const override {
return "Blowfish"; }
37 std::unique_ptr<BlockCipher>
new_object()
const override {
return std::make_unique<Blowfish>(); }
39 bool has_keying_material()
const override;
42 void key_schedule(
const uint8_t key[],
size_t length)
override;
44 void key_expansion(
const uint8_t key[],
size_t key_length,
const uint8_t salt[],
size_t salt_length);
51 size_t salt_off)
const;
std::unique_ptr< BlockCipher > new_object() const override
std::string name() const override
int(* final)(unsigned char *, CTX *)
std::vector< T, secure_allocator< T > > secure_vector