-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #20 from ietf-rats-wg/json-ex
JSON examples
- Loading branch information
Showing
14 changed files
with
115 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
bytes-b64u = text .b64u bytes | ||
bytes4 = bytes .size 4 | ||
bytes4-b64u = text .b64u bytes4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,11 @@ | ||
;# import sw-version-type from RFCXXXX as eat | ||
|
||
component-id = [ | ||
name: text | ||
? version: eat.sw-version-type | ||
? version: version | ||
] | ||
|
||
;# import coswid.$version-scheme from rfc9393 as coswid | ||
|
||
version = [ | ||
val: text | ||
? scheme: coswid.$version-scheme | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"measurements": [ | ||
[ | ||
TBD2, / mc+json / | ||
"{ \"id\": [ \"boot loader X\", [ \"1.2.3rc2\", 16384 ] ], \"measurement\": [ \"sha-256\", \"OZYAPUhvuR_7BW99A_KymSshWzHb569LNzQx_H0xnaM\" ], \"signers\": [ \"SS6bZ2wh9gErHO65Ay_rQUGogHlzVfZnUBXsWcUcoew\", \"Qne7l7p7UVd6DTgVHT4ItAvflGdT9bW964FNb_V6il4\" ] }" | ||
] | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
273: [ | ||
[ | ||
65000, / using a CoAP C-F from the experimental range / | ||
TBD1, / mc+cbor / | ||
<< | ||
{ | ||
/ id / 1: [ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"id": [ | ||
"boot loader X", | ||
[ | ||
"1.2.3rc2", | ||
16384 | ||
] | ||
], | ||
"measurement": [ | ||
"sha-256", | ||
"OZYAPUhvuR_7BW99A_KymSshWzHb569LNzQx_H0xnaM" | ||
], | ||
"signers": [ | ||
"SS6bZ2wh9gErHO65Ay_rQUGogHlzVfZnUBXsWcUcoew", | ||
"Qne7l7p7UVd6DTgVHT4ItAvflGdT9bW964FNb_V6il4" | ||
], | ||
"flags": "AAABAQ" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"id": [ | ||
"boot loader X", | ||
[ | ||
"1.2.3rc2", | ||
16384 | ||
] | ||
], | ||
"measurement": [ | ||
"sha-256", | ||
"OZYAPUhvuR_7BW99A_KymSshWzHb569LNzQx_H0xnaM" | ||
], | ||
"flags": "AAABAQ" | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
id-label = JC<"id", 1> | ||
measurement-label = JC<"measurements", 2> | ||
signers-label = JC<"signers", 3> | ||
id-label = eat.JC<"id", 1> | ||
measurement-label = eat.JC<"measurement", 2> | ||
signers-label = eat.JC<"signers", 3> | ||
flags-label = eat.JC<"flags", 4> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,12 @@ | ||
;# import corim.digest from RFCYYYY as corim | ||
;# import corim.digest from rfcYYYY as corim | ||
;# import eat.JC from rfc9711 as eat | ||
|
||
measured-component = { | ||
id-label => component-id | ||
measurement-label => corim.digest | ||
? signers-label => [ + signer-type ] | ||
? flags-label => profile-flags | ||
? flags-label => flags-type | ||
} | ||
|
||
signer-type = eat.JC<bytes-b64u, bytes> | ||
flags-type = eat.JC<bytes4-b64u, bytes4> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
profile-flags = bytes .size 4 | ||
flags-type = eat.JC<bytes4-b64u, bytes4> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
signer-type = bytes | ||
signer-type = eat.JC<bytes-b64u, bytes> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters