nvml-wrapper
nvml-wrapper copied to clipboard
device: fix attestation report size
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