Skip to content

Commit b2793e2

Browse files
authored
Define SPDM Key-Map CDDL data structure for KeyPair Discovery (#32)
Signed-off-by: Fabrizio Damato <fabrizio.damato@amd.com>
1 parent 9f47f61 commit b2793e2

2 files changed

Lines changed: 33 additions & 0 deletions

File tree

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
spdm-key = spdm-key-map / tagged-spdm-key-map
2+
3+
tagged-spdm-key-map = #6.572(spdm-key-map) ; speculative because IANA registry is still pending
4+
5+
$key-attributes-type = tagged-oid-type
6+
7+
; TODO: OCP will assign few attributes types but the field is not restricted to those
8+
9+
spdm-key-dict = {
10+
&(id: 0) => uint
11+
&(attrib: 1) => [+ key-attributes-type]
12+
}
13+
14+
spdm-key-map = {
15+
&(key: 0) => [+ spdm-key-map]
16+
}
17+
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
/ tagged-spdm-key-map / 572( {
2+
/ key / 0 : [
3+
{
4+
/ id / 0 : 0,
5+
/ attrib / 1: [
6+
/ tagged-oid-type / 111(h'6086480186F84D010F046301')
7+
]
8+
},
9+
{
10+
/ id / 0 : 1,
11+
/ attrib / 1: [
12+
/ tagged-oid-type / 111(h'6086480186F84D010F046301')
13+
]
14+
}
15+
]
16+
} )

0 commit comments

Comments
 (0)