• Home
  • Raw
  • Download

Lines Matching +full:concat +full:- +full:map

7 //      http://www.apache.org/licenses/LICENSE-2.0
33 concat!( in test_cose_signature_encode()
34 "83", // 3-tuple in test_cose_signature_encode()
35 "40", // 0-bstr (special case for empty protected headers, rather than 41a0) in test_cose_signature_encode()
36 "a0", // 0-map in test_cose_signature_encode()
37 "40", // 0-bstr in test_cose_signature_encode()
45 concat!( in test_cose_signature_encode()
46 "83", // 3-tuple in test_cose_signature_encode()
47 "40", // 0-bstr (special case for empty protected headers, rather than 41a0) in test_cose_signature_encode()
48 "a0", // 0-map in test_cose_signature_encode()
49 "43010203", // 3-bstr in test_cose_signature_encode()
66 concat!( in test_cose_signature_encode()
67 "83", // 3-tuple in test_cose_signature_encode()
68 "4d", // 13-bstr in test_cose_signature_encode()
69 "a3", // 3-map in test_cose_signature_encode()
71 "04", "43", "010203", // 4 (kid) => 3-bstr in test_cose_signature_encode()
72 "06", "43", "010203", // 6 (partial-iv) => 3-bstr in test_cose_signature_encode()
73 "a0", // 0-map in test_cose_signature_encode()
74 "43010203", // 3-bstr in test_cose_signature_encode()
88 concat!( in test_cose_signature_encode()
89 "83", // 3-tuple in test_cose_signature_encode()
90 "40", // 0-bstr (special case for empty protected headers, rather than 41a0) in test_cose_signature_encode()
91 "a3", // 3-map in test_cose_signature_encode()
93 "04", "43", "010203", // 4 (kid) => 3-bstr in test_cose_signature_encode()
94 "06", "43", "010203", // 6 (partial-iv) => 3-bstr in test_cose_signature_encode()
95 "43010203", // 3-bstr in test_cose_signature_encode()
111 // RFC8152 section 3: "Recipients MUST accept both a zero-length binary value and a zero-length in test_cose_signature_decode_noncanonical()
112 // map encoded in the binary value." in test_cose_signature_decode_noncanonical()
113 let sig_data = hex::decode(concat!( in test_cose_signature_decode_noncanonical()
114 "83", // 3-tuple in test_cose_signature_decode_noncanonical()
115 "41a0", // 1-bstr holding 0-map (not a 0-bstr) in test_cose_signature_decode_noncanonical()
116 "a0", // 0-map in test_cose_signature_decode_noncanonical()
117 "40", // 0-bstr in test_cose_signature_decode_noncanonical()
130 concat!( in test_cose_signature_decode_fail()
131 "a2", // 2-map in test_cose_signature_decode_fail()
132 "40", // 0-bstr (special case for empty protected headers, rather than 41a0) in test_cose_signature_decode_fail()
133 "a0", // 0-map in test_cose_signature_decode_fail()
134 "43010203", // 3-bstr in test_cose_signature_decode_fail()
135 "40", // 0-bstr in test_cose_signature_decode_fail()
140 concat!( in test_cose_signature_decode_fail()
141 "83", // 3-tuple in test_cose_signature_decode_fail()
142 "40", // 0-bstr (special case for empty protected headers, rather than 41a0) in test_cose_signature_decode_fail()
143 "40", // 0-bstr (invalid: should be map) in test_cose_signature_decode_fail()
144 "43010203", // 3-bstr in test_cose_signature_decode_fail()
146 "expected map", in test_cose_signature_decode_fail()
149 concat!( in test_cose_signature_decode_fail()
150 "83", // 3-tuple in test_cose_signature_decode_fail()
151 "a0", // 0-map (invalid: should be bstr) in test_cose_signature_decode_fail()
152 "a0", // 0-map in test_cose_signature_decode_fail()
153 "43010203", // 3-bstr in test_cose_signature_decode_fail()
158 concat!( in test_cose_signature_decode_fail()
159 "84", // 4-tuple in test_cose_signature_decode_fail()
160 "40", // 0-bstr in test_cose_signature_decode_fail()
161 "a0", // 0-map in test_cose_signature_decode_fail()
162 "43010203", // 3-bstr in test_cose_signature_decode_fail()
163 "43010203", // 3-bstr in test_cose_signature_decode_fail()
168 concat!( in test_cose_signature_decode_fail()
169 "82", // 4-tuple in test_cose_signature_decode_fail()
170 "40", // 0-bstr in test_cose_signature_decode_fail()
171 "a0", // 0-map in test_cose_signature_decode_fail()
176 concat!( in test_cose_signature_decode_fail()
177 "83", // 3-tuple in test_cose_signature_decode_fail()
178 "40", // 0-bstr (special case for empty protected headers, rather than 41a0) in test_cose_signature_decode_fail()
179 "40", // 0-bstr (invalid: should be map) in test_cose_signature_decode_fail()
180 "63616263", // 3-tstr in test_cose_signature_decode_fail()
185 concat!( in test_cose_signature_decode_fail()
186 "83", // 3-tuple in test_cose_signature_decode_fail()
187 "45", // 0-bstr (special case for empty protected headers, rather than 41a0) in test_cose_signature_decode_fail()
188 "a1", // 1-map in test_cose_signature_decode_fail()
189 "03", "81", "4101", // 3 (content-type) => [bstr] (invalid value type) in test_cose_signature_decode_fail()
190 "a0", // 0-map in test_cose_signature_decode_fail()
191 "43616263", // 0-bstr in test_cose_signature_decode_fail()
275 concat!( in test_cose_sign_encode()
276 "84", // 4-tuple in test_cose_sign_encode()
277 "40", // 0-bstr (special case for empty protected headers, rather than 41a0) in test_cose_sign_encode()
278 "a0", // 0-map in test_cose_sign_encode()
280 "80", // 0-tuple in test_cose_sign_encode()
287 concat!( in test_cose_sign_encode()
288 "84", // 4-tuple in test_cose_sign_encode()
289 "40", // 0-bstr (special case for empty protected headers, rather than 41a0) in test_cose_sign_encode()
290 "a0", // 0-map in test_cose_sign_encode()
292 "81", // 1-tuple in test_cose_sign_encode()
293 "83", "40a040", // 3-tuple in test_cose_sign_encode()
318 concat!( in test_cose_sign_encode()
319 "84", // 4-tuple in test_cose_sign_encode()
320 "48", // 8-bstr (protected) in test_cose_sign_encode()
321 "a2", // 2-map in test_cose_sign_encode()
323 "04", "43", "010203", // 4 (kid) => 3-bstr in test_cose_sign_encode()
324 "a0", // 0-map (unprotected) in test_cose_sign_encode()
325 "43", "040506", // 3-bstr (payload) in test_cose_sign_encode()
326 "81", // 1-tuple (signatures) in test_cose_sign_encode()
327 "83", // 3-tuple (COSE_Signature) in test_cose_sign_encode()
328 "4d", // 14-bstr (protected) in test_cose_sign_encode()
329 "a3", // 3-map in test_cose_sign_encode()
331 "04", "43", "010203", // 4 (kid) => 3-bstr in test_cose_sign_encode()
332 "05", "43", "010203", // 5 (iv) => 3-bstr in test_cose_sign_encode()
333 "a0", // 0-map (unprotected) in test_cose_sign_encode()
334 "43", "010203", // 0-bstr (signature) in test_cose_sign_encode()
359 concat!( in test_cose_sign_encode()
360 "84", // 4-tuple in test_cose_sign_encode()
361 "40", // 0-bstr (protected) in test_cose_sign_encode()
362 "a2", // 2-map (unprotected) in test_cose_sign_encode()
364 "04", "43", "010203", // 4 (kid) => 3-bstr in test_cose_sign_encode()
365 "43", "040506", // 3-bstr (payload) in test_cose_sign_encode()
366 "81", // 1-tuple (signatures) in test_cose_sign_encode()
367 "83", // 3-tuple (COSE_Signature) in test_cose_sign_encode()
368 "4d", // 14-bstr (protected) in test_cose_sign_encode()
369 "a3", // 3-map in test_cose_sign_encode()
371 "04", "43", "010203", // 4 (kid) => 3-bstr in test_cose_sign_encode()
372 "05", "43", "010203", // 5 (iv) => 3-bstr in test_cose_sign_encode()
373 "a0", // 0-map (unprotected) in test_cose_sign_encode()
374 "43", "010203", // 0-bstr (signature) in test_cose_sign_encode()
407 concat!( in test_cose_sign_decode_fail()
408 "a2", // 2-map in test_cose_sign_decode_fail()
409 "40", // 0-bstr (special case for empty protected headers, rather than 41a0) in test_cose_sign_decode_fail()
410 "40", // 0-bstr (invalid: should be map) in test_cose_sign_decode_fail()
411 "43010203", // 3-bstr in test_cose_sign_decode_fail()
412 "80", // 0-tuple in test_cose_sign_decode_fail()
417 concat!( in test_cose_sign_decode_fail()
418 "84", // 4-tuple in test_cose_sign_decode_fail()
419 "40", // 0-bstr (special case for empty protected headers, rather than 41a0) in test_cose_sign_decode_fail()
420 "40", // 0-bstr (invalid: should be map) in test_cose_sign_decode_fail()
421 "43010203", // 3-bstr in test_cose_sign_decode_fail()
422 "80", // 0-tuple in test_cose_sign_decode_fail()
424 "expected map", in test_cose_sign_decode_fail()
427 concat!( in test_cose_sign_decode_fail()
428 "84", // 4-tuple in test_cose_sign_decode_fail()
429 "a0", // 0-map (invalid: should be bstr) in test_cose_sign_decode_fail()
430 "a0", // 0-map in test_cose_sign_decode_fail()
431 "43010203", // 3-bstr in test_cose_sign_decode_fail()
432 "80", // 0-tuple in test_cose_sign_decode_fail()
437 concat!( in test_cose_sign_decode_fail()
438 "85", // 5-tuple in test_cose_sign_decode_fail()
439 "40", // 0-bstr in test_cose_sign_decode_fail()
440 "a0", // 0-map in test_cose_sign_decode_fail()
441 "43010203", // 3-bstr in test_cose_sign_decode_fail()
442 "80", // 0-tuple in test_cose_sign_decode_fail()
443 "43010203", // 3-bstr in test_cose_sign_decode_fail()
448 concat!( in test_cose_sign_decode_fail()
449 "83", // 3-tuple in test_cose_sign_decode_fail()
450 "40", // 0-bstr in test_cose_sign_decode_fail()
451 "a0", // 0-map in test_cose_sign_decode_fail()
452 "43010203", // 3-bstr in test_cose_sign_decode_fail()
457 concat!( in test_cose_sign_decode_fail()
458 "84", // 4-tuple in test_cose_sign_decode_fail()
459 "40", // 0-bstr in test_cose_sign_decode_fail()
460 "a0", // 0-map in test_cose_sign_decode_fail()
461 "43010203", // 3-bstr in test_cose_sign_decode_fail()
462 "43010203", // 3-bstr in test_cose_sign_decode_fail()
467 concat!( in test_cose_sign_decode_fail()
468 "84", // 4-tuple in test_cose_sign_decode_fail()
469 "40", // 0-bstr in test_cose_sign_decode_fail()
470 "a0", // 0-map in test_cose_sign_decode_fail()
471 "63616263", // 3-tstr in test_cose_sign_decode_fail()
472 "80", // 0-tuple in test_cose_sign_decode_fail()
477 concat!( in test_cose_sign_decode_fail()
478 "84", // 4-tuple in test_cose_sign_decode_fail()
479 "40", // 0-bstr (special case for empty protected headers, rather than 41a0) in test_cose_sign_decode_fail()
480 "a0", // 0-map in test_cose_sign_decode_fail()
481 "43010203", // 3-bstr in test_cose_sign_decode_fail()
482 "81", // 1-tuple in test_cose_sign_decode_fail()
483 "83", // 3-tuple in test_cose_sign_decode_fail()
484 "a0", // 0-map (invalid: should be bstr) in test_cose_sign_decode_fail()
485 "a0", // 0-map in test_cose_sign_decode_fail()
486 "43010203", // 3-bstr in test_cose_sign_decode_fail()
488 "expected map for COSE_Signature", in test_cose_sign_decode_fail()
491 concat!( in test_cose_sign_decode_fail()
492 "84", // 4-tuple in test_cose_sign_decode_fail()
493 "45", // 5-bstr in test_cose_sign_decode_fail()
494 "a1", // 1-map in test_cose_sign_decode_fail()
495 "03", "81", "4101", // 3 (content-type) => [bstr] (invalid value type) in test_cose_sign_decode_fail()
496 "a0", // 0-map in test_cose_sign_decode_fail()
497 "43616263", // 3-bstr in test_cose_sign_decode_fail()
498 "80", // 0-tuple in test_cose_sign_decode_fail()
514 concat!( in test_cose_sign_tagged_decode_fail()
516 "84", // 4-tuple in test_cose_sign_tagged_decode_fail()
517 "40", // 0-bstr (special case for empty protected headers, rather than 41a0) in test_cose_sign_tagged_decode_fail()
518 "40", // 0-bstr (invalid: should be map) in test_cose_sign_tagged_decode_fail()
519 "43010203", // 3-bstr in test_cose_sign_tagged_decode_fail()
520 "80", // 0-tuple in test_cose_sign_tagged_decode_fail()
522 "expected map", in test_cose_sign_tagged_decode_fail()
525 concat!( in test_cose_sign_tagged_decode_fail()
527 "84", // 4-tuple in test_cose_sign_tagged_decode_fail()
528 "a0", // 0-map (invalid: should be bstr) in test_cose_sign_tagged_decode_fail()
529 "a0", // 0-map in test_cose_sign_tagged_decode_fail()
530 "43010203", // 3-bstr in test_cose_sign_tagged_decode_fail()
531 "80", // 0-tuple in test_cose_sign_tagged_decode_fail()
536 concat!( in test_cose_sign_tagged_decode_fail()
538 "85", // 5-tuple in test_cose_sign_tagged_decode_fail()
539 "40", // 0-bstr in test_cose_sign_tagged_decode_fail()
540 "a0", // 0-map in test_cose_sign_tagged_decode_fail()
541 "43010203", // 3-bstr in test_cose_sign_tagged_decode_fail()
542 "80", // 0-tuple in test_cose_sign_tagged_decode_fail()
543 "43010203", // 3-bstr in test_cose_sign_tagged_decode_fail()
548 concat!( in test_cose_sign_tagged_decode_fail()
550 "83", // 3-tuple in test_cose_sign_tagged_decode_fail()
551 "40", // 0-bstr in test_cose_sign_tagged_decode_fail()
552 "a0", // 0-map in test_cose_sign_tagged_decode_fail()
553 "43010203", // 3-bstr in test_cose_sign_tagged_decode_fail()
558 concat!( in test_cose_sign_tagged_decode_fail()
564 concat!( in test_cose_sign_tagged_decode_fail()
566 "84", // 4-tuple in test_cose_sign_tagged_decode_fail()
567 "40", // 0-bstr in test_cose_sign_tagged_decode_fail()
568 "a0", // 0-map in test_cose_sign_tagged_decode_fail()
569 "43010203", // 3-bstr in test_cose_sign_tagged_decode_fail()
570 "80", // 0-tuple in test_cose_sign_tagged_decode_fail()
575 concat!( in test_cose_sign_tagged_decode_fail()
577 "84", // 4-tuple in test_cose_sign_tagged_decode_fail()
578 "40", // 0-bstr in test_cose_sign_tagged_decode_fail()
579 "a0", // 0-map in test_cose_sign_tagged_decode_fail()
580 "43010203", // 3-bstr in test_cose_sign_tagged_decode_fail()
581 "80", // 0-tuple in test_cose_sign_tagged_decode_fail()
586 concat!( in test_cose_sign_tagged_decode_fail()
617 concat!( in test_rfc8152_cose_sign_decode()
652 concat!( in test_rfc8152_cose_sign_decode()
693 concat!( in test_rfc8152_cose_sign_decode()
729 concat!( in test_rfc8152_cose_sign_decode()
773 concat!( in test_cose_sign1_encode()
774 "84", // 4-tuple in test_cose_sign1_encode()
775 "40", // 0-bstr (special case for empty protected headers, rather than 41a0) in test_cose_sign1_encode()
776 "a0", // 0-map in test_cose_sign1_encode()
777 "40", // 0-bstr in test_cose_sign1_encode()
778 "40", // 0-bstr in test_cose_sign1_encode()
783 concat!( in test_cose_sign1_encode()
784 "84", // 4-tuple in test_cose_sign1_encode()
785 "40", // 0-bstr (special case for empty protected headers, rather than 41a0) in test_cose_sign1_encode()
786 "a0", // 0-map in test_cose_sign1_encode()
788 "43", "010203", // 3-bstr in test_cose_sign1_encode()
802 concat!( in test_cose_sign1_encode()
803 "84", // 4-tuple in test_cose_sign1_encode()
804 "48", // 8-bstr (protected) in test_cose_sign1_encode()
805 "a2", // 2-map in test_cose_sign1_encode()
807 "04", "43", "010203", // 4 (kid) => 3-bstr in test_cose_sign1_encode()
808 "a0", // 0-map in test_cose_sign1_encode()
809 "40", // 0-bstr in test_cose_sign1_encode()
810 "43", "010203", // 3-bstr in test_cose_sign1_encode()
824 concat!( in test_cose_sign1_encode()
825 "84", // 4-tuple in test_cose_sign1_encode()
826 "40", // 0-bstr (special case for empty protected headers, rather than 41a0) in test_cose_sign1_encode()
827 "a2", // 2-map in test_cose_sign1_encode()
829 "04", "43", "010203", // 4 (kid) => 3-bstr in test_cose_sign1_encode()
830 "40", // 0-bstr in test_cose_sign1_encode()
831 "43", "010203", // 3-bstr in test_cose_sign1_encode()
858 concat!( in test_cose_sign1_decode_fail()
859 "a2", // 2-map in test_cose_sign1_decode_fail()
860 "40", // 0-bstr (special case for empty protected headers, rather than 41a0) in test_cose_sign1_decode_fail()
861 "a0", // 0-map in test_cose_sign1_decode_fail()
862 "43010203", // 3-bstr in test_cose_sign1_decode_fail()
863 "40", // 0-bstr in test_cose_sign1_decode_fail()
868 concat!( in test_cose_sign1_decode_fail()
869 "84", // 4-tuple in test_cose_sign1_decode_fail()
870 "40", // 0-bstr (special case for empty protected headers, rather than 41a0) in test_cose_sign1_decode_fail()
871 "40", // 0-bstr (invalid: should be map) in test_cose_sign1_decode_fail()
872 "43010203", // 3-bstr in test_cose_sign1_decode_fail()
873 "40", // 0-bstr in test_cose_sign1_decode_fail()
875 "expected map", in test_cose_sign1_decode_fail()
878 concat!( in test_cose_sign1_decode_fail()
879 "84", // 4-tuple in test_cose_sign1_decode_fail()
880 "a0", // 0-map (invalid: should be bstr) in test_cose_sign1_decode_fail()
881 "a0", // 0-map in test_cose_sign1_decode_fail()
882 "43010203", // 3-bstr in test_cose_sign1_decode_fail()
883 "40", // 0-bstr in test_cose_sign1_decode_fail()
888 concat!( in test_cose_sign1_decode_fail()
889 "84", // 4-tuple in test_cose_sign1_decode_fail()
890 "40", // 0-bstr (special case for empty protected headers, rather than 41a0) in test_cose_sign1_decode_fail()
891 "a0", // 0-map in test_cose_sign1_decode_fail()
892 "63616263", // 3-tstr in test_cose_sign1_decode_fail()
893 "40", // 0-bstr in test_cose_sign1_decode_fail()
898 concat!( in test_cose_sign1_decode_fail()
899 "84", // 4-tuple in test_cose_sign1_decode_fail()
900 "40", // 0-bstr in test_cose_sign1_decode_fail()
901 "a0", // 0-map in test_cose_sign1_decode_fail()
902 "43010203", // 3-bstr in test_cose_sign1_decode_fail()
903 "80", // 0-arr (invalid: should be bstr) in test_cose_sign1_decode_fail()
908 concat!( in test_cose_sign1_decode_fail()
909 "85", // 5-tuple in test_cose_sign1_decode_fail()
910 "40", // 0-bstr in test_cose_sign1_decode_fail()
911 "a0", // 0-map in test_cose_sign1_decode_fail()
912 "43010203", // 3-bstr in test_cose_sign1_decode_fail()
913 "40", // 0-bstr in test_cose_sign1_decode_fail()
914 "43010203", // 3-bstr in test_cose_sign1_decode_fail()
919 concat!( in test_cose_sign1_decode_fail()
920 "83", // 3-tuple in test_cose_sign1_decode_fail()
921 "40", // 0-bstr in test_cose_sign1_decode_fail()
922 "a0", // 0-map in test_cose_sign1_decode_fail()
923 "43010203", // 3-bstr in test_cose_sign1_decode_fail()
928 concat!( in test_cose_sign1_decode_fail()
929 "84", // 4-tuple in test_cose_sign1_decode_fail()
930 "45", // 5-bstr in test_cose_sign1_decode_fail()
931 "a1", // 1-map in test_cose_sign1_decode_fail()
932 "03", "81", "4101", // 3 (content-type) => [bstr] (invalid value type) in test_cose_sign1_decode_fail()
933 "a0", // 0-map in test_cose_sign1_decode_fail()
934 "43616263", // 3-bstr in test_cose_sign1_decode_fail()
935 "40", // 0-bstr in test_cose_sign1_decode_fail()
959 concat!( in test_cose_sign1_decode_noncanonical()
960 "84", // 4-tuple in test_cose_sign1_decode_noncanonical()
962 concat!( in test_cose_sign1_decode_noncanonical()
963 "a2", // 2-map in test_cose_sign1_decode_noncanonical()
964 // The contents of the bstr-encoded header are not in canonical order. in test_cose_sign1_decode_noncanonical()
965 "04", "42", "3131", // 4 (kid) => 2-bstr "11" in test_cose_sign1_decode_noncanonical()
968 "a0", // 0-map (unprotected) in test_cose_sign1_decode_noncanonical()
969 "42", // 2-bstr (payload) in test_cose_sign1_decode_noncanonical()
971 "40", // 0-bstr in test_cose_sign1_decode_noncanonical()
993 concat!( in test_cose_sign1_tagged_decode_fail()
995 "84", // 4-tuple in test_cose_sign1_tagged_decode_fail()
996 "40", // 0-bstr (special case for empty protected headers, rather than 41a0) in test_cose_sign1_tagged_decode_fail()
997 "40", // 0-bstr (invalid: should be map) in test_cose_sign1_tagged_decode_fail()
998 "43010203", // 3-bstr in test_cose_sign1_tagged_decode_fail()
999 "40", // 0-bstr in test_cose_sign1_tagged_decode_fail()
1001 "expected map", in test_cose_sign1_tagged_decode_fail()
1004 concat!( in test_cose_sign1_tagged_decode_fail()
1006 "84", // 4-tuple in test_cose_sign1_tagged_decode_fail()
1007 "a0", // 0-map (invalid: should be bstr) in test_cose_sign1_tagged_decode_fail()
1008 "a0", // 0-map in test_cose_sign1_tagged_decode_fail()
1009 "43010203", // 3-bstr in test_cose_sign1_tagged_decode_fail()
1010 "40", // 0-bstr in test_cose_sign1_tagged_decode_fail()
1015 concat!( in test_cose_sign1_tagged_decode_fail()
1017 "85", // 5-tuple in test_cose_sign1_tagged_decode_fail()
1018 "40", // 0-bstr in test_cose_sign1_tagged_decode_fail()
1019 "a0", // 0-map in test_cose_sign1_tagged_decode_fail()
1020 "43010203", // 3-bstr in test_cose_sign1_tagged_decode_fail()
1021 "80", // 0-tuple in test_cose_sign1_tagged_decode_fail()
1022 "40", // 0-bstr in test_cose_sign1_tagged_decode_fail()
1027 concat!( in test_cose_sign1_tagged_decode_fail()
1029 "83", // 3-tuple in test_cose_sign1_tagged_decode_fail()
1030 "40", // 0-bstr in test_cose_sign1_tagged_decode_fail()
1031 "a0", // 0-map in test_cose_sign1_tagged_decode_fail()
1032 "43010203", // 3-bstr in test_cose_sign1_tagged_decode_fail()
1037 concat!( in test_cose_sign1_tagged_decode_fail()
1039 "84", // 4-tuple in test_cose_sign1_tagged_decode_fail()
1040 "40", // 0-bstr in test_cose_sign1_tagged_decode_fail()
1041 "a0", // 0-map in test_cose_sign1_tagged_decode_fail()
1042 "43010203", // 3-bstr in test_cose_sign1_tagged_decode_fail()
1043 "40", // 0-bstr in test_cose_sign1_tagged_decode_fail()
1048 concat!( in test_cose_sign1_tagged_decode_fail()
1050 "84", // 4-tuple in test_cose_sign1_tagged_decode_fail()
1051 "40", // 0-bstr in test_cose_sign1_tagged_decode_fail()
1052 "a0", // 0-map in test_cose_sign1_tagged_decode_fail()
1053 "43010203", // 3-bstr in test_cose_sign1_tagged_decode_fail()
1054 "40", // 0-bstr in test_cose_sign1_tagged_decode_fail()
1059 concat!( in test_cose_sign1_tagged_decode_fail()
1085 concat!( in test_rfc8152_cose_sign1_decode()
1111 fn sign(&self, data: &[u8]) -> Vec<u8> { in sign()
1115 fn verify(&self, sig: &[u8], data: &[u8]) -> Result<(), String> { in verify()
1122 fn try_sign(&self, data: &[u8]) -> Result<Vec<u8>, String> { in try_sign()
1126 fn fail_sign(&self, _data: &[u8]) -> Result<Vec<u8>, String> { in fail_sign()
1251 // Non-canonical: empty map can just be an empty bstr, not a bstr holding an empty map. in test_sign_noncanonical()
1253 // Non-canonical: the map length (of 0) is non-minimally encoded as the 0x00 following in test_sign_noncanonical()
1257 // Non-canonical: map not in canonical order. in test_sign_noncanonical()
1259 concat!( in test_sign_noncanonical()
1260 "a2", // 2-map in test_sign_noncanonical()
1261 // The contents of the bstr-encoded header are not in canonical order. in test_sign_noncanonical()
1262 "04", "42", "3131", // 4 (kid) => 2-bstr "11" in test_sign_noncanonical()
1273 // Build a protected header from a non-canonically encoded input. in test_sign_noncanonical()
1280 // Build a signature whose inputs include the non-canonically encoded protected header. in test_sign_noncanonical()
1303 // non-canonical wire data)... in test_sign_noncanonical()
1310 // ...then the transplanted signature will not verify, because the re-building of the in test_sign_noncanonical()
1410 // Attempt to verify an out-of-range signature in test_sign_sig_index_invalid()
1436 // Attempt to verify an out-of-range signature in test_sign_detached_sig_index_invalid()
1724 // Build an empty protected header from a non-canonical input of 41a0 rather than 40. in test_sign1_noncanonical()
1729 // Build a signature whose inputs include the non-canonically encoded protected header. in test_sign1_noncanonical()
1744 // non-canonical wire data)... in test_sign1_noncanonical()
1751 // ...then the transplanted signature will not verify, because the re-building of the signature in test_sign1_noncanonical()
1779 concat!( in test_sig_structure_data()
1780 "84", // 4-arr in test_sig_structure_data()
1781 "70", // 16-tstr in test_sig_structure_data()
1783 "4d", // 13-bstr for protected in test_sig_structure_data()
1784 "a3", // 3-map in test_sig_structure_data()
1786 "0443010203", // 4 (kid) => 3-bstr in test_sig_structure_data()
1787 "0643040506", // 6 (partial-iv) => 3-bstr in test_sig_structure_data()