pub(crate) fn build_endorsement_json(
platform: IgvmPlatformType,
digest: &[u8],
svn: u32,
debug_enabled: bool,
) -> MeasurementExpand description
Build a JSON identity document for a platform measurement.
The digest is produced by IgvmSerializer::measurement_for(platform)
which contractually returns 48 bytes for SNP/TDX and 32 bytes for
VBS; a length mismatch is an in-tree invariant violation and panics.
platform is restricted to the three measurable platforms by the
only call site (create_igvm_file’s platform_metas loop); any
other value is unreachable!.