8#ifndef BOTAN_SHA_64BIT_H_
9#define BOTAN_SHA_64BIT_H_
11#include <botan/internal/mdx_hash.h>
32 std::string
name()
const override {
return "SHA-384"; }
38 std::unique_ptr<HashFunction>
new_object()
const override;
40 std::unique_ptr<HashFunction>
copy_state()
const override;
42 std::string
provider()
const override;
44 void clear()
override { m_md.clear(); }
47 void add_data(std::span<const uint8_t> input)
override;
49 void final_result(std::span<uint8_t> output)
override;
72 std::string
name()
const override {
return "SHA-512"; }
78 std::unique_ptr<HashFunction>
new_object()
const override;
80 std::unique_ptr<HashFunction>
copy_state()
const override;
82 std::string
provider()
const override;
84 void clear()
override { m_md.clear(); }
89#if defined(BOTAN_HAS_SHA2_64_BMI2)
93#if defined(BOTAN_HAS_SHA2_64_ARMV8)
94 static void compress_digest_armv8(
digest_type& digest, std::span<const uint8_t> input,
size_t blocks);
98 void add_data(std::span<const uint8_t> input)
override;
100 void final_result(std::span<uint8_t> output)
override;
123 std::string
name()
const override {
return "SHA-512-256"; }
129 std::unique_ptr<HashFunction>
new_object()
const override;
131 std::unique_ptr<HashFunction>
copy_state()
const override;
133 std::string
provider()
const override;
135 void clear()
override { m_md.clear(); }
138 void add_data(std::span<const uint8_t> input)
override;
140 void final_result(std::span<uint8_t> output)
override;
std::string name() const override
size_t hash_block_size() const override
static constexpr size_t ctr_bytes
std::unique_ptr< HashFunction > new_object() const override
std::unique_ptr< HashFunction > copy_state() const override
secure_vector< uint64_t > digest_type
static constexpr size_t output_bytes
std::string provider() const override
static constexpr MD_Endian bit_endianness
static constexpr size_t block_bytes
static constexpr MD_Endian byte_endianness
size_t output_length() const override
static void compress_n(digest_type &digest, std::span< const uint8_t > input, size_t blocks)
size_t hash_block_size() const override
secure_vector< uint64_t > digest_type
size_t output_length() const override
std::string provider() const override
static constexpr MD_Endian bit_endianness
static constexpr size_t output_bytes
std::unique_ptr< HashFunction > copy_state() const override
std::unique_ptr< HashFunction > new_object() const override
static constexpr MD_Endian byte_endianness
static constexpr size_t ctr_bytes
std::string name() const override
static void compress_n(digest_type &digest, std::span< const uint8_t > input, size_t blocks)
static constexpr size_t block_bytes
static void compress_n(digest_type &digest, std::span< const uint8_t > input, size_t blocks)
std::unique_ptr< HashFunction > new_object() const override
size_t output_length() const override
size_t hash_block_size() const override
static constexpr size_t block_bytes
static constexpr size_t output_bytes
static constexpr MD_Endian byte_endianness
std::string provider() const override
static void compress_digest_bmi2(digest_type &digest, std::span< const uint8_t > input, size_t blocks)
static constexpr size_t ctr_bytes
secure_vector< uint64_t > digest_type
std::string name() const override
std::unique_ptr< HashFunction > copy_state() const override
static void compress_digest(digest_type &digest, std::span< const uint8_t > input, size_t blocks)
static constexpr MD_Endian bit_endianness
int(* final)(unsigned char *, CTX *)
std::vector< T, secure_allocator< T > > secure_vector