Signet Forge 0.1.0
C++20 Parquet library with AI-native extensions
DEMO
Loading...
Searching...
No Matches
signet::forge::crypto::detail::sha512 Namespace Reference

Functions

constexpr uint64_t rotr64 (uint64_t x, int n)
 
uint64_t load_be64 (const uint8_t *p)
 
void store_be64 (uint8_t *p, uint64_t v)
 
void sha512_compress (uint64_t h[8], const uint8_t block[128])
 
std::array< uint8_t, 64 > sha512 (const uint8_t *data, size_t size)
 
std::array< uint8_t, 64 > sha512_two (const uint8_t *a, size_t a_len, const uint8_t *b, size_t b_len)
 
std::array< uint8_t, 64 > 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)
 

Function Documentation

◆ load_be64()

uint64_t signet::forge::crypto::detail::sha512::load_be64 ( const uint8_t *  p)
inline

Definition at line 63 of file sha512.hpp.

◆ rotr64()

constexpr uint64_t signet::forge::crypto::detail::sha512::rotr64 ( uint64_t  x,
int  n 
)
inlineconstexpr

Definition at line 59 of file sha512.hpp.

◆ sha512()

std::array< uint8_t, 64 > signet::forge::crypto::detail::sha512::sha512 ( const uint8_t *  data,
size_t  size 
)
inline

Definition at line 100 of file sha512.hpp.

◆ sha512_compress()

void signet::forge::crypto::detail::sha512::sha512_compress ( uint64_t  h[8],
const uint8_t  block[128] 
)
inline

Definition at line 77 of file sha512.hpp.

◆ sha512_three()

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 
)
inline

Definition at line 139 of file sha512.hpp.

◆ sha512_two()

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 
)
inline

Definition at line 128 of file sha512.hpp.

◆ store_be64()

void signet::forge::crypto::detail::sha512::store_be64 ( uint8_t *  p,
uint64_t  v 
)
inline

Definition at line 70 of file sha512.hpp.