![]() |
Signet Forge 0.1.0
C++20 Parquet library with AI-native extensions
|
DEMO |
Per-subject key store supporting cryptographic erasure. More...
#include <key_metadata.hpp>
Public Member Functions | |
| expected< void > | register_subject (const std::string &subject_id, const std::vector< uint8_t > &dek) |
| Register a data subject's DEK. | |
| expected< const std::vector< uint8_t > * > | get_key (const std::string &subject_id) const |
| Retrieve a subject's DEK for encryption/decryption. | |
| expected< void > | shred (const std::string &subject_id) |
| Cryptographically shred a subject's data by destroying their DEK. | |
| bool | is_shredded (const std::string &subject_id) const |
| Check if a subject has been cryptographically erased. | |
| size_t | active_count () const |
| Number of active (non-shredded) subjects. | |
| size_t | shredded_count () const |
| Number of shredded subjects. | |
Per-subject key store supporting cryptographic erasure.
Thread-safety: NOT thread-safe — callers must synchronize externally.
Definition at line 1021 of file key_metadata.hpp.
|
inline |
Number of active (non-shredded) subjects.
Definition at line 1093 of file key_metadata.hpp.
|
inline |
Retrieve a subject's DEK for encryption/decryption.
| subject_id | The data subject identifier. |
Definition at line 1046 of file key_metadata.hpp.
|
inline |
Check if a subject has been cryptographically erased.
Definition at line 1088 of file key_metadata.hpp.
|
inline |
Register a data subject's DEK.
| subject_id | Unique identifier for the data subject. |
| dek | The subject's Data Encryption Key (32 bytes). |
Definition at line 1027 of file key_metadata.hpp.
|
inline |
Cryptographically shred a subject's data by destroying their DEK.
After this call, all data encrypted with this subject's DEK becomes permanently unreadable (NIST SP 800-88 Rev. 1 §2.4 Cryptographic Erase).
| subject_id | The data subject to erase. |
Definition at line 1070 of file key_metadata.hpp.
|
inline |
Number of shredded subjects.
Definition at line 1096 of file key_metadata.hpp.