1 /*
2    Copyright (c) 2021 Fraunhofer AISEC. See the COPYRIGHT
3    file at the top-level directory of this distribution.
4 
5    Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6    http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7    <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8    option. This file may not be copied, modified, or distributed
9    except according to those terms.
10 */
11 #ifndef OSCORE_TEST_VECTORS_H
12 #define OSCORE_TEST_VECTORS_H
13 
14 #include "oscore.h"
15 
16 extern const uint8_t T1__MASTER_SECRET[16];
17 extern uint8_t T1__MASTER_SECRET_LEN;
18 extern const uint8_t *T1__SENDER_ID;
19 extern uint8_t T1__SENDER_ID_LEN;
20 extern const uint8_t T1__RECIPIENT_ID[1];
21 extern uint8_t T1__RECIPIENT_ID_LEN;
22 extern const uint8_t T1__MASTER_SALT[8];
23 extern uint8_t T1__MASTER_SALT_LEN;
24 extern const uint8_t *T1__ID_CONTEXT;
25 extern uint8_t T1__ID_CONTEXT_LEN;
26 extern const uint8_t T1__COAP_REQ[];
27 extern uint16_t T1__COAP_REQ_LEN;
28 extern const uint8_t T1__SENDER_KEY[];
29 extern uint8_t T1__SENDER_KEY_LEN;
30 extern const uint8_t T1__RECIPIENT_KEY[];
31 extern uint8_t T1__RECIPIENT_KEY_LEN;
32 extern const uint8_t T1__COMMON_IV[];
33 extern uint8_t T1__COMMON_IV_LEN;
34 extern const uint8_t T1__OSCORE_REQ[];
35 extern uint8_t T1__OSCORE_REQ_LEN;
36 extern const uint8_t T1__OSCORE_RESP[];
37 extern uint8_t T1__OSCORE_RESP_LEN;
38 extern const uint8_t T1__COAP_RESPONSE[];
39 extern uint8_t T1__COAP_RESPONSE_LEN;
40 extern const uint8_t T2__MASTER_SECRET[16];
41 extern uint8_t T2__MASTER_SECRET_LEN;
42 extern uint8_t T2__SENDER_ID[];
43 extern uint8_t T2__SENDER_ID_LEN;
44 extern uint8_t *T2__RECIPIENT_ID;
45 extern uint8_t T2__RECIPIENT_ID_LEN;
46 extern const uint8_t T2__MASTER_SALT[8];
47 extern uint8_t T2__MASTER_SALT_LEN;
48 extern uint8_t *T2__ID_CONTEXT;
49 extern uint8_t T2__ID_CONTEXT_LEN;
50 extern const uint8_t T2__OSCORE_REQ[];
51 extern uint8_t T2__OSCORE_REQ_LEN;
52 extern const uint8_t T2__COAP_RESPONSE[];
53 extern uint8_t T2__COAP_RESPONSE_LEN;
54 extern const uint8_t T2__COAP_REQ[];
55 extern uint8_t T2__COAP_REQ_LEN;
56 extern const uint8_t T2__OSCORE_RESP[];
57 extern uint8_t T2__OSCORE_RESP_LEN;
58 extern const uint8_t T3__MASTER_SECRET[16];
59 extern uint8_t T3__MASTER_SECRET_LEN;
60 extern const uint8_t T3__SENDER_ID[1];
61 extern uint8_t T3__SENDER_ID_LEN;
62 extern const uint8_t T3__RECIPIENT_ID[1];
63 extern uint8_t T3__RECIPIENT_ID_LEN;
64 extern const uint8_t *T3__MASTER_SALT;
65 extern uint8_t T3__MASTER_SALT_LEN;
66 extern const uint8_t *T3__ID_CONTEXT;
67 extern uint8_t T3__ID_CONTEXT_LEN;
68 extern const uint8_t T3__COAP_REQ[];
69 extern uint16_t T3__COAP_REQ_LEN;
70 extern const uint8_t T3__OSCORE_REQ[];
71 extern uint8_t T3__OSCORE_REQ_LEN;
72 extern const uint8_t T4__MASTER_SECRET[16];
73 extern uint8_t T4__MASTER_SECRET_LEN;
74 extern const uint8_t T4__SENDER_ID[1];
75 extern uint8_t T4__SENDER_ID_LEN;
76 extern const uint8_t T4__RECIPIENT_ID[1];
77 extern uint8_t T4__RECIPIENT_ID_LEN;
78 extern const uint8_t *T4__MASTER_SALT;
79 extern uint8_t T4__MASTER_SALT_LEN;
80 extern const uint8_t *T4__ID_CONTEXT;
81 extern uint8_t T4__ID_CONTEXT_LEN;
82 extern const uint8_t T4__SENDER_KEY[];
83 extern const uint8_t T4__RECIPIENT_KEY[];
84 extern uint8_t T4__RECIPIENT_KEY_LEN;
85 extern const uint8_t T4__COMMON_IV[];
86 extern uint8_t T4__COMMON_IV_LEN;
87 extern const uint8_t T5__MASTER_SECRET[16];
88 extern uint8_t T5__MASTER_SECRET_LEN;
89 extern const uint8_t *T5__SENDER_ID;
90 extern uint8_t T5__SENDER_ID_LEN;
91 extern const uint8_t T5__RECIPIENT_ID[1];
92 extern uint8_t T5__RECIPIENT_ID_LEN;
93 extern const uint8_t T5__MASTER_SALT[8];
94 extern uint8_t T5__MASTER_SALT_LEN;
95 extern const uint8_t T5__ID_CONTEXT[8];
96 extern uint8_t T5__ID_CONTEXT_LEN;
97 extern const uint8_t T5__COAP_REQ[];
98 extern uint16_t T5__COAP_REQ_LEN;
99 extern const uint8_t T5__OSCORE_REQ[];
100 extern uint8_t T5__OSCORE_REQ_LEN;
101 extern const uint8_t T6__MASTER_SECRET[16];
102 extern uint8_t T6__MASTER_SECRET_LEN;
103 extern const uint8_t T6__SENDER_ID[1];
104 extern uint8_t T6__SENDER_ID_LEN;
105 extern const uint8_t *T6__RECIPIENT_ID;
106 extern uint8_t T6__RECIPIENT_ID_LEN;
107 extern const uint8_t T6__MASTER_SALT[8];
108 extern uint8_t T6__MASTER_SALT_LEN;
109 extern const uint8_t T6__ID_CONTEXT[8];
110 extern uint8_t T6__ID_CONTEXT_LEN;
111 extern const uint8_t T6__SENDER_KEY[];
112 extern uint8_t T6__SENDER_KEY_LEN;
113 extern const uint8_t T6__RECIPIENT_KEY[];
114 extern uint8_t T6__RECIPIENT_KEY_LEN;
115 extern const uint8_t T6__COMMON_IV[];
116 extern uint8_t T6__COMMON_IV_LEN;
117 extern const uint8_t T7__MASTER_SECRET[16];
118 extern uint8_t T7__MASTER_SECRET_LEN;
119 extern const uint8_t T7__SENDER_ID[];
120 extern uint8_t T7__SENDER_ID_LEN;
121 extern const uint8_t *T7__RECIPIENT_ID;
122 extern uint8_t T7__RECIPIENT_ID_LEN;
123 extern const uint8_t T7__MASTER_SALT[8];
124 extern uint8_t T7__MASTER_SALT_LEN;
125 extern const uint8_t *T7__ID_CONTEXT;
126 extern uint8_t T7__ID_CONTEXT_LEN;
127 extern const uint8_t T7__OSCORE_REQ[];
128 extern uint8_t T7__OSCORE_REQ_LEN;
129 extern const uint8_t T7__COAP_RESPONSE[];
130 extern uint8_t T7__COAP_RESPONSE_LEN;
131 extern const uint8_t T7__OSCORE_RES[];
132 extern uint8_t T7__OSCORE_RES_LEN;
133 extern const uint8_t T8__MASTER_SECRET[16];
134 extern uint8_t T8__MASTER_SECRET_LEN;
135 extern const uint8_t T8__SENDER_ID[];
136 extern uint8_t T8__SENDER_ID_LEN;
137 extern const uint8_t T8__MASTER_SALT[8];
138 extern uint8_t T8__MASTER_SALT_LEN;
139 extern const uint8_t T8__COAP_ACK[];
140 extern uint8_t T8__COAP_ACK_LEN;
141 
142 #endif