Skip to content

Commit

Permalink
updated to reflect v1.1 changes
Browse files Browse the repository at this point in the history
Defined evidence triples to not depend on corim triples but rather use corim building blocks.
  • Loading branch information
nedmsmith committed Jan 6, 2025
1 parent 694f74f commit fa7e2ad
Show file tree
Hide file tree
Showing 8 changed files with 43 additions and 18 deletions.
2 changes: 1 addition & 1 deletion ce-start.cddl
Original file line number Diff line number Diff line change
@@ -1 +1 @@
start = concise-evidence-map
start = tagged-concise-evidence
35 changes: 30 additions & 5 deletions concise-evidence.cddl
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,40 @@ $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.identity-triples: 1) => [ + identity-triple-record ]
? &(ce.dependency-triples: 2) => [ + domain-dependency-triple-record ]
? &(ce.domain-membership-triples: 3) => [ + domain-membership-triple-record ]
? &(ce.evidence-triples: 0) => [ + evidence-triple-record ]
? &(ce.identity-triples: 1) => [ + ev-identity-triple-record ]
? &(ce.dependency-triples: 2) => [ + ev-dependency-triple-record ]
? &(ce.domain-membership-triples: 3) => [ + ev-membership-triple-record ]
? &(ce.coswid-triples: 4) => [ + ev-coswid-triple-record ]
? &(ce.attest-key-triples: 5) => [ + attest-key-triple-record ]
? &(ce.attest-key-triples: 5) => [ + ev-attest-key-triple-record ]
* $$ev-triples-map-extension
} >

evidence-triple-record = [
environment-map
[ + measurement-map ]
]

ev-identity-triple-record = [
environment-map
[ + $crypto-key-type-choice ]
]

ev-attest-key-triple-record = [
environment-map
[ + $crypto-key-type-choice ]
]

ev-dependency-triple-record = [
$domain-type-choice
[ + $domain-type-choice ]
]

ev-membership-triple-record = [
$domain-type-choice
[ + environment-map ]
]

ev-coswid-triple-record = [
environment-map,
[ + ev-coswid-evidence-map ]
Expand Down
4 changes: 2 additions & 2 deletions examples/ce-coswid-ee1.diag
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/ concise-evidence / {
/ tagged-concise-evidence / 571({
/ ce.ev-triples / 0 : {
/ ce.coswid-triples / 4 : [
[ /** ev-coswid-triple-record **/
Expand Down Expand Up @@ -36,4 +36,4 @@
]
]
}
}
})
4 changes: 2 additions & 2 deletions examples/ce-coswid.diag
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/ concise-evidence / {
/ tagged-concise-evidence / 571({
/ ce.ev-triples / 0 : {
/ ce.coswid-triples / 4 : [
[ /** ev-coswid-triple-record **/
Expand Down Expand Up @@ -32,4 +32,4 @@
]
]
}
}
})
4 changes: 2 additions & 2 deletions examples/ce-domain-dep.diag → examples/ce-dep.diag
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/ concise-eviidence / {
/ tagged-concise-evidence / 571({
/ ce.ev-triples / 0 : {
/ ce.dependency-triples / 2 : [
[ 3, [ 2 ] ],
Expand All @@ -7,4 +7,4 @@
[ 1, [ "XYZ_Root-of-trust" ]]
]
}
}
})
4 changes: 2 additions & 2 deletions examples/ce-identity.diag
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/ concise-eviidence / {
/ tagged-concise-evidence / 571({
/ ce.ev-triples / 0 : {
/ ce.identity-triples / 1 : [
[
Expand Down Expand Up @@ -49,4 +49,4 @@
]
]
}
}
})
4 changes: 2 additions & 2 deletions examples/ce-indirect.diag
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/ concise-evidence / {
/ tagged-concise-evidence / 571({
/ ce.ev-triples / 0 : {
/ ce.evidence-triples / 0 : [
[ /** note: uses reference-triple-record schema **/
Expand Down Expand Up @@ -27,4 +27,4 @@
]
},
/ce.evidence-id / 1 : 37(h'67b28b6c34cc40a19117ab5b05911e37')
}
})
4 changes: 2 additions & 2 deletions examples/ce-domain-mem.diag → examples/ce-mem.diag
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/ concise-evidence / {
/ tagged-concise-evidence / 571({
/ ce.ev-triples / 0 : {
/ ce.domain-membership-triples / 3 : [
[ / domain / "XYZ_Root-of-trust",
Expand Down Expand Up @@ -101,4 +101,4 @@
]
]
}
}
})

0 comments on commit fa7e2ad

Please sign in to comment.