Skip to content

Commit

Permalink
Created workaround for corim breaking change
Browse files Browse the repository at this point in the history
Corim in ietf created a breaking change to reference-triple-record that removed multiplicity of measurement-map. This workaround replaces the brackets.
  • Loading branch information
nedmsmith committed Sep 11, 2024
1 parent c44669e commit 39691c4
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 24 deletions.
10 changes: 9 additions & 1 deletion concise-evidence.cddl
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ $evidence-id-type-choice /= tagged-uuid-type
; additional evidence identifier types may be added here

ev-triples-map = non-empty< {
? &(ce.evidence-triples: 0) => [ + reference-triple-record ]
;? &(ce.evidence-triples: 0) => [ + reference-triple-record ]
; temporary workaround to non-speccompliant reference-triple-record
? &(ce.evidence-triples: 0) => [ + ce.evidence-triple-record ]
? &(ce.identity-triples: 1) => [ + identity-triple-record ]
? &(ce.dependency-triples: 2) => [ + domain-dependency-triple-record ]
? &(ce.domain-membership-triples: 3) => [ + domain-membership-triple-record ]
Expand All @@ -28,3 +30,9 @@ ev-coswid-evidence-map = {
&(ce.coswid-evidence: 1) => evidence-entry
? &(ce.authorized-by: 2) => [ + $crypto-key-type-choice ] ; see comid schema
}

; temporary workaround
ce.evidence-triple-record = [
environment-map
[ + measurement-map ]
]
24 changes: 13 additions & 11 deletions examples/ce-indirect.diag
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,20 @@
/ comid.vendor / 1 : "xyzinc.example"
}
},
/ measurement-map / {
/ mval / 1 : {
/ spdm-indirect / 12 : / extends measurement-values-map / {
/ index / 0 : [ 1, 2, 3, 4, 5 ]
[
/ measurement-map / {
/ mval / 1 : {
/ spdm-indirect / 12 : / extends measurement-values-map / {
/ index / 0 : [ 1, 2, 3, 4, 5 ]
},
/ digests / 2 : [ [ 1, h'FFFEFDFCFBFAF9F8F7F6F5F4F3F2F1F0'] ],
/ raw-value / 4 : 560(h'0123456789')
},
/ digests / 2 : [ [ 1, h'FFFEFDFCFBFAF9F8F7F6F5F4F3F2F1F0'] ],
/ raw-value / 4 : 560(h'0123456789')
},
/ authorized-by / 2 : [
/ tagged-pkix-base64-key-type / 554("base64_key_X")
]
}
/ authorized-by / 2 : [
/ tagged-pkix-base64-key-type / 554("base64_key_X")
]
}
]
]
]
},
Expand Down
26 changes: 14 additions & 12 deletions examples/spdm-indirect.diag
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,20 @@
/ comid.vendor / 1 : "xyzinc.example"
}
},
/ measurement-map / {
/ comid.mval / 1 : {
/ digests / 2 : [ [ 1, h'FFFEFDFCFBFAF9F8F7F6F5F4F3F2F1F0'] ],
/ raw-value / 4 : 560(h'0123456789'),
/ comid.spdm-indirect / 12 : {
/ spdm.index / 0 : [ 1, 2, 3, 4, 5 ]
}
},
/ comid.authorized-by / 2 : [
/ tagged-pkix-base64-key-type / 554("base64_key_X")
]
}
[
/ measurement-map / {
/ comid.mval / 1 : {
/ digests / 2 : [ [ 1, h'FFFEFDFCFBFAF9F8F7F6F5F4F3F2F1F0'] ],
/ raw-value / 4 : 560(h'0123456789'),
/ comid.spdm-indirect / 12 : {
/ spdm.index / 0 : [ 1, 2, 3, 4, 5 ]
}
},
/ comid.authorized-by / 2 : [
/ tagged-pkix-base64-key-type / 554("base64_key_X")
]
}
]
]
]
}
Expand Down

0 comments on commit 39691c4

Please sign in to comment.