-
Notifications
You must be signed in to change notification settings - Fork 2
/
ServerKeys.cbor
206 lines (187 loc) · 11.9 KB
/
ServerKeys.cbor
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
*** can't parse [
//
/ Set of items that we are using for OSCOAP messages /
//
{ "usage":"oscoap", 1:4 / kty:symmetric /, 2: h'4b65792330', 3:10 /alg:ccm/, "KDF": "dir+kdf", "SenderID": 'client', "RecipID": 'server', -1: h'0102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f20212223'},
{ "usage":"oscoap", 1:4 / kty:symmetric /, 2: h'4b65792331', 3:10 /alg:ccm/, "KDF": "dir+kdf", "SenderID": 'client', "RecipID": 'server', -1: h'020406080a0c0e10121416181a1c1e20222426282a2c2e30323436383a3c3e40424446'},
{ "usage":"oscoap", 1:4 / kty:symmetric /, 2: h'4b65792332', 3:10 /alg:ccm/, "KDF": "dir+kdf", "SenderID": 'client', "RecipID": 'server', -1: h'0306090c0f1215181b1e2124272a2d303336393c3f4245484b4e5154575a5d60636669' },
{ "usage":"oscoap", 1:4 / kty:symmetric /, 2: h'4b65792332', 3:30 /alg:ccm/, "KDF": "dir+kdf", "SenderID": 'client', "RecipID": 'server', -1: h'04080c1014181c2024282c3034383c4044484c5054585c6064686c7074787c8084888c' },
{ "usage":"oscoap", 1:4 / kty:symmetric /, 2: 'client', 3:10 /alg:ccm/, "KDF": "dir+kdf", "SenderID": 'client', "RecipID": 'server', -1: h'0102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f20212223' },
//
/ Key that we are using for Multi-recipient OSCOAP messages /
//
{ "usage":"oscoap-group", 1:4 / kty:symmetric /, 2: 'group01' /group id/, 3:10 /alg:ccm/, -1: h'080c1014181c2024282c3034383c4044484c5054585c6064686c7074787c8084888c8992' /group key/, "sign-alg":-7,
"sender":{ "ID": 'member1', "sign": { -1:1, -2:h'bac5b11cad8f99f9c72b05cf4b9e26d244dc189f745228255a219a86d6a09eff', -3:h'20138bf82dc1b6d562be0fa54ab7804a3a64b6d72ccfed6b6fb6ed28bbfc117e', 1:2, 2:'11', 3:-7 }},
"recipients":[
{"ID": 'member2', "sign": { 1:2, -1:3, -2:h'0072992cb3ac08ecf3e5c63dedec0d51a8c1f79ef2f82f94f3c737bf5de7986671eac625fe8257bbd0394644caaa3aaf8f27a4585fbbcad0f2457620085e5c8f42ad',
-3:h'01dca6947bce88bc5790485ac97427342bc35f887d86d65a089377e247e60baa55e4e8501e2ada5724ac51d6909008033ebc10ac999b9d7f5cc2519f3fe1ea1d9475', 2:'[email protected]', 3:-7 }},
{"ID": 'member3', "sign":{ 1:2, -1:1, -2:h'bac5b11cad8f99f9c72b05cf4b9e26d244dc189f745228255a219a86d6a09eff', -3:h'20138bf82dc1b6d562be0fa54ab7804a3a64b6d72ccfed6b6fb6ed28bbfc117e', 2:'11', 3:-7 } }
]},
{ "usage":"oscoap-group",
"GroupID":h'37cbf3210017a2d3', / Group ID /
2:h'37cbf3210017a2d3', / Group ID /
"sign-alg": -7, / Signature Algorithm for Everybody /
3:10, / AEAD Algorithm : 10 /
1:4, / Key Type Symmetric /
-1:h'0102030405060708090a0b0c0d0e0f10', / Octet Key - Master Secret /
8:h'9e7ca92223786340', / Salt - Master Salt /
"sender":{
"ID":h'01', / Recipient ID /
"seq": 0, / Sender Sequence Number /
"sign":{ / Senders Signing Key /
1: 2,
3: -7,
-1: 1,
-2: h'2A6D567BCC61FC04E29230981F04825B4B856C7BFEA77A8FDE380A159EE73926',
-3: h'19CEBDDB6D62A238DB4120EC323E28BF6AC2F039080581E0EFAB3F86052BF621',
-4: h'DEBE946063EE5EA7F66ED7AA3769C1803F039F161D3723F22838E4F7E75FAEA4'
}
},
"recipients":[
{
"ID":h'', / Sender's ID /
"replay-base": 0, / Reply base # /
"sign": {
1: 2,
3: -7,
-1: 1,
-2: h'7067ACDEB2790DA87AC66E5F666DEA75532077789E73279FD9932DFCEEED9A96',
-3: h'8FA6990D0EE67850AFDD974D2A451A811E6B9CA834E895ACC818D27FF31140E4',
-4: h'D4D9AFD692B5F95865390845641CEAAA9E767E2878D208C516FF7717013BB042'
} / Reipient signing key /
},
{
"ID":h'9999', / Recipient ID /
"replay-base": 0, / Reply base # /
"sign": {
1: 2,
3: -7,
-1: 1,
-2: h'D86044496516724C760C030C5506694E554B3F96D8BC283ABC1F467197E0B50F',
-3: h'E1942FBE9C10FEE8ED3DE93BCE05A534E96D0282E81D700AA836C2EB95654C1B',
-4: h'FD74E1FBA317BBE7874A891267C5C2514679563791597FE09EE9264649604215'
} / Reipient signing key /
},
{
"ID":h'3333', / Recipient ID /
"replay-base": 0, / Reply base # /
"sign": {
1: 2,
3: -7,
-1: 1,
-2: h'8C5E2681C5B4A9C9E4FA35ED2A25E285142FF66C07065C5EC3D62F453D493F8C',
-3: h'D1CFECE37613108827BA78665B3C126C47A6B0077FC9EA4AD375A62282761A79',
-4: h'73906751BB39D074E32E92B1F269A99759A2E5752D1B8C81177F96920BAE2EE4'
} / Reipient signing key /
}
]
},
//
/ EDHOC keys /
//
{"usage":"edhoc", 1:4 / kty:symmetric /, 2: h'636c69656e7F', 3:30 /alg:ccm/, "KDF": "dir+kdf", "SenderID": h'636c69656e7F', "RecipID": 'server', -1: h'04080c1014181c2024282c3034383c4044484c5054585c6064686c7074787c8084888c' },
{"usage":"edhoc", 1:4 / kty:symmetric /, 2: h'4b65792330', 3:10 /alg:ccm/, "KDF": "dir+kdf", "SenderID": 'client', "RecipID": 'server', -1: h'0102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f20212223' },
//
/ TLS keys -- symmetric and RPK /
//
{"usage":"dtls", 1:4 / kty:symmetric /, 2:'client', -1:'This_is_the_key_to_use'},
{"usage":"dtls", 1: 2, /3: -7, /-1: 1, -2: h'12D6E8C4D28F83110A57D253373CAD52F01BC447E4093541F643B385E179C110', -3: h'283B3D8D28FFA59FE5CB540412A750FA8DFA34F6DA69BCDA68400D679C1347E8'},
{"usage":"dtls", 1:2, 3:-7, -1:1, -2:h'73B7D755827D5D59D73FD4015D47B445762F7CDB59799CD966714AB2727F1BA5', -3:h'1A84F5C82797643D33F7E6E6AFCF016522238CE430E1BF21A218E6B4DEEAC37A', -4:h'00EA086573C683477D74EB7A0C63A6D031D5DEB10F3CC2876FDA6D3400CAA4E507'},
//
/ TLS keys -- CWT /
//
{"usage":"dtls-cwt", "cwt":{4:1361398824,5:1371398824,8:{1:{1:2,3:-7,-1:1,-2:h'73B7D755827D5D59D73FD4015D47B445762F7CDB59799CD966714AB2727F1BA5',-3:h'1A84F5C82797643D33F7E6E6AFCF016522238CE430E1BF21A218E6B4DEEAC37A'}}}, "key":{1:2, 3:-7, -1:1, -2:h'73B7D755827D5D59D73FD4015D47B445762F7CDB59799CD966714AB2727F1BA5', -3:h'1A84F5C82797643D33F7E6E6AFCF016522238CE430E1BF21A218E6B4DEEAC37A', -4:h'00EA086573C683477D74EB7A0C63A6D031D5DEB10F3CC2876FDA6D3400CAA4E507'}}
]
*** Expected one of [ \t\n\r], "/", ":" at line 102, column 220 (byte 5918) after [
//
/ Set of items that we are using for OSCOAP messages /
//
{ "usage":"oscoap", 1:4 / kty:symmetric /, 2: h'4b65792330', 3:10 /alg:ccm/, "KDF": "dir+kdf", "SenderID": 'client', "RecipID": 'server', -1: h'0102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f20212223'},
{ "usage":"oscoap", 1:4 / kty:symmetric /, 2: h'4b65792331', 3:10 /alg:ccm/, "KDF": "dir+kdf", "SenderID": 'client', "RecipID": 'server', -1: h'020406080a0c0e10121416181a1c1e20222426282a2c2e30323436383a3c3e40424446'},
{ "usage":"oscoap", 1:4 / kty:symmetric /, 2: h'4b65792332', 3:10 /alg:ccm/, "KDF": "dir+kdf", "SenderID": 'client', "RecipID": 'server', -1: h'0306090c0f1215181b1e2124272a2d303336393c3f4245484b4e5154575a5d60636669' },
{ "usage":"oscoap", 1:4 / kty:symmetric /, 2: h'4b65792332', 3:30 /alg:ccm/, "KDF": "dir+kdf", "SenderID": 'client', "RecipID": 'server', -1: h'04080c1014181c2024282c3034383c4044484c5054585c6064686c7074787c8084888c' },
{ "usage":"oscoap", 1:4 / kty:symmetric /, 2: 'client', 3:10 /alg:ccm/, "KDF": "dir+kdf", "SenderID": 'client', "RecipID": 'server', -1: h'0102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f20212223' },
//
/ Key that we are using for Multi-recipient OSCOAP messages /
//
{ "usage":"oscoap-group", 1:4 / kty:symmetric /, 2: 'group01' /group id/, 3:10 /alg:ccm/, -1: h'080c1014181c2024282c3034383c4044484c5054585c6064686c7074787c8084888c8992' /group key/, "sign-alg":-7,
"sender":{ "ID": 'member1', "sign": { -1:1, -2:h'bac5b11cad8f99f9c72b05cf4b9e26d244dc189f745228255a219a86d6a09eff', -3:h'20138bf82dc1b6d562be0fa54ab7804a3a64b6d72ccfed6b6fb6ed28bbfc117e', 1:2, 2:'11', 3:-7 }},
"recipients":[
{"ID": 'member2', "sign": { 1:2, -1:3, -2:h'0072992cb3ac08ecf3e5c63dedec0d51a8c1f79ef2f82f94f3c737bf5de7986671eac625fe8257bbd0394644caaa3aaf8f27a4585fbbcad0f2457620085e5c8f42ad',
-3:h'01dca6947bce88bc5790485ac97427342bc35f887d86d65a089377e247e60baa55e4e8501e2ada5724ac51d6909008033ebc10ac999b9d7f5cc2519f3fe1ea1d9475', 2:'[email protected]', 3:-7 }},
{"ID": 'member3', "sign":{ 1:2, -1:1, -2:h'bac5b11cad8f99f9c72b05cf4b9e26d244dc189f745228255a219a86d6a09eff', -3:h'20138bf82dc1b6d562be0fa54ab7804a3a64b6d72ccfed6b6fb6ed28bbfc117e', 2:'11', 3:-7 } }
]},
{ "usage":"oscoap-group",
"GroupID":h'37cbf3210017a2d3', / Group ID /
2:h'37cbf3210017a2d3', / Group ID /
"sign-alg": -7, / Signature Algorithm for Everybody /
3:10, / AEAD Algorithm : 10 /
1:4, / Key Type Symmetric /
-1:h'0102030405060708090a0b0c0d0e0f10', / Octet Key - Master Secret /
8:h'9e7ca92223786340', / Salt - Master Salt /
"sender":{
"ID":h'01', / Recipient ID /
"seq": 0, / Sender Sequence Number /
"sign":{ / Senders Signing Key /
1: 2,
3: -7,
-1: 1,
-2: h'2A6D567BCC61FC04E29230981F04825B4B856C7BFEA77A8FDE380A159EE73926',
-3: h'19CEBDDB6D62A238DB4120EC323E28BF6AC2F039080581E0EFAB3F86052BF621',
-4: h'DEBE946063EE5EA7F66ED7AA3769C1803F039F161D3723F22838E4F7E75FAEA4'
}
},
"recipients":[
{
"ID":h'', / Sender's ID /
"replay-base": 0, / Reply base # /
"sign": {
1: 2,
3: -7,
-1: 1,
-2: h'7067ACDEB2790DA87AC66E5F666DEA75532077789E73279FD9932DFCEEED9A96',
-3: h'8FA6990D0EE67850AFDD974D2A451A811E6B9CA834E895ACC818D27FF31140E4',
-4: h'D4D9AFD692B5F95865390845641CEAAA9E767E2878D208C516FF7717013BB042'
} / Reipient signing key /
},
{
"ID":h'9999', / Recipient ID /
"replay-base": 0, / Reply base # /
"sign": {
1: 2,
3: -7,
-1: 1,
-2: h'D86044496516724C760C030C5506694E554B3F96D8BC283ABC1F467197E0B50F',
-3: h'E1942FBE9C10FEE8ED3DE93BCE05A534E96D0282E81D700AA836C2EB95654C1B',
-4: h'FD74E1FBA317BBE7874A891267C5C2514679563791597FE09EE9264649604215'
} / Reipient signing key /
},
{
"ID":h'3333', / Recipient ID /
"replay-base": 0, / Reply base # /
"sign": {
1: 2,
3: -7,
-1: 1,
-2: h'8C5E2681C5B4A9C9E4FA35ED2A25E285142FF66C07065C5EC3D62F453D493F8C',
-3: h'D1CFECE37613108827BA78665B3C126C47A6B0077FC9EA4AD375A62282761A79',
-4: h'73906751BB39D074E32E92B1F269A99759A2E5752D1B8C81177F96920BAE2EE4'
} / Reipient signing key /
}
]
},
//
/ EDHOC keys /
//
{"usage":"edhoc", 1:4 / kty:symmetric /, 2: h'636c69656e7F', 3:30 /alg:ccm/, "KDF": "dir+kdf", "SenderID": h'636c69656e7F', "RecipID": 'server', -1: h'04080c1014181c2024282c3034383c4044484c5054585c6064686c7074787c8084888c' },
{"usage":"edhoc", 1:4 / kty:symmetric /, 2: h'4b65792330', 3:10 /alg:ccm/, "KDF": "dir+kdf", "SenderID": 'client', "RecipID": 'server', -1: h'0102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f20212223' },
//
/ TLS keys -- symmetric and RPK /
//
{"usage":"dtls", 1:4 / kty:symmetric /, 2:'client', -1:'This_is_the_key_to_use'},
{"usage":"dtls", 1: 2, /3: -7, /-1: 1, -2: h'12D6E8C4D28F83110A57D253373CAD52F01BC447E4093541F643B385E179C110', -3: h'283B3D8D28FFA59FE5CB540412A750FA8DFA34F6DA69BCDA68400D679C1347E8'},
{"usage":"dtls", 1:2, 3:-7, -1:1, -2:h'73B7D755827D5D59D73FD4015D47B445762F7CDB59799CD966714AB2727F1BA5', -3:h'1A84F5C82797643D33F7E6E6AFCF016522238CE430E1BF21A218E6B4DEEAC37A', -4:h'00EA086573C683477D74EB7A0C63A6D031D5DEB10F3CC2876FDA6D3400CAA4E507'},
//
/ TLS keys -- CWT /
//
{"usage":"dtls-cwt", "cwt":{{4:1361398824,5:1371398824,8:{1:{1:2,3:-7,-1:1,-2:h'73B7D755827D5D59D73FD4015D47B445762F7CDB59799CD966714AB2727F1BA5',-3:h'1A84F5C82797643D33F7E6E6AFCF016522238CE430E1BF21A218E6B4DEEAC37A'}}}