Safe API Framework
Layered API framework for safety-related applications (ERTMS RBC reference targeting CENELEC EN 50128 SIL 4)
Loading...
Searching...
No Matches
Checksum Module - Architecture
  • CRC-64 polynomial-based checksums for data integrity. Supports ERTMS,
  • ISO, XZ polynomials. O(n) computation over data buffer.

Initialization

  • sapi_checksum_init(polynomial) - Initialize lookup tables
  • Call once at startup before using CRC functions.

Computation

  • sapi_checksum_crc64(data, length) - Compute CRC-64
  • Returns 64-bit checksum for data integrity verification.

O(n) Per Buffer

  • Time proportional to data length. One lookup table per polynomial.

MISRA Compliant

  • ✓ No dynamic allocation
  • ✓ Bounded computation
  • */