Lines Matching +full:concat +full:- +full:map
7 // http://www.apache.org/licenses/LICENSE-2.0
31 concat!( in test_header_encode()
32 "a3", // 3-map in test_header_encode()
34 "04", "43", "010203", // 4 (kid) => 3-bstr in test_header_encode()
35 "06", "43", "010203", // 6 (partial-iv) => 3-bstr in test_header_encode()
43 concat!( in test_header_encode()
44 "a1", // 1-map in test_header_encode()
46 "3b7fffffffffffffff", // 1 (alg) => -lots in test_header_encode()
62 concat!( in test_header_encode()
63 "a7", // 7-map in test_header_encode()
65 "02", "81", "01", // 2 (crit) => 1-arr [x01] in test_header_encode()
66 "03", "10", // 3 (content-type) => 16 in test_header_encode()
67 "04", "43", "010203", // 4 (kid) => 3-bstr in test_header_encode()
68 "05", "43", "010203", // 5 (iv) => 3-bstr in test_header_encode()
90 concat!( in test_header_encode()
91 "a8", // 8-map in test_header_encode()
93 "02", "81", "6164", // 2 (crit) => 1-arr ["d"] in test_header_encode()
94 "03", "63612f62", // 3 (content-type) => "a/b" in test_header_encode()
95 "04", "43", "010203", // 4 (kid) => 3-bstr in test_header_encode()
96 "05", "43", "010203", // 5 (iv) => 3-bstr in test_header_encode()
97 "07", "83", // 7 (sig) => [3-arr for COSE_Signature in test_header_encode()
126 concat!( in test_header_encode()
127 "a8", // 8-map in test_header_encode()
129 "02", "81", "6164", // 2 (crit) => 1-arr ["d"] in test_header_encode()
130 "03", "63612f62", // 3 (content-type) => "a/b" in test_header_encode()
131 "04", "43", "010203", // 4 (kid) => 3-bstr in test_header_encode()
132 "05", "43", "010203", // 5 (iv) => 3-bstr in test_header_encode()
133 "07", "82", // 7 (sig) => 2-array in test_header_encode()
134 "83", "40", "a0", "43010203", // [3-arr for COSE_Signature] in test_header_encode()
135 "83", "40", "a0", "43030405", // [3-arr for COSE_Signature] in test_header_encode()
145 concat!( in test_header_encode()
146 "a1", // 1-map in test_header_encode()
147 "02", "820101", // crit => 2-arr [1, 1] in test_header_encode()
196 concat!( in test_header_decode_fail()
197 "a1", // 1-map in test_header_decode_fail()
204 concat!( in test_header_decode_fail()
205 "a1", // 1-map in test_header_decode_fail()
211 concat!( in test_header_decode_fail()
212 "a1", // 1-map in test_header_decode_fail()
218 concat!( in test_header_decode_fail()
219 "a1", // 1-map in test_header_decode_fail()
225 concat!( in test_header_decode_fail()
226 "a1", // 1-map in test_header_decode_fail()
232 concat!( in test_header_decode_fail()
233 "a1", // 1-map in test_header_decode_fail()
236 "expected non-empty array", in test_header_decode_fail()
239 concat!( in test_header_decode_fail()
240 "a1", // 1-map in test_header_decode_fail()
241 "03", "81", "4101", // 3 (content-type) => [bstr] (invalid value type) in test_header_decode_fail()
246 concat!( in test_header_decode_fail()
247 "a1", // 1-map in test_header_decode_fail()
248 "03", "19", "0606", // 3 (content-type) => invalid value 1542 in test_header_decode_fail()
253 concat!( in test_header_decode_fail()
254 "a1", // 1-map in test_header_decode_fail()
255 "03", "64", "20612f62" // 3 (content-type) => invalid value " a/b" in test_header_decode_fail()
260 concat!( in test_header_decode_fail()
261 "a1", // 1-map in test_header_decode_fail()
262 "03", "64", "612f6220" // 3 (content-type) => invalid value "a/b " in test_header_decode_fail()
267 concat!( in test_header_decode_fail()
268 "a1", // 1-map in test_header_decode_fail()
269 "03", "62", "6162" // 3 (content-type) => invalid value "ab" in test_header_decode_fail()
274 concat!( in test_header_decode_fail()
275 "a1", // 1-map in test_header_decode_fail()
276 "03", "60", // 3 (content-type) => invalid value "" in test_header_decode_fail()
278 "expected non-empty tstr", in test_header_decode_fail()
281 concat!( in test_header_decode_fail()
282 "a1", // 1-map in test_header_decode_fail()
283 "04", "40", // 4 (key-id) => 0-bstr in test_header_decode_fail()
285 "expected non-empty bstr", in test_header_decode_fail()
288 concat!( in test_header_decode_fail()
289 "a1", // 1-map in test_header_decode_fail()
290 "04", "01", // 4 (key-id) => invalid value type in test_header_decode_fail()
295 concat!( in test_header_decode_fail()
296 "a1", // 1-map in test_header_decode_fail()
297 "05", "40", // 5 (iv) => 0-bstr in test_header_decode_fail()
299 "expected non-empty bstr", in test_header_decode_fail()
302 concat!( in test_header_decode_fail()
303 "a1", // 1-map in test_header_decode_fail()
309 concat!( in test_header_decode_fail()
310 "a1", // 1-map in test_header_decode_fail()
311 "06", "40", // 6 (partial-iv) => 0-bstr in test_header_decode_fail()
313 "expected non-empty bstr", in test_header_decode_fail()
316 concat!( in test_header_decode_fail()
317 "a1", // 1-map in test_header_decode_fail()
318 "06", "01", // 6 (partial-iv) => invalid value type in test_header_decode_fail()
323 concat!( in test_header_decode_fail()
324 "a1", // 1-map in test_header_decode_fail()
325 "07", "01", // 7 (counter-sig) => invalid value type in test_header_decode_fail()
330 concat!( in test_header_decode_fail()
331 "a1", // 1-map in test_header_decode_fail()
332 "07", "80", // 7 (counter-sig) => 0-arr in test_header_decode_fail()
334 "expected non-empty sig array", in test_header_decode_fail()
337 concat!( in test_header_decode_fail()
338 "a2", // 1-map in test_header_decode_fail()
339 "05", "4101", // 5 (iv) => 1-bstr in test_header_decode_fail()
340 "06", "4101", // 6 (partial-iv) => 1-bstr in test_header_decode_fail()
345 concat!( in test_header_decode_fail()
346 "a2", // 2-map in test_header_decode_fail()
348 "07", "82", // 7 (sig) => 2-array in test_header_decode_fail()
350 "83", "40", "a0", "43010203", // [3-arr for COSE_Signature] in test_header_decode_fail()
366 concat!( in test_header_decode_dup_fail()
367 "a3", // 3-map in test_header_decode_dup_fail()
372 "duplicate map key", in test_header_decode_dup_fail()
375 concat!( in test_header_decode_dup_fail()
376 "a3", // 3-map in test_header_decode_dup_fail()
381 "duplicate map key", in test_header_decode_dup_fail()
413 expect_err(result, "duplicate map key"); in test_header_encode_dup_fail()