Skip to content

Commit

Permalink
intrep-key changes to follow convention
Browse files Browse the repository at this point in the history
Changed intrep-key to follow internal representation convention that uses text keys instead of numeric.
  • Loading branch information
nedmsmith authored and yogeshbdeshpande committed Dec 11, 2024
1 parent e3e5bb2 commit 984e952
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions cddl/examples/intrep-3.diag
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@
] ],
/ intrep-key / 65534 : [
/ typed-crypto-key / {
/ key / 0 : 556("base64_cert_path_X"),
/ key-type / 1 : 1
"key": 556("base64_cert_path_X"),
"key-type": 1
},
/ typed-crypto-key / {
/ key / 0 : 554("base64_key_Y"),
/ key-type / 1 : 2
"key": 554("base64_key_Y"),
"key-type": 2
}
]
}
Expand Down
4 changes: 2 additions & 2 deletions cddl/intrep-key.cddl
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ $$measurement-values-map-extension //= (
)

typed-crypto-key = {
&(key: 0) => $crypto-key-type-choice
? &(key-type: 1) => uint .bits key-type
key: $crypto-key-type-choice
? key-type: uint .bits key-type
}

key-type = &(
Expand Down

0 comments on commit 984e952

Please sign in to comment.