|
Logger System 0.1.3
High-performance C++20 thread-safe logging system with asynchronous capabilities
|
Header prepended to each encrypted log entry. More...
#include <encrypted_writer.h>

Public Attributes | |
| uint32_t | magic = kMagic |
| Magic number for validation. | |
| uint8_t | version = kVersion |
| Header format version. | |
| uint8_t | algorithm = 0 |
| Encryption algorithm used. | |
| uint16_t | reserved = 0 |
| Reserved for future use. | |
| uint32_t | original_length = 0 |
| Length of plaintext. | |
| uint32_t | encrypted_length = 0 |
| Length of ciphertext. | |
| std::array< uint8_t, kIvSize > | iv {} |
| Initialization vector. | |
| std::array< uint8_t, kTagSize > | tag {} |
| GCM authentication tag. | |
Static Public Attributes | |
| static constexpr uint32_t | kMagic = 0x454E4352 |
| static constexpr uint8_t | kVersion = 1 |
| static constexpr size_t | kIvSize = 16 |
| static constexpr size_t | kTagSize = 16 |
Header prepended to each encrypted log entry.
Contains metadata needed for decryption including IV, authentication tag, and original data length.
Definition at line 153 of file encrypted_writer.h.
| uint8_t kcenon::logger::encrypted_log_header::algorithm = 0 |
Encryption algorithm used.
Definition at line 161 of file encrypted_writer.h.
Referenced by kcenon::logger::encrypted_writer::decrypt_entry(), and kcenon::logger::encrypted_writer::encrypt_data().
| uint32_t kcenon::logger::encrypted_log_header::encrypted_length = 0 |
Length of ciphertext.
Definition at line 164 of file encrypted_writer.h.
Referenced by kcenon::logger::encrypted_writer::decrypt_entry(), kcenon::logger::log_decryptor::decrypt_file_streaming(), and kcenon::logger::encrypted_writer::encrypt_data().
| std::array<uint8_t, kIvSize> kcenon::logger::encrypted_log_header::iv {} |
Initialization vector.
Definition at line 165 of file encrypted_writer.h.
Referenced by kcenon::logger::encrypted_writer::decrypt_entry(), and kcenon::logger::encrypted_writer::encrypt_data().
|
staticconstexpr |
Definition at line 156 of file encrypted_writer.h.
|
staticconstexpr |
Definition at line 154 of file encrypted_writer.h.
Referenced by kcenon::logger::log_decryptor::decrypt_file_streaming().
|
staticconstexpr |
Definition at line 157 of file encrypted_writer.h.
|
staticconstexpr |
Definition at line 155 of file encrypted_writer.h.
| uint32_t kcenon::logger::encrypted_log_header::magic = kMagic |
Magic number for validation.
Definition at line 159 of file encrypted_writer.h.
Referenced by kcenon::logger::encrypted_writer::decrypt_entry(), and kcenon::logger::log_decryptor::decrypt_file_streaming().
| uint32_t kcenon::logger::encrypted_log_header::original_length = 0 |
Length of plaintext.
Definition at line 163 of file encrypted_writer.h.
Referenced by kcenon::logger::encrypted_writer::decrypt_entry(), and kcenon::logger::encrypted_writer::encrypt_data().
| uint16_t kcenon::logger::encrypted_log_header::reserved = 0 |
Reserved for future use.
Definition at line 162 of file encrypted_writer.h.
| std::array<uint8_t, kTagSize> kcenon::logger::encrypted_log_header::tag {} |
GCM authentication tag.
Definition at line 166 of file encrypted_writer.h.
Referenced by kcenon::logger::encrypted_writer::decrypt_entry(), and kcenon::logger::encrypted_writer::encrypt_data().
| uint8_t kcenon::logger::encrypted_log_header::version = kVersion |
Header format version.
Definition at line 160 of file encrypted_writer.h.
Referenced by kcenon::logger::encrypted_writer::decrypt_entry().