-
Notifications
You must be signed in to change notification settings - Fork 31
[WIP] igvm_defs: introduce corim measurement header #99
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
| /// A structure defining a CoRIM CBOR payload for a given platform. TODO: rename | ||
| /// to remove measurement? | ||
| /// | ||
| /// The payload described by this header is a CBOR CoRIM payload. There may only |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would be good to be have a similar level of detail here as below, pointing to section 4.1 of the spec, and explicitly calling it out as a tagged unsigned CoRIM map.
|
CoRIM spec does not seem to support detached mode —- waiting for confirmation ietf-rats-wg/draft-ietf-rats-corim#514 |
|
There is a proposal to add detached mode support: ietf-rats-wg/draft-ietf-rats-corim#520 |
| /// A Corim measurement structure described by [`IGVM_VHS_CORIM_MEASUREMENT`]. | ||
| /// FIXME: should this be an init header to be early in the file? | ||
| #[cfg_attr(docsrs, doc(cfg(feature = "unstable")))] | ||
| IGVM_VHT_CORIM_MEASUREMENT = 0x314, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we call it IGVM_VHT_CORIM_DOCUMENT that aligns better with spec?
| ECDSA_P384 = 0x1, | ||
| } | ||
|
|
||
| /// A structure defining a CoRIM CBOR payload for a given platform. TODO: rename |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| /// A structure defining a CoRIM CBOR payload for a given platform. TODO: rename | |
| /// A structure defining a CoRIM document for a given platform. |
| /// A structure defining a CoRIM CBOR payload for a given platform. TODO: rename | ||
| /// to remove measurement? | ||
| /// | ||
| /// The payload described by this header is a CBOR CoRIM payload. There may only |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| /// The payload described by this header is a CBOR CoRIM payload. There may only | |
| /// The payload described by this header is a CoRIM document described in RFC https://datatracker.ietf.org/doc/draft-ietf-rats-corim/. There may only |
| /// | ||
| /// The payload described by this header is a CBOR CoRIM payload. There may only | ||
| /// be one for a given platform. There may be an associated COSE_Sign1 structure | ||
| /// wrapping this payload, see [`IGVM_VHS_CORIM_SIGNATURE`]. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For detached mode
| /// wrapping this payload, see [`IGVM_VHS_CORIM_SIGNATURE`]. | |
| /// for this payload, see [`IGVM_VHS_CORIM_SIGNATURE`]. |
| /// be one for a given platform. There may be an associated COSE_Sign1 structure | ||
| /// wrapping this payload, see [`IGVM_VHS_CORIM_SIGNATURE`]. | ||
| /// | ||
| /// The CoRIM payload must adhere to the following specifications for each |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| /// The CoRIM payload must adhere to the following specifications for each | |
| /// The CoRIM document must adhere to the following specifications for each |
| pub reserved: u32, | ||
| } | ||
|
|
||
| /// This is a signed COSE_Sign1 structure wrapping a CoRIM CBOR payload for a |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| /// This is a signed COSE_Sign1 structure wrapping a CoRIM CBOR payload for a | |
| /// A COSE_Sign1 structure that signs the CoRIM document for a given platform. | |
| /// The associated document is defined in [`IGVM_VHS_CORIM_DOCUMENT`]. | |
| /// This structure always corresponds to a document and uses a detached payload, | |
| /// so the document itself is not embedded here. |
Add the idea of a CoRIM header for a signed CoRIM payload for a given platform.
WIP