-
Notifications
You must be signed in to change notification settings - Fork 59
Description
In a remote attestation use case, a client needs to parse attestation reports provided by a server. The sev crate currently does not seem like a good fit for that, as it is not forward compatible.
For example, an existing client fails to parse a V5 report provided by a server if it has not received #312 yet. This seems rather unnecessary and the client could easily provide forward compatibility as long as new attestation versions do not actually break previous specs.
The reason that the parser fails is simply because skip_bytes expects all reserved areas to be zeroed. The spec does not even require that for all reserved areas. It seems like the only reason for the parser to expect it is that when a parsed AttestationReport gets encoded to bytes, reserved areas also simply get filled with zeros.
Would you consider actually reading and writing contents of reserved areas instead of requiring them to be zeroed to provide simple forward compatibility for distributed software?