Skip to content

Commit

Permalink
Allow mkey tstr (#325)
Browse files Browse the repository at this point in the history
* Update measured-element-type-choice.cddl

Added tstr as mkey type.

* Update comid-3.diag

Added mkey examples for all of the possible mkey types.

* Update draft-ietf-rats-corim.md

Added tstr as an mkey type.
  • Loading branch information
nedmsmith authored Oct 16, 2024
1 parent 42bd6ae commit a5a3209
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 2 deletions.
34 changes: 33 additions & 1 deletion cddl/examples/comid-3.diag
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,41 @@
/ hash-alg-id / 6, / sha-256-32 /
/ hash-value / h'ABCDEF00' ]]
}
},
/ measurement-map / {
/ comid.mkey / 0: "my_element",
/ comid.mval / 1 : {
/ comid.digests / 2 : [[
/ hash-alg-id / 6, / sha-256-32 /
/ hash-value / h'00FEDCBA' ]]
}
},
/ measurement-map / {
/ comid.mkey / 0: 111( h'5502C001' ),
/ comid.mval / 1 : {
/ comid.digests / 2 : [[
/ hash-alg-id / 6, / sha-256-32 /
/ hash-value / h'00FEDCBA' ]]
}
},
/ measurement-map / {
/ comid.mkey / 0: 37( h'67b28b6c34cc40a19117ab5b05911e38' ),
/ comid.mval / 1 : {
/ comid.digests / 2 : [[
/ hash-alg-id / 6, / sha-256-32 /
/ hash-value / h'00FEDCBA' ]]
}
},
/ measurement-map / {
/ anonymous mkey /
/ comid.mval / 1 : {
/ comid.digests / 2 : [[
/ hash-alg-id / 6, / sha-256-32 /
/ hash-value / h'11223344' ]]
}
}
]
]
]
}
}
}
1 change: 1 addition & 0 deletions cddl/measured-element-type-choice.cddl
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
$measured-element-type-choice /= tagged-oid-type
$measured-element-type-choice /= tagged-uuid-type
$measured-element-type-choice /= uint
$measured-element-type-choice /= tstr
2 changes: 1 addition & 1 deletion draft-ietf-rats-corim.md
Original file line number Diff line number Diff line change
Expand Up @@ -812,7 +812,7 @@ The following describes each member of the `measurement-map`:
###### Measurement Keys {#sec-comid-mkey}

Measurement keys are locally scoped extensible identifiers.
The initial types defined are OID, UUID, and uint.
The initial types defined are OID, UUID, uint, and tstr.
`mkey` may be necessary to disambiguate multiple measurements of the same type or to distinguish multiple measured elements within the same environment.
A single anonymous `measurement-map` is allowed within the same environment.
Two or more measurement-map entries within the same environment MUST populate `mkey`.
Expand Down

0 comments on commit a5a3209

Please sign in to comment.