8#ifndef BOTAN_BLOWFISH_H_
9#define BOTAN_BLOWFISH_H_
11#include <botan/block_cipher.h>
23 void encrypt_n(
const uint8_t in[], uint8_t out[],
size_t blocks)
const override;
24 void decrypt_n(
const uint8_t in[], uint8_t out[],
size_t blocks)
const override;
29 void salted_set_key(
const uint8_t key[],
size_t key_length,
30 const uint8_t salt[],
size_t salt_length,
31 const size_t workfactor,
bool salt_first =
false);
33 BOTAN_DEPRECATED(
"Use Blowfish::salted_set_key taking salt length")
34 void eks_key_schedule(const uint8_t key[],
size_t key_length,
35 const uint8_t salt[16],
size_t workfactor)
37 salted_set_key(key, key_length, salt, 16, workfactor);
40 void clear()
override;
41 std::string
name()
const override {
return "Blowfish"; }
44 void key_schedule(
const uint8_t key[],
size_t length)
override;
46 void key_expansion(
const uint8_t key[],
52 uint32_t& L, uint32_t& R,
55 size_t salt_off)
const;
virtual void decrypt_n(const uint8_t in[], uint8_t out[], size_t blocks) const =0
virtual void encrypt_n(const uint8_t in[], uint8_t out[], size_t blocks) const =0
BlockCipher * clone() const override
std::string name() const override
int(* final)(unsigned char *, CTX *)
#define BOTAN_PUBLIC_API(maj, min)
#define BOTAN_FUTURE_INTERNAL_HEADER(hdr)
std::vector< T, secure_allocator< T > > secure_vector