|
Logger System 0.1.3
High-performance C++20 thread-safe logging system with asynchronous capabilities
|
Configuration for encrypted_writer. More...
#include <encrypted_writer.h>

Public Member Functions | |
| encryption_config (encryption_algorithm algo, security::secure_key encryption_key) | |
| Constructor for encryption_config. | |
| encryption_config () | |
| encryption_config (encryption_config &&) noexcept=default | |
| encryption_config & | operator= (encryption_config &&) noexcept=default |
| encryption_config (const encryption_config &)=delete | |
| encryption_config & | operator= (const encryption_config &)=delete |
Public Attributes | |
| encryption_algorithm | algorithm = encryption_algorithm::aes_256_gcm |
| Encryption algorithm to use. | |
| security::secure_key | key |
| Encryption key (must be 32 bytes for AES-256) | |
| bool | rotate_iv_per_entry = true |
| Whether to generate unique IV for each log entry. | |
| std::optional< std::chrono::hours > | key_rotation_interval |
| Optional key rotation interval. | |
| std::filesystem::path | key_rotation_path |
| Path for key rotation (new keys saved here) | |
| std::filesystem::path | key_storage_base = "/var/log/keys" |
| Allowed base directory for key storage. | |
Configuration for encrypted_writer.
Contains all parameters needed for log encryption including the encryption algorithm, key, and optional key rotation settings.
Definition at line 89 of file encrypted_writer.h.
|
inline |
Constructor for encryption_config.
| algo | Encryption algorithm |
| encryption_key | The encryption key (moved) |
Definition at line 131 of file encrypted_writer.h.
|
inline |
Definition at line 137 of file encrypted_writer.h.
|
defaultnoexcept |
|
delete |
|
delete |
|
defaultnoexcept |
| encryption_algorithm kcenon::logger::encryption_config::algorithm = encryption_algorithm::aes_256_gcm |
Encryption algorithm to use.
Definition at line 94 of file encrypted_writer.h.
| security::secure_key kcenon::logger::encryption_config::key |
Encryption key (must be 32 bytes for AES-256)
Definition at line 100 of file encrypted_writer.h.
Referenced by kcenon::logger::encrypted_writer::encrypted_writer().
| std::optional<std::chrono::hours> kcenon::logger::encryption_config::key_rotation_interval |
Optional key rotation interval.
Definition at line 112 of file encrypted_writer.h.
| std::filesystem::path kcenon::logger::encryption_config::key_rotation_path |
Path for key rotation (new keys saved here)
Definition at line 118 of file encrypted_writer.h.
| std::filesystem::path kcenon::logger::encryption_config::key_storage_base = "/var/log/keys" |
Allowed base directory for key storage.
Definition at line 124 of file encrypted_writer.h.
| bool kcenon::logger::encryption_config::rotate_iv_per_entry = true |
Whether to generate unique IV for each log entry.
Definition at line 106 of file encrypted_writer.h.