Skip to content

Conversation

@chris-oo
Copy link
Member

Add the idea of a CoRIM header for a signed CoRIM payload for a given platform.

WIP

/// 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

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.

@mingweishih
Copy link

CoRIM spec does not seem to support detached mode —- waiting for confirmation ietf-rats-wg/draft-ietf-rats-corim#514

@mingweishih
Copy link

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,

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

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
/// 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

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
/// 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`].

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For detached mode

Suggested change
/// 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

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
/// 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

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
/// 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants