[WIP] igvm_defs: introduce corim measurement header#99
[WIP] igvm_defs: introduce corim measurement header#99chris-oo wants to merge 2 commits intomicrosoft:mainfrom
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.
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.
Can we call it IGVM_VHT_CORIM_DOCUMENT that aligns better with spec?
There was a problem hiding this comment.
agreed, we'll rename this to IGVM_VHT_CORIM_DOCUMENT and the structure to IGVM_VHS_CORIM_DOCUMENT which represents the detached corim payload (no signature)
| ECDSA_P384 = 0x1, | ||
| } | ||
|
|
||
| /// A structure defining a CoRIM CBOR payload for a given platform. TODO: rename |
There was a problem hiding this comment.
| /// 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.
| /// 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.
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.
| /// 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.
| /// 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