RAII container for sensitive key material with mlock and secure zeroization.
More...
#include <cipher_interface.hpp>
RAII container for sensitive key material with mlock and secure zeroization.
- Locks memory on construction (prevents swap-out)
- Securely zeros and unlocks on destruction
- Move-only (no copy to prevent key duplication)
Definition at line 320 of file cipher_interface.hpp.
◆ SecureKeyBuffer() [1/5]
| signet::forge::crypto::SecureKeyBuffer::SecureKeyBuffer |
( |
const std::vector< uint8_t > & |
key | ) |
|
|
inlineexplicit |
◆ SecureKeyBuffer() [2/5]
| signet::forge::crypto::SecureKeyBuffer::SecureKeyBuffer |
( |
const uint8_t * |
ptr, |
|
|
size_t |
size |
|
) |
| |
|
inline |
◆ SecureKeyBuffer() [3/5]
| signet::forge::crypto::SecureKeyBuffer::SecureKeyBuffer |
( |
size_t |
size | ) |
|
|
inlineexplicit |
◆ ~SecureKeyBuffer()
| signet::forge::crypto::SecureKeyBuffer::~SecureKeyBuffer |
( |
| ) |
|
|
inline |
◆ SecureKeyBuffer() [4/5]
| signet::forge::crypto::SecureKeyBuffer::SecureKeyBuffer |
( |
SecureKeyBuffer && |
other | ) |
|
|
inlinenoexcept |
◆ SecureKeyBuffer() [5/5]
| signet::forge::crypto::SecureKeyBuffer::SecureKeyBuffer |
( |
const SecureKeyBuffer & |
| ) |
|
|
delete |
◆ data() [1/2]
| uint8_t * signet::forge::crypto::SecureKeyBuffer::data |
( |
| ) |
|
|
inline |
◆ data() [2/2]
| const uint8_t * signet::forge::crypto::SecureKeyBuffer::data |
( |
| ) |
const |
|
inline |
◆ empty()
| bool signet::forge::crypto::SecureKeyBuffer::empty |
( |
| ) |
const |
|
inline |
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ size()
| size_t signet::forge::crypto::SecureKeyBuffer::size |
( |
| ) |
const |
|
inline |
The documentation for this class was generated from the following file: