|
Crunch
A Message Definition Language for Getting Things Right
|
Concept defining the interface for message integrity policies. More...
#include <crunch_integrity.hpp>
Concept defining the interface for message integrity policies.
An IntegrityPolicy calculates a checksum or digest appended to serialized messages. Implementations must provide:
size(): Returns the checksum size in bytes. Must be constexpr.calculate(data): Computes the checksum for the given byte span. Must be constexpr.