pub fn verify_cmod_signature(
header_bytes: &[u8],
key_id_offset: usize,
sig_offset: usize,
payload: &[u8],
) -> VerifyResultExpand description
Verify a CMOD module’s signature.
Extracts key_id and signature from the raw header, then verifies
the signature over payload (which must be code+data, NOT the header).
§Arguments
header_bytes- The raw CMOD headerkey_id_offset- Byte offset of key_id in headersig_offset- Byte offset of signature in headerpayload- The data that was signed (code + data sections)