nvml-wrapper icon indicating copy to clipboard operation
nvml-wrapper copied to clipboard

device: fix attestation report size

Open fitzthum opened this issue 1 month ago • 0 comments

Currently we do not account for the size of the attestation reports when moving them from the C struct to the Rust struct. This results in many zeros being included at the end of the report.

Since the size of each report is provided, use this to include only the bytes which contain the report.

Also, do the same thing for the cert chains, although the cert chain format is a little more resilient to trailing characters.

cc @jorgeantonio21

fitzthum avatar Nov 18 '25 17:11 fitzthum