Lines Matching refs:decoder
22 from pyasn1.codec.ber import decoder
30 assert decoder.decode(ints2octs((127, 141, 245, 182, 253, 47, 3, 2, 1, 1))) == (1, null)
33 assert decoder.decode(ints2octs((0x1f, 2, 1, 0)))[0].tagSet == univ.Integer.tagSet
37 …assert decoder.decode(ints2octs((0x9f, 0x80, 0x00, 0x02, 0x01, 0x02)), asn1Spec=integer) == decode…
43 … assert decoder.decode(ints2octs((0x1f, 2, 1, 0))) == decoder.decode(ints2octs((0x1f, 2, 1, 0)))
48 assert decoder.decode(ints2octs((2, 1, 12))) == (12, null)
51 assert decoder.decode(ints2octs((2, 1, 244))) == (-12, null)
54 assert decoder.decode(ints2octs((2, 0))) == (0, null)
57 assert decoder.decode(ints2octs((2, 1, 0))) == (0, null)
60 assert decoder.decode(ints2octs((2, 1, 255))) == (-1, null)
63 assert decoder.decode(
68 assert decoder.decode(
74 decoder.decode(
81 assert decoder.decode(
87 decoder.decode(ints2octs((34, 1, 12)))
96 assert decoder.decode(ints2octs((1, 1, 1))) == (1, null)
99 assert decoder.decode(ints2octs((1, 1, 255))) == (1, null)
102 … assert decoder.decode(ints2octs((1, 1, 1, 0, 120, 50, 50))) == (1, ints2octs((0, 120, 50, 50)))
105 assert decoder.decode(ints2octs((1, 1, 0))) == (0, null)
109 decoder.decode(ints2octs((33, 1, 1)))
118 assert decoder.decode(
123 assert decoder.decode(
128 assert decoder.decode(
133 assert decoder.decode(
138 assert decoder.decode(
144 assert decoder.decode(
151 decoder.decode(ints2octs((35, 4, 2, 2, 42, 42)))
160 assert decoder.decode(
165 assert decoder.decode(
170 assert decoder.decode(
176 assert decoder.decode(
181 assert decoder.decode(
188 assert decoder.decode(
206 o, r = decoder.decode(
215 o, r = decoder.decode(
224 o, r = decoder.decode(
233 o, r = decoder.decode(
242 assert decoder.decode(
248 assert decoder.decode(
259 assert decoder.decode(ints2octs((5, 0))) == (null, null)
263 decoder.decode(ints2octs((37, 0)))
274 assert decoder.decode(
279 assert decoder.decode(
284 assert decoder.decode(
289 assert decoder.decode(
294 assert decoder.decode(
299 assert decoder.decode(
304 assert decoder.decode(
309 assert decoder.decode(
314 assert decoder.decode(
319 assert decoder.decode(
324 assert decoder.decode(
330 decoder.decode(
340 decoder.decode(
350 decoder.decode(
360 decoder.decode(
370 decoder.decode(ints2octs((38, 1, 239)))
378 decoder.decode(ints2octs((6, 0, 0)))
386 decoder.decode(ints2octs((6, 128, 0)))
394 decoder.decode(ints2octs((6, 255, 0)))
401 assert decoder.decode(
406 assert decoder.decode(
413 assert decoder.decode(
418 assert decoder.decode( # (0.5, 2, 0) encoded with base = 2
423 assert decoder.decode( # (3.25, 2, 0) encoded with base = 8
428 assert decoder.decode( # (0.00390625, 2, 0) encoded with base = 16
433 assert decoder.decode( # (1, 2, 0) encoded with base = 2
438 assert decoder.decode( # (3, 2, -1020) encoded with base = 16
455 assert decoder.decode(
460 assert decoder.decode(
465 assert decoder.decode(
471 decoder.decode(ints2octs((41, 0)))
479 decoder.decode(ints2octs((9, 1, 131)))
489 …assert decoder.decode(ints2octs((28, 12, 0, 0, 0, 97, 0, 0, 0, 98, 0, 0, 0, 99))) == (char.Univers…
494 …assert decoder.decode(ints2octs((30, 6, 0, 97, 0, 98, 0, 99))) == (char.BMPString(sys.version_info…
499 …assert decoder.decode(ints2octs((12, 3, 97, 98, 99))) == (char.UTF8String(sys.version_info[0] == 3…
510 assert decoder.decode(
515 assert decoder.decode(
520 assert decoder.decode(
525 assert decoder.decode(
530 assert decoder.decode(
539 s2, r = decoder.decode(
548 s2, r = decoder.decode(
563 assert decoder.decode(
568 assert decoder.decode(
573 assert decoder.decode(
578 assert decoder.decode(
590 assert decoder.decode(
595 assert decoder.decode(
600 assert decoder.decode(
605 assert decoder.decode(
610 assert decoder.decode(
622 assert decoder.decode(
627 assert decoder.decode(
632 assert decoder.decode(
637 assert decoder.decode(
657 assert decoder.decode(
662 assert decoder.decode(
667 assert decoder.decode(
673 assert decoder.decode(
678 assert decoder.decode(
684 assert decoder.decode(
692 decoder.decode(
734 assert decoder.decode(
740 assert decoder.decode(
746 assert decoder.decode(
752 assert decoder.decode(
758 assert decoder.decode(
764 assert decoder.decode(
771 assert decoder.decode(
778 assert decoder.decode(
786 assert decoder.decode(
792 assert decoder.decode(
798 assert decoder.decode(
804 assert decoder.decode(
810 assert decoder.decode(
817 assert decoder.decode(
824 assert decoder.decode(
832 assert decoder.decode(
853 s, r = decoder.decode(
862 s, r = decoder.decode(
872 s, r = decoder.decode(
884 s, r = decoder.decode(
893 s, r = decoder.decode(
901 s, r = decoder.decode(
926 s, r = decoder.decode(
934 s, r = decoder.decode(
959 s, r = decoder.decode(
967 s, r = decoder.decode(
990 assert decoder.decode(
995 assert decoder.decode(
1000 assert decoder.decode(
1006 assert decoder.decode(
1011 assert decoder.decode(
1017 assert decoder.decode(
1025 decoder.decode(
1067 assert decoder.decode(
1073 assert decoder.decode(
1079 assert decoder.decode(
1085 assert decoder.decode(
1091 assert decoder.decode(
1097 assert decoder.decode(
1103 assert decoder.decode(
1109 assert decoder.decode(
1115 assert decoder.decode(
1121 assert decoder.decode(
1127 assert decoder.decode(
1133 assert decoder.decode(
1139 assert decoder.decode(
1145 assert decoder.decode(
1151 assert decoder.decode(
1157 assert decoder.decode(
1163 assert decoder.decode(
1169 assert decoder.decode(
1184 s, r = decoder.decode(ints2octs((48, 5, 163, 3, 4, 1, 113)), asn1Spec=self.s)
1190 … s, r = decoder.decode(ints2octs((48, 128, 163, 128, 4, 1, 113, 0, 0, 0, 0)), asn1Spec=self.s)
1196 s, r = decoder.decode(ints2octs((48, 5, 163, 3, 4, 1, 113)), asn1Spec=self.s2)
1202 … s, r = decoder.decode(ints2octs((48, 128, 163, 128, 4, 1, 113, 0, 0, 0, 0)), asn1Spec=self.s2)
1208 s, r = decoder.decode(ints2octs((48, 5, 163, 3, 4, 1, 113)))
1214 s, r = decoder.decode(ints2octs((48, 128, 163, 128, 4, 1, 113, 0, 0, 0, 0)))
1234 s, r = decoder.decode(ints2octs((48, 5, 163, 3, 4, 1, 113)), asn1Spec=self.s)
1240 … s, r = decoder.decode(ints2octs((48, 128, 163, 128, 4, 1, 113, 0, 0, 0, 0)), asn1Spec=self.s)
1246 s, r = decoder.decode(ints2octs((48, 5, 163, 3, 4, 1, 113)), asn1Spec=self.s2)
1252 … s, r = decoder.decode(ints2octs((48, 128, 163, 128, 4, 1, 113, 0, 0, 0, 0)), asn1Spec=self.s2)
1258 s, r = decoder.decode(ints2octs((48, 5, 163, 3, 4, 1, 113)))
1264 s, r = decoder.decode(ints2octs((48, 128, 163, 128, 4, 1, 113, 0, 0, 0, 0)))
1283 assert decoder.decode(
1289 assert decoder.decode(ints2octs((5, 0))) == (self.s, null)
1290 assert decoder.decode(ints2octs((5, 0))) == (univ.Null(null), null)
1294 …assert decoder.decode(ints2octs((36, 128, 4, 3, 97, 98, 99, 4, 3, 100, 101, 102, 4, 2, 103, 104, 0…
1301 assert decoder.decode(ints2octs((164, 2, 5, 0)), asn1Spec=s) == (s, null)
1307 assert decoder.decode(ints2octs((164, 128, 5, 0, 0, 0)), asn1Spec=s) == (s, null)
1316 assert decoder.decode(
1322 assert decoder.decode(ints2octs((164, 5, 4, 3, 102, 111, 120)), asn1Spec=s) == (s, null)
1326 assert decoder.decode(ints2octs((132, 5, 4, 3, 102, 111, 120)), asn1Spec=s) == (s, null)
1329 assert decoder.decode(
1335 … assert decoder.decode(ints2octs((164, 128, 4, 3, 102, 111, 120, 0, 0)), asn1Spec=s) == (s, null)
1339 … assert decoder.decode(ints2octs((164, 128, 4, 3, 102, 111, 120, 0, 0)), asn1Spec=s) == (s, null)
1342 assert decoder.decode(
1349 assert decoder.decode(
1359 decoder.decode(ints2octs((0, 0)))
1366 result, remainder = decoder.decode(ints2octs((0, 0)), allowEoo=True)
1372 decoder.decode(ints2octs((0x23, 0x02, 0x00, 0x00)))
1379 result, remainder = decoder.decode(ints2octs((0x23, 0x80, 0x00, 0x00)))
1384 decoder.decode(ints2octs((0x23, 0x80, 0x00, 0x81, 0x00)))
1392 decoder.decode(ints2octs((0x23, 0x80, 0x20, 0x00)))
1400 decoder.decode(ints2octs((0x23, 0x80, 0x00, 0x01, 0x00)))
1424 s, _ = decoder.decode(univ.OctetString(self.substrate), asn1Spec=self.s)
1428 s, _ = decoder.decode(univ.Any(self.substrate), asn1Spec=self.s)