![]() |
Signet Forge 0.1.0
C++20 Parquet library with AI-native extensions
|
DEMO |
Per-key metadata stored alongside encrypted Parquet components. More...
#include <key_metadata.hpp>
Public Member Functions | |
| std::vector< uint8_t > | serialize () const |
| Serialize to bytes using TLV format. | |
Static Public Member Functions | |
| static expected< EncryptionKeyMetadata > | deserialize (const uint8_t *data, size_t size) |
| Deserialize from bytes. | |
Public Attributes | |
| KeyMode | key_mode = KeyMode::INTERNAL |
| INTERNAL or EXTERNAL key mode. | |
| std::vector< uint8_t > | key_material |
| Raw AES key bytes (INTERNAL mode only). | |
| std::string | key_id |
| KMS key reference (EXTERNAL mode). | |
Per-key metadata stored alongside encrypted Parquet components.
For INTERNAL mode: key_material contains the raw AES key bytes. For EXTERNAL mode: key_id contains the KMS reference string.
This is serialized into the Parquet ColumnChunk's column_crypto_metadata field so that the decryptor can identify which key to use.
Definition at line 385 of file key_metadata.hpp.
|
inlinestatic |
Deserialize from bytes.
Returns an error if the data is malformed.
| data | Pointer to TLV-serialized bytes. |
| size | Number of bytes to parse. |
Definition at line 430 of file key_metadata.hpp.
|
inline |
Serialize to bytes using TLV format.
Definition at line 392 of file key_metadata.hpp.
| std::string signet::forge::crypto::EncryptionKeyMetadata::key_id |
KMS key reference (EXTERNAL mode).
Definition at line 388 of file key_metadata.hpp.
| std::vector<uint8_t> signet::forge::crypto::EncryptionKeyMetadata::key_material |
Raw AES key bytes (INTERNAL mode only).
Definition at line 387 of file key_metadata.hpp.
| KeyMode signet::forge::crypto::EncryptionKeyMetadata::key_mode = KeyMode::INTERNAL |
INTERNAL or EXTERNAL key mode.
Definition at line 386 of file key_metadata.hpp.