8#ifndef BOTAN_BLOWFISH_H_
9#define BOTAN_BLOWFISH_H_
11#include <botan/block_cipher.h>
21 void encrypt_n(
const uint8_t in[], uint8_t out[],
size_t blocks)
const override;
22 void decrypt_n(
const uint8_t in[], uint8_t out[],
size_t blocks)
const override;
27 void salted_set_key(
const uint8_t key[],
size_t key_length,
28 const uint8_t salt[],
size_t salt_length,
29 const size_t workfactor,
bool salt_first =
false);
31 void clear()
override;
32 std::string
name()
const override {
return "Blowfish"; }
33 std::unique_ptr<BlockCipher>
new_object()
const override {
return std::make_unique<Blowfish>(); }
35 void key_schedule(
const uint8_t key[],
size_t length)
override;
37 void key_expansion(
const uint8_t key[],
43 uint32_t& L, uint32_t& R,
46 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