Skip to main content

core_fields_match

Function core_fields_match 

Source
pub fn core_fields_match(
    reference: &MeasurementMap,
    evidence: &MeasurementMap,
) -> bool
Expand description

Tests whether a reference measurement’s core (non-extension) fields agree with an evidence measurement under the crate’s default exact-match semantics.

This is the stable public entry point for the per-pair comparison performed internally by match_reference_values. It is intended for out-of-crate Profile implementations that own the extension keys (the negative-integer range in MeasurementValuesMap::extra_entries) but want to delegate the structural fields (mkey, digests, svn, version, name, flags, raw-value, mac-addr, ip-addr, serial-number, ueid, uuid, integrity-registers, int-range) to the crate’s default matcher.

Note: this function does NOT inspect MeasurementValuesMap::extra_entries. Profile-aware comparison of extension keys is the caller’s responsibility — typically inside a Profile::match_measurement impl that AND-combines its extension verdict with the result of this function.