diff --git a/examples/comid-design.diag b/examples/comid-design.diag index e6d4510..cf146c1 100644 --- a/examples/comid-design.diag +++ b/examples/comid-design.diag @@ -78,16 +78,18 @@ / comid.layer / 3 : 2 } }, - / measurement-map / { - / comid.mval / 1 : { - / raw-value-group / - / comid.raw-value / 4 : 560(h'0000000000000000'), - / comid.raw-value-mask / 5 : h'FFFFFFFF00000000' - }, - / comid.authorized-by / 2 : [ - / tagged-pkix-base64-key-type / 554("base64_fpgadesignsrus_key_y") - ] - } + [ + / measurement-map / { + / comid.mval / 1 : { + / raw-value-group / + / comid.raw-value / 4 : 560(h'0000000000000000'), + / comid.raw-value-mask / 5 : h'FFFFFFFF00000000' + }, + / comid.authorized-by / 2 : [ + / tagged-pkix-base64-key-type / 554("base64_fpgadesignsrus_key_y") + ] + } + ] ], [ / environment-map / { @@ -99,19 +101,21 @@ / comid.layer / 3 : 2 } }, - / measurement-map / { - / comid.mval / 1 : { - / comid.digests / 2 : [ - [ - / hash-alg-id / 7, / SHA384 / - / hash-value / h'3FE18ECA4053879E017EF5EB7A3E5157659C5F9BB15B7D09959B8B8647822A4CC21C3AA6721CEF87F5BFA53495DB0833' + [ + / measurement-map / { + / comid.mval / 1 : { + / comid.digests / 2 : [ + [ + / hash-alg-id / 7, / SHA384 / + / hash-value / h'3FE18ECA4053879E017EF5EB7A3E5157659C5F9BB15B7D09959B8B8647822A4CC21C3AA6721CEF87F5BFA53495DB0833' + ] ] + }, + / comid.authorized-by / 2 : [ + / tagged-pkix-base64-key-type / 554("base64_fpgadesignsrus_key_y") ] - }, - / comid.authorized-by / 2 : [ - / tagged-pkix-base64-key-type / 554("base64_fpgadesignsrus_key_y") - ] - } + } + ] ], [ / environment-map / { @@ -123,19 +127,21 @@ / comid.layer / 3 : 2 } }, - / measurement-map / { - / comid.mval / 1 : { - / comid.digests / 2 : [ - [ - / hash-alg-id / 7, / SHA384 / - / hash-value / h'20FF681A0882E29B481953888936209CB53DF9C5AAEC606A2C24A0FB138595124B8E3F24A12771BC3854CC68B40361AD' + [ + / measurement-map / { + / comid.mval / 1 : { + / comid.digests / 2 : [ + [ + / hash-alg-id / 7, / SHA384 / + / hash-value / h'20FF681A0882E29B481953888936209CB53DF9C5AAEC606A2C24A0FB138595124B8E3F24A12771BC3854CC68B40361AD' + ] ] + }, + / comid.authorized-by / 2 : [ + / tagged-pkix-base64-key-type / 554("base64_fpgadesignsrus_key_y") ] - }, - / comid.authorized-by / 2 : [ - / tagged-pkix-base64-key-type / 554("base64_fpgadesignsrus_key_y") - ] - } + } + ] ], [ / environment-map / { @@ -146,38 +152,42 @@ / comid.vendor / 1 : "fpgadesignsrus.example" } }, - / measurement-map / { - / comid.mval / 1 : { - / raw-value-group / - / comid.raw-value / 4 : 560(h'000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'), - / comid.raw-value-mask / 5 : h'466224343D681802C1506BBED7D7F00B969BADDD6346E4F2E7CE146692996F22A45814DE81D248F583B65F817B5FCEAB' - }, - / comid.authorized-by / 2 : [ - / tagged-pkix-base64-key-type / 554("base64_fpgadesignsrus_key_z") - ] - } + [ + / measurement-map / { + / comid.mval / 1 : { + / raw-value-group / + / comid.raw-value / 4 : 560(h'000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'), + / comid.raw-value-mask / 5 : h'466224343D681802C1506BBED7D7F00B969BADDD6346E4F2E7CE146692996F22A45814DE81D248F583B65F817B5FCEAB' + }, + / comid.authorized-by / 2 : [ + / tagged-pkix-base64-key-type / 554("base64_fpgadesignsrus_key_z") + ] + } + ] ] ], / comid.endorsed-triples / 1 : [ [ - / environment-map / { + / environment-map / { / ** Design is valid (example assertion) ** / - / comid.class / 0 : { - / comid.class-id / 0 : - / tagged-oid-type / 111(h'0607517B010F046302'), / 2.1.123.1.15.4.99.2 / - / comid.vendor / 1 : "fpgadesignsrus.example" - } - }, - / measurement-map / { - / comid.mval / 1 : { - / raw-value-group / - / comid.raw-value / 4 : 560(h'0000000000000000'), - / comid.raw-value-mask / 5 : h'FFFFFFFF00000000' - }, - / comid.authorized-by / 2 : [ - / tagged-pkix-base64-key-type / 554("base64_fpgadesignsrus_key_z") - ] - } + / comid.class / 0 : { + / comid.class-id / 0 : + / tagged-oid-type / 111(h'0607517B010F046302'), / 2.1.123.1.15.4.99.2 / + / comid.vendor / 1 : "fpgadesignsrus.example" + } + }, + [ + / measurement-map / { + / comid.mval / 1 : { + / raw-value-group / + / comid.raw-value / 4 : 560(h'0000000000000000'), + / comid.raw-value-mask / 5 : h'FFFFFFFF00000000' + }, + / comid.authorized-by / 2 : [ + / tagged-pkix-base64-key-type / 554("base64_fpgadesignsrus_key_z") + ] + } + ] ] ] } diff --git a/examples/comid-domain-memb.diag b/examples/comid-domain-memb.diag index 0720bfd..425ebae 100644 --- a/examples/comid-domain-memb.diag +++ b/examples/comid-domain-memb.diag @@ -54,20 +54,22 @@ / comid.index / 4 : 0 } }, - / measurement-map / { - / comid.mval / 1 : { - / comid.svn / 1 : 552(1), - / comid.digests / 2 : [ - [ - / hash-alg-id / 7, / SHA384 / - / hash-value / h'15E77D6F133252F1DB7044901313884F2977D2109B33C79F33E079BFC78865255C0FB733C240FDDA544B8215D7B8F815' + [ + / measurement-map / { + / comid.mval / 1 : { + / comid.svn / 1 : 552(1), + / comid.digests / 2 : [ + [ + / hash-alg-id / 7, / SHA384 / + / hash-value / h'15E77D6F133252F1DB7044901313884F2977D2109B33C79F33E079BFC78865255C0FB733C240FDDA544B8215D7B8F815' + ] ] + }, + / comid.authorized-by / 2 : [ + / tagged-pkix-base64-key-type / 554("base64_intel_key_x") ] - }, - / comid.authorized-by / 2 : [ - / tagged-pkix-base64-key-type / 554("base64_intel_key_x") - ] - } + } + ] ], [ / environment-map / { @@ -79,20 +81,22 @@ / comid.index / 4 : 0 } }, - / measurement-map / { - / comid.mval / 1 : { - / comid.svn / 1 : 552(1), - / comid.digests / 2 : [ - [ - / hash-alg-id / 7, / SHA384 / - / hash-value / h'3D90B6BF003DA2D94EA5463F97FB3C53DDC51CFBA1E3E38EEF7AF071A67986595D22729131DF9FE80F5451EEF154F85E' + [ + / measurement-map / { + / comid.mval / 1 : { + / comid.svn / 1 : 552(1), + / comid.digests / 2 : [ + [ + / hash-alg-id / 7, / SHA384 / + / hash-value / h'3D90B6BF003DA2D94EA5463F97FB3C53DDC51CFBA1E3E38EEF7AF071A67986595D22729131DF9FE80F5451EEF154F85E' + ] ] + }, + / comid.authorized-by / 2 : [ + / tagged-pkix-base64-key-type / 554("base64_intel_key_x") ] - }, - / comid.authorized-by / 2 : [ - / tagged-pkix-base64-key-type / 554("base64_intel_key_x") - ] - } + } + ] ] ], / comid.endorsed-triples / 1 : [ @@ -105,16 +109,18 @@ / comid.vendor / 1 : "fwmfginc.example" } }, - / measurement-map / { - / comid.mval / 1 : { - / raw-value-group / - / comid.raw-value / 4 : 560(h'0000000000000000'), - / comid.raw-value-mask / 5 : h'FFFFFFFF00000000' - }, - / comid.authorized-by / 2 : [ - / tagged-pkix-base64-key-type / 554("base64_intel_key_x") - ] - } + [ + / measurement-map / { + / comid.mval / 1 : { + / raw-value-group / + / comid.raw-value / 4 : 560(h'0000000000000000'), + / comid.raw-value-mask / 5 : h'FFFFFFFF00000000' + }, + / comid.authorized-by / 2 : [ + / tagged-pkix-base64-key-type / 554("base64_intel_key_x") + ] + } + ] ] ] } diff --git a/examples/comid-flags.diag b/examples/comid-flags.diag index 2d16cc8..09b3b15 100644 --- a/examples/comid-flags.diag +++ b/examples/comid-flags.diag @@ -28,24 +28,26 @@ / vendor / 1 : "fwmfginc.example" } }, - / measurement-map / { - / mval / 1 : { - / flags / 3 : { - / configured / 0 : true, - / secure / 1 : true, - / not-recovery / 2 : true, - / debug / 3 : false, - / replay-protected / 4 : true, - / integrity-protected / 5 : true, - / runtime-meas / 6 : true, - / immutable / 7 : true, - / tcb / 8 : true - } - }, - / comid.authorized-by / 2 : [ - / tagged-pkix-base64-key-type / 554("base64_key_X") - ] - } + [ + / measurement-map / { + / mval / 1 : { + / flags / 3 : { + / configured / 0 : true, + / secure / 1 : true, + / not-recovery / 2 : true, + / debug / 3 : false, + / replay-protected / 4 : true, + / integrity-protected / 5 : true, + / runtime-meas / 6 : true, + / immutable / 7 : true, + / tcb / 8 : true + } + }, + / comid.authorized-by / 2 : [ + / tagged-pkix-base64-key-type / 554("base64_key_X") + ] + } + ] ] ] } diff --git a/examples/comid-spdmi.diag b/examples/comid-spdmi.diag index 2469510..4d098f7 100644 --- a/examples/comid-spdmi.diag +++ b/examples/comid-spdmi.diag @@ -28,16 +28,18 @@ / vendor / 1 : "fwmfginc.example" } }, - / measurement-map / { - / mval / 1 : { - / spdm-indirect / 12 : { - / index / 0 : [ 1, 2, 3, 4, 5 ] - } - }, - / authorized-by / 2 : [ - / tagged-pkix-base64-key-type / 554("base64_key_X") - ] - } + [ + / measurement-map / { + / mval / 1 : { + / spdm-indirect / 12 : { + / index / 0 : [ 1, 2, 3, 4, 5 ] + } + }, + / authorized-by / 2 : [ + / tagged-pkix-base64-key-type / 554("base64_key_X") + ] + } + ] ] ] }