Signet Forge 0.1.0
C++20 Parquet library with AI-native extensions
DEMO
Loading...
Searching...
No Matches
sha512.hpp File Reference

SHA-512 hash function (NIST FIPS 180-4). More...

#include <array>
#include <cstddef>
#include <cstdint>
#include <cstring>
#include <vector>

Go to the source code of this file.

Namespaces

namespace  signet
 
namespace  signet::forge
 
namespace  signet::forge::crypto
 
namespace  signet::forge::crypto::detail
 
namespace  signet::forge::crypto::detail::sha512
 
namespace  signet::forge::crypto::detail::ed25519
 

Functions

constexpr uint64_t signet::forge::crypto::detail::sha512::rotr64 (uint64_t x, int n)
 
uint64_t signet::forge::crypto::detail::sha512::load_be64 (const uint8_t *p)
 
void signet::forge::crypto::detail::sha512::store_be64 (uint8_t *p, uint64_t v)
 
void signet::forge::crypto::detail::sha512::sha512_compress (uint64_t h[8], const uint8_t block[128])
 
std::array< uint8_t, 64 > signet::forge::crypto::detail::sha512::sha512 (const uint8_t *data, size_t size)
 
std::array< uint8_t, 64 > signet::forge::crypto::detail::sha512::sha512_two (const uint8_t *a, size_t a_len, const uint8_t *b, size_t b_len)
 
std::array< uint8_t, 64 > signet::forge::crypto::detail::sha512::sha512_three (const uint8_t *a, size_t a_len, const uint8_t *b, size_t b_len, const uint8_t *c, size_t c_len)
 

Detailed Description

SHA-512 hash function (NIST FIPS 180-4).

Public-standard cryptographic hash — no proprietary IP. Extracted for clean tier separation: Tier 1 (AGPL-3.0-or-later) consumers can use SHA-512 without depending on any commercial or proprietary header.

Reference: NIST FIPS 180-4 — Secure Hash Standard (SHS)

Definition in file sha512.hpp.