|
Logger System 1.0.0
High-performance C++20 thread-safe logging system with asynchronous capabilities
|
Abstract interface for log integrity signing. More...
#include <integrity_policy.h>


Public Member Functions | |
| virtual | ~integrity_policy ()=default |
| virtual std::string | sign (const std::string &record) const =0 |
Produce a signature for record. | |
| virtual bool | verify (const std::string &record, const std::string &signature) const =0 |
Verify that signature matches record. | |
| virtual std::string | name () const =0 |
| Short identifier used as a prefix in serialized signatures (e.g. "HMAC-SHA256"). Implementations must return a stable non-empty ASCII string. | |
Abstract interface for log integrity signing.
Implementations must be thread-safe: sign() and verify() may be invoked concurrently from writer threads.
Definition at line 53 of file integrity_policy.h.
|
virtualdefault |
|
pure virtual |
Short identifier used as a prefix in serialized signatures (e.g. "HMAC-SHA256"). Implementations must return a stable non-empty ASCII string.
Implemented in kcenon::logger::security::hmac_sha256_integrity_policy.
Referenced by kcenon::logger::security::format_signature_suffix().

|
pure virtual |
Produce a signature for record.
| record | The serialized log record to sign. |
Implemented in kcenon::logger::security::hmac_sha256_integrity_policy.
Referenced by kcenon::logger::security::format_signature_suffix().

|
pure virtual |
Verify that signature matches record.
| record | The original log record. |
| signature | The signature previously emitted by sign(). |
Implemented in kcenon::logger::security::hmac_sha256_integrity_policy.