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;
23 std::string
provider()
const override;
24 void clear()
override;
26 std::string
name()
const override {
return "SHACAL2"; }
28 std::unique_ptr<BlockCipher>
new_object()
const override {
return std::make_unique<SHACAL2>(); }
34 void key_schedule(std::span<const uint8_t> key)
override;
36#if defined(BOTAN_HAS_SHACAL2_SIMD)
37 void simd_encrypt_4(
const uint8_t in[], uint8_t out[])
const;
38 void simd_decrypt_4(
const uint8_t in[], uint8_t out[])
const;
41#if defined(BOTAN_HAS_SHACAL2_AVX2)
42 void avx2_encrypt_8(
const uint8_t in[], uint8_t out[])
const;
43 void avx2_decrypt_8(
const uint8_t in[], uint8_t out[])
const;
46#if defined(BOTAN_HAS_SHACAL2_X86)
47 void x86_encrypt_blocks(
const uint8_t in[], uint8_t out[],
size_t blocks)
const;
50#if defined(BOTAN_HAS_SHACAL2_ARMV8)
51 void armv8_encrypt_blocks(
const uint8_t in[], uint8_t out[],
size_t blocks)
const;