Lines Matching +full:concat +full:- +full:map
7 // http://www.apache.org/licenses/LICENSE-2.0
33 concat!( in test_cose_recipient_decode()
34 "83", // 3-tuple in test_cose_recipient_decode()
35 "40", // 0-bstr (special case for empty protected headers, rather than 41a0) in test_cose_recipient_decode()
36 "a0", // 0-map in test_cose_recipient_decode()
42 concat!( in test_cose_recipient_decode()
43 "83", // 3-tuple in test_cose_recipient_decode()
44 "40", // 0-bstr (special case for empty protected headers, rather than 41a0) in test_cose_recipient_decode()
45 "a0", // 0-map in test_cose_recipient_decode()
46 "40", // 0-bstr in test_cose_recipient_decode()
54 concat!( in test_cose_recipient_decode()
55 "84", // 4-tuple in test_cose_recipient_decode()
56 "40", // 0-bstr (special case for empty protected headers, rather than 41a0) in test_cose_recipient_decode()
57 "a0", // 0-map in test_cose_recipient_decode()
58 "40", // 0-bstr in test_cose_recipient_decode()
59 "81", // 1-tuple in test_cose_recipient_decode()
60 "83", // 3-tuple in test_cose_recipient_decode()
61 "40", // 0-bstr (special case for empty protected headers, rather than 41a0) in test_cose_recipient_decode()
62 "a0", // 0-map in test_cose_recipient_decode()
85 concat!( in test_cose_recipient_decode_fail()
86 "a2", // 2-map (should be tuple) in test_cose_recipient_decode_fail()
87 "40", // 0-bstr (special case for empty protected headers, rather than 41a0) in test_cose_recipient_decode_fail()
88 "a0", // 0-map in test_cose_recipient_decode_fail()
89 "4161", // 1-bstr in test_cose_recipient_decode_fail()
90 "40", // 0-bstr in test_cose_recipient_decode_fail()
95 concat!( in test_cose_recipient_decode_fail()
96 "82", // 2-tuple (should be 4-tuple) in test_cose_recipient_decode_fail()
97 "40", // 0-bstr (special case for empty protected headers, rather than 41a0) in test_cose_recipient_decode_fail()
98 "a0", // 0-map in test_cose_recipient_decode_fail()
103 concat!( in test_cose_recipient_decode_fail()
104 "84", // 4-tuple in test_cose_recipient_decode_fail()
105 "80", // 0-tuple (should be bstr) in test_cose_recipient_decode_fail()
106 "a0", // 0-map in test_cose_recipient_decode_fail()
107 "40", // 0-bstr in test_cose_recipient_decode_fail()
108 "80", // 0-arr in test_cose_recipient_decode_fail()
113 concat!( in test_cose_recipient_decode_fail()
114 "84", // 4-tuple in test_cose_recipient_decode_fail()
115 "40", // 0-bstr (special case for empty protected headers, rather than 41a0) in test_cose_recipient_decode_fail()
116 "40", // 0-bstr (should be map) in test_cose_recipient_decode_fail()
117 "40", // 0-bstr in test_cose_recipient_decode_fail()
118 "80", // 0-arr in test_cose_recipient_decode_fail()
120 "expected map", in test_cose_recipient_decode_fail()
123 concat!( in test_cose_recipient_decode_fail()
124 "84", // 4-tuple in test_cose_recipient_decode_fail()
125 "40", // 0-bstr (special case for empty protected headers, rather than 41a0) in test_cose_recipient_decode_fail()
126 "a0", // 0-map in test_cose_recipient_decode_fail()
127 "60", // 0-tstr (should be bstr) in test_cose_recipient_decode_fail()
128 "80", // 0-arr in test_cose_recipient_decode_fail()
133 concat!( in test_cose_recipient_decode_fail()
134 "84", // 4-tuple in test_cose_recipient_decode_fail()
135 "40", // 0-bstr (special case for empty protected headers, rather than 41a0) in test_cose_recipient_decode_fail()
136 "a0", // 0-map in test_cose_recipient_decode_fail()
137 "40", // 0-bstr in test_cose_recipient_decode_fail()
138 "40", // 0-bstr in test_cose_recipient_decode_fail()
155 concat!( in test_cose_encrypt_decode()
156 "84", // 4-tuple in test_cose_encrypt_decode()
157 "40", // 0-bstr (special case for empty protected headers, rather than 41a0) in test_cose_encrypt_decode()
158 "a0", // 0-map in test_cose_encrypt_decode()
160 "80", // 0-tuple in test_cose_encrypt_decode()
165 concat!( in test_cose_encrypt_decode()
166 "84", // 4-tuple in test_cose_encrypt_decode()
167 "40", // 0-bstr (special case for empty protected headers, rather than 41a0) in test_cose_encrypt_decode()
168 "a0", // 0-map in test_cose_encrypt_decode()
169 "40", // 0-bstr in test_cose_encrypt_decode()
170 "80", // 0-tuple in test_cose_encrypt_decode()
189 concat!( in test_cose_encrypt_decode_fail()
190 "a2", // 2-map (should be tuple) in test_cose_encrypt_decode_fail()
191 "40", // 0-bstr (special case for empty protected headers, rather than 41a0) in test_cose_encrypt_decode_fail()
192 "a0", // 0-map in test_cose_encrypt_decode_fail()
193 "4161", // 1-bstr in test_cose_encrypt_decode_fail()
194 "40", // 0-bstr in test_cose_encrypt_decode_fail()
199 concat!( in test_cose_encrypt_decode_fail()
200 "83", // 3-tuple (should be 4-tuple) in test_cose_encrypt_decode_fail()
201 "40", // 0-bstr (special case for empty protected headers, rather than 41a0) in test_cose_encrypt_decode_fail()
202 "a0", // 0-map in test_cose_encrypt_decode_fail()
203 "40", // 0-bstr in test_cose_encrypt_decode_fail()
208 concat!( in test_cose_encrypt_decode_fail()
209 "84", // 4-tuple in test_cose_encrypt_decode_fail()
210 "80", // 0-tuple (should be bstr) in test_cose_encrypt_decode_fail()
211 "a0", // 0-map in test_cose_encrypt_decode_fail()
212 "40", // 0-bstr in test_cose_encrypt_decode_fail()
213 "80", // 0-arr in test_cose_encrypt_decode_fail()
218 concat!( in test_cose_encrypt_decode_fail()
219 "84", // 4-tuple in test_cose_encrypt_decode_fail()
220 "40", // 0-bstr (special case for empty protected headers, rather than 41a0) in test_cose_encrypt_decode_fail()
221 "40", // 0-bstr (should be map) in test_cose_encrypt_decode_fail()
222 "40", // 0-bstr in test_cose_encrypt_decode_fail()
223 "80", // 0-arr in test_cose_encrypt_decode_fail()
225 "expected map", in test_cose_encrypt_decode_fail()
228 concat!( in test_cose_encrypt_decode_fail()
229 "84", // 4-tuple in test_cose_encrypt_decode_fail()
230 "40", // 0-bstr (special case for empty protected headers, rather than 41a0) in test_cose_encrypt_decode_fail()
231 "a0", // 0-map in test_cose_encrypt_decode_fail()
232 "60", // 0-tstr (should be bstr) in test_cose_encrypt_decode_fail()
233 "80", // 0-arr in test_cose_encrypt_decode_fail()
238 concat!( in test_cose_encrypt_decode_fail()
239 "84", // 4-tuple in test_cose_encrypt_decode_fail()
240 "40", // 0-bstr (special case for empty protected headers, rather than 41a0) in test_cose_encrypt_decode_fail()
241 "a0", // 0-map in test_cose_encrypt_decode_fail()
242 "40", // 0-bstr in test_cose_encrypt_decode_fail()
243 "40", // 0-bstr in test_cose_encrypt_decode_fail()
297 // Note: contents of maps have been re-ordered from the RFC to canonical ordering. in test_rfc8152_cose_encrypt_decode()
298 concat!( in test_rfc8152_cose_encrypt_decode()
327 .key_id(b"our-secret".to_vec()) in test_rfc8152_cose_encrypt_decode()
334 // Note: contents of maps have been re-ordered from the RFC to canonical ordering. in test_rfc8152_cose_encrypt_decode()
335 concat!( in test_rfc8152_cose_encrypt_decode()
384 // Note: contents of maps have been re-ordered from the RFC to canonical ordering. in test_rfc8152_cose_encrypt_decode()
385 concat!( in test_rfc8152_cose_encrypt_decode()
444 // Note: contents of maps have been re-ordered from the RFC to canonical ordering. in test_rfc8152_cose_encrypt_decode()
445 concat!( in test_rfc8152_cose_encrypt_decode()
491 concat!( in test_cose_encrypt0_decode()
492 "83", // 3-tuple in test_cose_encrypt0_decode()
493 "40", // 0-bstr (special case for empty protected headers, rather than 41a0) in test_cose_encrypt0_decode()
494 "a0", // 0-map in test_cose_encrypt0_decode()
500 concat!( in test_cose_encrypt0_decode()
501 "83", // 3-tuple in test_cose_encrypt0_decode()
502 "40", // 0-bstr (special case for empty protected headers, rather than 41a0) in test_cose_encrypt0_decode()
503 "a0", // 0-map in test_cose_encrypt0_decode()
504 "40", // 0-bstr in test_cose_encrypt0_decode()
523 concat!( in test_cose_encrypt0_decode_fail()
524 "a2", // 2-map (should be tuple) in test_cose_encrypt0_decode_fail()
525 "40", // 0-bstr (special case for empty protected headers, rather than 41a0) in test_cose_encrypt0_decode_fail()
526 "a0", // 0-map in test_cose_encrypt0_decode_fail()
527 "4100", // 1-bstr in test_cose_encrypt0_decode_fail()
528 "40", // 0-bstr in test_cose_encrypt0_decode_fail()
533 concat!( in test_cose_encrypt0_decode_fail()
534 "82", // 2-tuple (should be 3-tuple) in test_cose_encrypt0_decode_fail()
535 "40", // 0-bstr (special case for empty protected headers, rather than 41a0) in test_cose_encrypt0_decode_fail()
536 "a0", // 0-map in test_cose_encrypt0_decode_fail()
541 concat!( in test_cose_encrypt0_decode_fail()
542 "83", // 3-tuple in test_cose_encrypt0_decode_fail()
543 "80", // 0-tuple (should be bstr) in test_cose_encrypt0_decode_fail()
544 "a0", // 0-map in test_cose_encrypt0_decode_fail()
545 "40", // 0-bstr in test_cose_encrypt0_decode_fail()
550 concat!( in test_cose_encrypt0_decode_fail()
551 "83", // 3-tuple in test_cose_encrypt0_decode_fail()
552 "40", // 0-bstr (special case for empty protected headers, rather than 41a0) in test_cose_encrypt0_decode_fail()
553 "40", // 0-bstr (should be map) in test_cose_encrypt0_decode_fail()
554 "40", // 0-bstr in test_cose_encrypt0_decode_fail()
556 "expected map", in test_cose_encrypt0_decode_fail()
559 concat!( in test_cose_encrypt0_decode_fail()
560 "83", // 3-tuple in test_cose_encrypt0_decode_fail()
561 "40", // 0-bstr (special case for empty protected headers, rather than 41a0) in test_cose_encrypt0_decode_fail()
562 "a0", // 0-map in test_cose_encrypt0_decode_fail()
563 "60", // 0-tstr (should be bstr) in test_cose_encrypt0_decode_fail()
596 concat!( in test_rfc8152_cose_encrypt0_decode()
626 concat!( in test_rfc8152_cose_encrypt0_decode()
654 fn encrypt(&self, plaintext: &[u8], additional_data: &[u8]) -> Result<Vec<u8>, String> { in encrypt()
662 fn decrypt(&self, ciphertext: &[u8], additional_data: &[u8]) -> Result<Vec<u8>, String> { in decrypt()
676 fn fail_encrypt(&self, _plaintext: &[u8], _additional_data: &[u8]) -> Result<Vec<u8>, String> { in fail_encrypt()
739 // Build an empty protected header from a non-canonical input of 41a0 rather than 40. in test_cose_recipient_noncanonical()
759 // non-canonical wire data)... in test_cose_recipient_noncanonical()
764 // ...then the transplanted cipher text will not decipher, because the re-building of the in test_cose_recipient_noncanonical()
824 // Can't use a non-recipient context. in test_cose_recipient_builder_invalid_context()
851 // Can't use a non-recipient context. in test_cose_recipient_decrypt_invalid_context()
901 // Build an empty protected header from a non-canonical input of 41a0 rather than 40. in test_cose_encrypt_noncanonical()
925 // non-canonical wire data)... in test_cose_encrypt_noncanonical()
931 // ...then the transplanted cipher text will not decipher, because the re-building of the in test_cose_encrypt_noncanonical()
1016 // Build an empty protected header from a non-canonical input of 41a0 rather than 40. in test_cose_encrypt0_noncanonical()
1040 // non-canonical wire data)... in test_cose_encrypt0_noncanonical()
1046 // ...then the transplanted cipher text will not decipher, because the re-building of the in test_cose_encrypt0_noncanonical()