Skip to content

Forward compatibility #343

@cschramm

Description

@cschramm

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions