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

Functions

void random_bytes (uint8_t *buf, size_t size)
 Fill a buffer with cryptographically random bytes.
 
std::vector< uint8_t > random_bytes (size_t size)
 Fill a vector with random bytes.
 

Function Documentation

◆ random_bytes() [1/2]

std::vector< uint8_t > signet::forge::crypto::detail::pq::random_bytes ( size_t  size)
inline

Fill a vector with random bytes.

Definition at line 133 of file post_quantum.hpp.

◆ random_bytes() [2/2]

void signet::forge::crypto::detail::pq::random_bytes ( uint8_t *  buf,
size_t  size 
)
inline

Fill a buffer with cryptographically random bytes.

Delegates to detail::cipher::fill_random_bytes() for platform-aware CSPRNG (arc4random_buf on macOS/BSD, getrandom on Linux).

Definition at line 128 of file post_quantum.hpp.