Skip to content

Commit

Permalink
top-level MC as map
Browse files Browse the repository at this point in the history
Fix #14

Signed-off-by: Thomas Fossati <[email protected]>
  • Loading branch information
thomas-fossati committed Jan 29, 2025
1 parent 6808e55 commit 12d7753
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 23 deletions.
10 changes: 5 additions & 5 deletions cddl/eat-ex1.diag
Original file line number Diff line number Diff line change
Expand Up @@ -3,26 +3,26 @@
[
65000, / using a CoAP C-F from the experimental range /
<<
[
/ id / [
{
/ id / 1: [
/ name / "boot loader X",
/ version / [
"1.2.3rc2",
16384 / semver /
]
],
/ measurement / [
/ measurement / 2: [
/ alg / "sha-256",
/ val / h'3996003d486fb91ffb056f7d03f2b2992b215b31db
e7af4b373431fc7d319da3'
],
/ signers / [
/ signers / 3: [
h'492e9b676c21f6012b1ceeb9032feb4141a880797355f66750
15ec59c51ca1ec',
h'4277bb97ba7b51577a0d38151d3e08b40bdf946753f5b5bdeb
814d6ff57a8a5e'
]
]
}
>>
]
]
Expand Down
10 changes: 5 additions & 5 deletions cddl/ex1.diag
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
[
/ id / [
{
/ id / 1: [
/ name / "boot loader X",
/ version / [
"1.2.3rc2",
16384 / semver /
]
],
/ measurement / [
/ measurement / 2: [
/ alg / "sha-256",
/ val / h'3996003d486fb91ffb056f7d03f2b2992b215b31dbe7af4b37
3431fc7d319da3'
],
/ signers / [
/ signers / 3: [
h'492e9b676c21f6012b1ceeb9032feb4141a880797355f6675015ec59c5
1ca1ec',
h'4277bb97ba7b51577a0d38151d3e08b40bdf946753f5b5bdeb814d6ff5
7a8a5e'
]
]
}
10 changes: 5 additions & 5 deletions cddl/mc.cddl
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
;# import digest from RFCYYYY as corim

measured-component = [
id: component-id
measurement: corim.digest
? signers: [ + signer-type ]
]
measured-component = {
&(id: 1) => component-id
&(measurement: 2) => corim.digest
? &(signers: 3) => [ + signer-type ]
}
10 changes: 5 additions & 5 deletions cddl/measured-component.cddlc
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
measured-component = [
id: component-id
measurement: corim.digest
? signers: [ + signer-type ]
]
measured-component = {
&(id: 1) => component-id
&(measurement: 2) => corim.digest
? &(signers: 3) => [ + signer-type ]
}

signer-type = bytes

Expand Down
6 changes: 3 additions & 3 deletions draft-ietf-rats-eat-measured-component.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,13 +116,13 @@ The data model is inspired by the "PSA software component" claim ({{Section 4.4.
~~~

{:vspace}
`id`
`id (index 1)`
: The measured component identifier encoded according to the format described in {{component-id}}.

`measurement`
`measurement (index 2)`
: Digest value and algorithm, encoded using CoRIM digest format ({{Section 1.3.8 of -corim}}).

`signers`
`signers (index 3)`
: One or more signing entities, see {{signer}}.

### Component Identifier {#component-id}
Expand Down

0 comments on commit 12d7753

Please sign in to comment.