Skip to content

File SolidSyslogCrc16Policy.h

FileList > Core > Interface > SolidSyslogCrc16Policy.h

Go to the source code of this file

A SecurityPolicy that appends a two-byte CRC-16 trailer to each stored record. More...

  • #include "ExternC.h"

Public Functions

Type Name
EXTERN_C_BEGIN struct SolidSyslogSecurityPolicy * SolidSyslogCrc16Policy_Create (void)
An unkeyed at-rest integrity policy: it appends a CRC-16 trailer that catches accidental corruption of a stored record, but offers no defence against a deliberate edit (a tamperer can recompute the CRC).
void SolidSyslogCrc16Policy_Destroy (void)
No-op: the policy is stateless and holds no pool slot.

Detailed Description

Seal computes the CRC over the whole content; Open recomputes and compares. This is an unkeyed checksum — it catches accidental corruption (bit-rot, a truncated write) but is not tamper-evidence: anyone who edits a record can recompute a matching CRC. For tamper-evidence or confidentiality use a keyed policy. Being a checksum (not an AEAD), it ignores the record's header/body split and checks the whole content as one span. The instance is a shared stateless singleton, so it holds no pool slot and Destroy is a no-op.

Public Functions Documentation

function SolidSyslogCrc16Policy_Create

An unkeyed at-rest integrity policy: it appends a CRC-16 trailer that catches accidental corruption of a stored record, but offers no defence against a deliberate edit (a tamperer can recompute the CRC).

EXTERN_C_BEGIN struct SolidSyslogSecurityPolicy * SolidSyslogCrc16Policy_Create (
    void
) 

For tamper-evidence or confidentiality use a keyed policy (HmacSha256, AesGcm) instead. Returns a shared stateless instance; never NULL.


function SolidSyslogCrc16Policy_Destroy

No-op: the policy is stateless and holds no pool slot.

void SolidSyslogCrc16Policy_Destroy (
    void
) 

Present for lifecycle symmetry with the keyed policies.



The documentation for this class was generated from the following file Core/Interface/SolidSyslogCrc16Policy.h