Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
; An Attested CSR EAT is one of two variants:
; - A CSR response, returned for a specific KeyPairID > 0.
; - A keypair-inventory (discovery) response, returned when the
; Requester specifies KeyPairID = 0.
cwt-attested-csr-eat =
cwt-attested-csr-eat-csr /
cwt-attested-csr-eat-inventory

cwt-attested-csr-eat-csr = {
; Issuer claim is StringOrURI (tstr)
&(iss : 1) => tstr

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

remove iss


; Nonce claim is nonce-type = bstr .size (8..64)
? &(nonce : 10) => bstr

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

nonce is not optional


; Private Claims (they have to be < -65536 for rfc8392)

; CSR bytestring
&(csr: -70001) => bstr

; Attribute List of OIDs
&(attrib: -70002) => [+ $key-attributes-type]
}

; Discovery response payload returned when KeyPairID = 0 in the request.
cwt-attested-csr-eat-inventory = {
&(iss : 1) => tstr

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

remove iss


? &(nonce : 10) => bstr

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

nonce is not optional


; KeyPair Inventory private claim. Each entry pairs a KeyPairID
; with the list of derivation-attribute OIDs that apply to it.
&(keypair-inventory: -70003) => [+ keypair-inventory-entry]
}

keypair-inventory-entry = [
keypair-id: 1..255,
attributes: [+ $key-attributes-type]
]

$key-attributes-type = tagged-oid-type

signed-cwt = #6.18(COSE-Sign1-attested-csr)

COSE-Sign1-attested-csr = [
protected: bstr .cbor protected-esc-header-map

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

(informative) what is esc?

unprotected: unprotected-esc-header-map

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

remove

payload: bstr .cbor cwt-attested-csr-eat
signature: bstr
]

protected-esc-header-map {
; Well-defined header fields
&(alg-id: 1) => int
&(content-type: 3) => tstr / int
&(issuer-key-id: 4) => bstr
; User-defined fields
* cose-label => cose-value

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

remove user defined fields

}

unprotected-esc-header-map = {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

remove unprotected header

; The Attestation Key's certificate chain is NOT carried here; the
; Requester retrieves it via SPDM GET_CERTIFICATE for the slot
; identified by SignerSlotIDParam.
* cose-label => cose-value

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

remove user defined fields

}

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
; ----------------------------------------------------------------------
; Example: CSR response (returned when the Requester sent
; GET_ATTESTED_CSR with a specific KeyPairID > 0). The payload
; carries the CSR for the selected keypair along with the derivation-
; attribute OIDs that apply to it.
; ----------------------------------------------------------------------

signed-cwt / 18([
/ protected / <<{
/ alg-id / 1 : 7,
/ content-type / 3 : "application/eat+cbor",
; SHA-384 hash of the Attestation Key's certificate chain (same as
; the SPDM DIGEST response) for the slot that produced this signature.
/ kid / 4 : h'1a2b3c4d5e6f70819203a4b5c6d7e8f900112233445566778899aabbccddeeff00112233445566778899aabbccddeeff'
}>>,
/ unprotected / {},

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

remove this line

/ payload / <<{
/ iss / 1 : "RT Alias Key",

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Remove iss.

/ nonce / 10: h'AAAABBBBCCCCDDDDEEEEFFFF0000111122223333444455556666777788889999',
/ csr / -70001 : h'59025630820252308201d9a003020102021431a4e0',
/ attrib / -70002: [
/ tagged-oid-type / 111(h'6086480186F84D010F046301')
]
}>>,
/ signature / h'FA45AAB345AB4988'
])

; ----------------------------------------------------------------------
; Example: discovery response (returned when the Requester sent
; GET_ATTESTED_CSR with KeyPairID = 0). The payload omits the
; CSR/attrib claims and instead carries the KeyPair Inventory claim,
; which enumerates every supported KeyPairID and its derivation OIDs.
; ----------------------------------------------------------------------

signed-cwt / 18([
/ protected / <<{
/ alg-id / 1 : 7,
/ content-type / 3 : "application/eat+cbor",
; SHA-384 hash of the Attestation Key's certificate chain (same as
; the SPDM DIGEST response) for the slot that produced this signature.
/ kid / 4 : h'1a2b3c4d5e6f70819203a4b5c6d7e8f900112233445566778899aabbccddeeff00112233445566778899aabbccddeeff'
}>>,
/ unprotected / {},

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

remove

/ payload / <<{
/ iss / 1 : "RT Alias Key",

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

remove iss

/ nonce / 10 : h'AAAABBBBCCCCDDDDEEEEFFFF0000111122223333444455556666777788889999',
/ keypair-inventory / -70003 : [
; KeyPairID 1: IDevID, derived from First Mutable Code

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

This is not derived from FMC. but from UDS.

[ 1, [ 111(h'6086480186F84D010F040602') ] ],
; KeyPairID 2: LDevID, derived from Owner Entropy Fuse +
; First Mutable Code

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

each keypair OIDs list should be independent (not depending on parents).

[ 2, [
111(h'6086480186F84D010F040601'),
111(h'6086480186F84D010F040602')
] ],
; KeyPairID 3: Owner-provisioned alias key

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

use "derived from.. " like previous 2

[ 3, [ 111(h'6086480186F84D010F040604') ] ]

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

The OIDs used by Caliptra should be defined in some Caliptra OID spec.

Caliptra will use single OID to cover a set of values (TCIs). ???

The list may be implementation specific. List of OID or bitmask?

]
}>>,
/ signature / h'FA45AAB345AB4988'
])

This file was deleted.

Loading