![]() |
Signet Forge 0.1.0
C++20 Parquet library with AI-native extensions
|
DEMO |
Classes | |
| struct | IvParsed |
| Result of parsing an IV header from encrypted data. More... | |
Functions | |
| void | fill_random_bytes (uint8_t *buf, size_t size) |
| Fill a buffer with cryptographically random bytes using the best available OS-level CSPRNG (CWE-338: Use of Cryptographically Weak PRNG). | |
| std::vector< uint8_t > | generate_iv (size_t iv_size) |
| Generate a random initialization vector of the specified size. | |
| std::vector< uint8_t > | prepend_iv (const std::vector< uint8_t > &iv, const std::vector< uint8_t > &ciphertext) |
| Prepend an IV header to ciphertext: [1 byte: iv.size()] [iv bytes] [ciphertext]. | |
| expected< IvParsed > | parse_iv_header (const uint8_t *data, size_t size) |
| Parse the IV header from encrypted data: [1 byte: iv_size] [iv] [ciphertext]. | |
|
inline |
Fill a buffer with cryptographically random bytes using the best available OS-level CSPRNG (CWE-338: Use of Cryptographically Weak PRNG).
Definition at line 108 of file cipher_interface.hpp.
|
inline |
Generate a random initialization vector of the specified size.
| iv_size | Number of random bytes to generate (12 for GCM, 16 for CTR). |
Definition at line 143 of file cipher_interface.hpp.
|
inline |
Parse the IV header from encrypted data: [1 byte: iv_size] [iv] [ciphertext].
| data | Pointer to the encrypted data buffer. |
| size | Total size of the encrypted data. |
Definition at line 174 of file cipher_interface.hpp.
|
inline |
Prepend an IV header to ciphertext: [1 byte: iv.size()] [iv bytes] [ciphertext].
| iv | Initialization vector bytes. |
| ciphertext | Encrypted data (may include auth tag for GCM). |
Definition at line 153 of file cipher_interface.hpp.