Logger System 0.1.3
High-performance C++20 thread-safe logging system with asynchronous capabilities
Loading...
Searching...
No Matches
kcenon::logger::encrypted_log_header Struct Reference

Header prepended to each encrypted log entry. More...

#include <encrypted_writer.h>

Collaboration diagram for kcenon::logger::encrypted_log_header:
Collaboration graph

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, kIvSizeiv {}
 Initialization vector.
 
std::array< uint8_t, kTagSizetag {}
 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
 

Detailed Description

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.

Member Data Documentation

◆ algorithm

uint8_t kcenon::logger::encrypted_log_header::algorithm = 0

◆ encrypted_length

◆ iv

std::array<uint8_t, kIvSize> kcenon::logger::encrypted_log_header::iv {}

◆ kIvSize

size_t kcenon::logger::encrypted_log_header::kIvSize = 16
staticconstexpr

◆ kMagic

uint32_t kcenon::logger::encrypted_log_header::kMagic = 0x454E4352
staticconstexpr

◆ kTagSize

size_t kcenon::logger::encrypted_log_header::kTagSize = 16
staticconstexpr

◆ kVersion

uint8_t kcenon::logger::encrypted_log_header::kVersion = 1
staticconstexpr

◆ magic

◆ original_length

uint32_t kcenon::logger::encrypted_log_header::original_length = 0

◆ reserved

uint16_t kcenon::logger::encrypted_log_header::reserved = 0

◆ tag

std::array<uint8_t, kTagSize> kcenon::logger::encrypted_log_header::tag {}

◆ version

uint8_t kcenon::logger::encrypted_log_header::version = kVersion

The documentation for this struct was generated from the following file: