Skip to content

Commit

Permalink
revert intrep-ect.cddl
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Fossati <[email protected]>
  • Loading branch information
thomas-fossati authored and yogeshbdeshpande committed Dec 11, 2024
1 parent 4759649 commit e3e5bb2
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion cddl/examples/intrep-1.diag
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/ ECT / {
/ cmtype / 3 : 2
"cmtype" : 2
}

4 changes: 2 additions & 2 deletions cddl/examples/intrep-2.diag
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
/ ECT / {
/ environment-map / 0 : {
"environment" : {
/ class / 0 : {
/ class-id / 0 :
/ tagged-uuid-type / 37( h'67b28b6c34cc40a19117ab5b05911e37' )
}
},
/ cmtype / 3 : 1
"cmtype" : 1
}
8 changes: 4 additions & 4 deletions cddl/examples/intrep-3.diag
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
/ ECT / {
/ environment-map / 0 : {
"environment" : {
/ class / 0 : {
/ class-id / 0 :
/ tagged-uuid-type / 37( h'67b28b6c34cc40a19117ab5b05911e37' )
}
},
/ element-list / 1 : [
"element-list" : [
/ element-map / {
/ element-claims / 1 : {
"element-claims" : {
/ ver / 0 : {
/ version / 0 : "1.0.0"
},
Expand All @@ -28,5 +28,5 @@
}
}
],
/ cmtype / 3 : 2
"cmtype" : 2
}
14 changes: 7 additions & 7 deletions cddl/intrep-ect.cddl
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
ECT = {
? &(environment: 0) => environment-map
? &(element-list: 1) => [ + element-map ]
? &(authority: 2) => [ + $crypto-key-type-choice ]
&(cmtype: 3) => uint .bits cm-type
? &(profile: 4) => $profile-type-choice
? environment: environment-map
? element-list: [ + element-map ]
? authority: [ + $crypto-key-type-choice ]
cmtype: cm-type
? profile: $profile-type-choice
}

element-map = {
? &(element-id: 0) => $measured-element-type-choice
&(element-claims: 1) => measurement-values-map
? element-id: $measured-element-type-choice
element-claims: measurement-values-map
}

cm-type = &(
Expand Down

0 comments on commit e3e5bb2

Please sign in to comment.