Lines Matching +full:concat +full:- +full:map
7 // http://www.apache.org/licenses/LICENSE-2.0
33 concat!( in test_cose_mac_decode()
34 "85", // 5-tuple in test_cose_mac_decode()
35 "40", // 0-bstr (special case for empty protected headers, rather than 41a0) in test_cose_mac_decode()
36 "a0", // 0-map in test_cose_mac_decode()
38 "40", // 0-bstr in test_cose_mac_decode()
39 "80", // 0-arr in test_cose_mac_decode()
44 concat!( in test_cose_mac_decode()
45 "85", // 5-tuple in test_cose_mac_decode()
46 "40", // 0-bstr (special case for empty protected headers, rather than 41a0) in test_cose_mac_decode()
47 "a0", // 0-map in test_cose_mac_decode()
48 "40", // 0-bstr in test_cose_mac_decode()
49 "40", // 0-bstr in test_cose_mac_decode()
50 "80", // 0-arr in test_cose_mac_decode()
68 concat!( in test_cose_mac_decode_fail()
69 "a2", // 2-map (should be tuple) in test_cose_mac_decode_fail()
70 "40", // 0-bstr (special case for empty protected headers, rather than 41a0) in test_cose_mac_decode_fail()
71 "a0", // 0-map in test_cose_mac_decode_fail()
72 "4100", // 1-bstr in test_cose_mac_decode_fail()
73 "40", // 0-bstr in test_cose_mac_decode_fail()
78 concat!( in test_cose_mac_decode_fail()
79 "84", // 4-tuple (should be 5-tuple) in test_cose_mac_decode_fail()
80 "40", // 0-bstr (special case for empty protected headers, rather than 41a0) in test_cose_mac_decode_fail()
81 "a0", // 0-map in test_cose_mac_decode_fail()
82 "40", // 0-bstr in test_cose_mac_decode_fail()
83 "40", // 0-bstr in test_cose_mac_decode_fail()
88 concat!( in test_cose_mac_decode_fail()
89 "85", // 5-tuple in test_cose_mac_decode_fail()
90 "80", // 0-tuple (should be bstr) in test_cose_mac_decode_fail()
91 "a0", // 0-map in test_cose_mac_decode_fail()
92 "40", // 0-bstr in test_cose_mac_decode_fail()
93 "40", // 0-bstr in test_cose_mac_decode_fail()
94 "80", // 0-arr in test_cose_mac_decode_fail()
99 concat!( in test_cose_mac_decode_fail()
100 "85", // 5-tuple in test_cose_mac_decode_fail()
101 "40", // 0-bstr (special case for empty protected headers, rather than 41a0) in test_cose_mac_decode_fail()
102 "40", // 0-bstr (should be map) in test_cose_mac_decode_fail()
103 "40", // 0-bstr in test_cose_mac_decode_fail()
104 "40", // 0-bstr in test_cose_mac_decode_fail()
105 "80", // 0-arr in test_cose_mac_decode_fail()
107 "expected map", in test_cose_mac_decode_fail()
110 concat!( in test_cose_mac_decode_fail()
111 "85", // 5-tuple in test_cose_mac_decode_fail()
112 "40", // 0-bstr (special case for empty protected headers, rather than 41a0) in test_cose_mac_decode_fail()
113 "a0", // 0-map in test_cose_mac_decode_fail()
114 "60", // 0-tstr (should be bstr) in test_cose_mac_decode_fail()
115 "40", // 0-bstr in test_cose_mac_decode_fail()
116 "80", // 0-arr in test_cose_mac_decode_fail()
121 concat!( in test_cose_mac_decode_fail()
122 "85", // 5-tuple in test_cose_mac_decode_fail()
123 "40", // 0-bstr (special case for empty protected headers, rather than 41a0) in test_cose_mac_decode_fail()
124 "a0", // 0-map in test_cose_mac_decode_fail()
125 "40", // 0-bstr in test_cose_mac_decode_fail()
126 "60", // 0-tstr in test_cose_mac_decode_fail()
127 "80", // 0-arr in test_cose_mac_decode_fail()
132 concat!( in test_cose_mac_decode_fail()
133 "85", // 5-tuple in test_cose_mac_decode_fail()
134 "40", // 0-bstr (special case for empty protected headers, rather than 41a0) in test_cose_mac_decode_fail()
135 "a0", // 0-map in test_cose_mac_decode_fail()
136 "40", // 0-bstr in test_cose_mac_decode_fail()
137 "40", // 0-bstr in test_cose_mac_decode_fail()
138 "40", // 0-bstr in test_cose_mac_decode_fail()
168 .key_id(b"our-secret".to_vec()) in test_rfc8152_cose_mac_decode()
175 concat!( in test_rfc8152_cose_mac_decode()
222 // Note: contents of maps have been re-ordered from the RFC to canonical ordering. in test_rfc8152_cose_mac_decode()
223 concat!( in test_rfc8152_cose_mac_decode()
253 .key_id(b"018c0ae5-4d9b-471b-bfd6-eef314bc7037".to_vec()) in test_rfc8152_cose_mac_decode()
260 concat!( in test_rfc8152_cose_mac_decode()
304 .key_id(b"018c0ae5-4d9b-471b-bfd6-eef314bc7037".to_vec()) in test_rfc8152_cose_mac_decode()
311 // Note: contents of maps have been re-ordered from the RFC to canonical ordering. in test_rfc8152_cose_mac_decode()
312 concat!( in test_rfc8152_cose_mac_decode()
369 concat!( in test_cose_mac0_decode()
370 "84", // 4-tuple in test_cose_mac0_decode()
371 "40", // 0-bstr (special case for empty protected headers, rather than 41a0) in test_cose_mac0_decode()
372 "a0", // 0-map in test_cose_mac0_decode()
374 "40", // 0-bstr in test_cose_mac0_decode()
379 concat!( in test_cose_mac0_decode()
380 "84", // 4-tuple in test_cose_mac0_decode()
381 "40", // 0-bstr (special case for empty protected headers, rather than 41a0) in test_cose_mac0_decode()
382 "a0", // 0-map in test_cose_mac0_decode()
383 "40", // 0-bstr in test_cose_mac0_decode()
384 "40", // 0-bstr in test_cose_mac0_decode()
401 concat!( in test_cose_mac0_decode_fail()
402 "a2", // 2-map (should be tuple) in test_cose_mac0_decode_fail()
403 "40", // 0-bstr (special case for empty protected headers, rather than 41a0) in test_cose_mac0_decode_fail()
404 "a0", // 0-map in test_cose_mac0_decode_fail()
405 "4100", // 0-bstr in test_cose_mac0_decode_fail()
406 "40", // 0-bstr in test_cose_mac0_decode_fail()
411 concat!( in test_cose_mac0_decode_fail()
412 "83", // 3-tuple (should be 4-tuple) in test_cose_mac0_decode_fail()
413 "40", // 0-bstr (special case for empty protected headers, rather than 41a0) in test_cose_mac0_decode_fail()
414 "a0", // 0-map in test_cose_mac0_decode_fail()
415 "40", // 0-bstr in test_cose_mac0_decode_fail()
420 concat!( in test_cose_mac0_decode_fail()
421 "84", // 4-tuple in test_cose_mac0_decode_fail()
422 "80", // 0-tuple (should be bstr) in test_cose_mac0_decode_fail()
423 "a0", // 0-map in test_cose_mac0_decode_fail()
424 "40", // 0-bstr in test_cose_mac0_decode_fail()
425 "40", // 0-bstr in test_cose_mac0_decode_fail()
430 concat!( in test_cose_mac0_decode_fail()
431 "84", // 4-tuple in test_cose_mac0_decode_fail()
432 "40", // 0-bstr (special case for empty protected headers, rather than 41a0) in test_cose_mac0_decode_fail()
433 "40", // 0-bstr (should be map) in test_cose_mac0_decode_fail()
434 "40", // 0-bstr in test_cose_mac0_decode_fail()
435 "40", // 0-bstr in test_cose_mac0_decode_fail()
437 "expected map", in test_cose_mac0_decode_fail()
440 concat!( in test_cose_mac0_decode_fail()
441 "84", // 4-tuple in test_cose_mac0_decode_fail()
442 "40", // 0-bstr (special case for empty protected headers, rather than 41a0) in test_cose_mac0_decode_fail()
443 "a0", // 0-map in test_cose_mac0_decode_fail()
444 "60", // 0-tstr (should be bstr) in test_cose_mac0_decode_fail()
445 "40", // 0-bstr in test_cose_mac0_decode_fail()
450 concat!( in test_cose_mac0_decode_fail()
451 "84", // 4-tuple in test_cose_mac0_decode_fail()
452 "40", // 0-bstr (special case for empty protected headers, rather than 41a0) in test_cose_mac0_decode_fail()
453 "a0", // 0-map in test_cose_mac0_decode_fail()
454 "40", // 0-bstr in test_cose_mac0_decode_fail()
455 "60", // 0-tstr in test_cose_mac0_decode_fail()
480 concat!( in test_rfc8152_cose_mac0_decode()
505 fn compute(&self, data: &[u8]) -> Vec<u8> { in compute()
512 fn verify(&self, tag: &[u8], data: &[u8]) -> Result<(), String> { in verify()
519 fn try_compute(&self, data: &[u8]) -> Result<Vec<u8>, String> { in try_compute()
522 fn fail_compute(&self, _data: &[u8]) -> Result<Vec<u8>, String> { in fail_compute()
564 // Build an empty protected header from a non-canonical input of 41a0 rather than 40. in test_cose_mac_noncanonical()
584 // non-canonical wire data)... in test_cose_mac_noncanonical()
591 // ...then the transplanted tag will not verify, because the re-building of the in test_cose_mac_noncanonical()
683 // Build an empty protected header from a non-canonical input of 41a0 rather than 40. in test_cose_mac0_noncanonical()
703 // non-canonical wire data)... in test_cose_mac0_noncanonical()
710 // ...then the transplanted tag will not verify, because the re-building of the in test_cose_mac0_noncanonical()