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[],
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(std::span<const uint8_t> key)
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;