11#include <botan/internal/mdx_hash.h>
32 std::string
name()
const override {
return "SHA-1"; }
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(); }
46#if defined(BOTAN_HAS_SHA1_ARMV8)
50#if defined(BOTAN_HAS_SHA1_SSE2)
54#if defined(BOTAN_HAS_SHA1_X86_SHA_NI)
60 void add_data(std::span<const uint8_t> input)
override;
62 void final_result(std::span<uint8_t> output)
override;
std::unique_ptr< HashFunction > new_object() const override
std::unique_ptr< HashFunction > copy_state() const override
std::string provider() const override
size_t hash_block_size() const override
static constexpr MD_Endian bit_endianness
static void sha1_compress_x86(digest_type &digest, std::span< const uint8_t > blocks, size_t block_count)
static constexpr MD_Endian byte_endianness
static constexpr size_t ctr_bytes
static constexpr size_t output_bytes
std::string name() const override
static constexpr size_t block_bytes
static void compress_n(digest_type &digest, std::span< const uint8_t > input, size_t blocks)
secure_vector< uint32_t > digest_type
static void sse2_compress_n(digest_type &digest, std::span< const uint8_t > blocks, size_t block_count)
size_t output_length() const override
static void sha1_armv8_compress_n(digest_type &digest, std::span< const uint8_t > blocks, size_t block_count)
int(* final)(unsigned char *, CTX *)
std::vector< T, secure_allocator< T > > secure_vector