Commit Graph

225 Commits

Author SHA1 Message Date
mitshell 26c7055faf asn1rt: raise exception when trying to use a parameterized object for encoding / decoding 2024-02-27 13:09:43 +01:00
p1-bmu 7da0250c08 asn1rt: fix ASN decoder error call for SEQUENCE OF 2023-11-08 14:35:30 +01:00
Matthias Brehler 2e2e90c559 Add missing mandatory values to error message
Makes it easier to update the ASN.1 message.

Change-Id: If2362729cef3fa52b67244d983377c78c76c317c
2023-08-29 12:36:33 -06:00
p1-bmu 47aaef8528 asn1rt: enable silenting identical OID warnings 2023-06-13 08:49:01 +02:00
p1-bmu 65df070a52 asn1rt: fix JER encoding for OPEN object 2023-06-06 19:31:02 +02:00
p1-bmu 87d633859b globally remove Python 2 compat 2023-04-06 15:48:00 +02:00
p1-bmu 581a50fcc6 asn1rt: fix support of raw ASN.1 primitive object in OPEN types together with BER 2023-03-28 07:40:20 +02:00
p1-bmu a997318f40 asn1rt: fix BER an CER encoding for fragmented String 2023-01-10 17:14:37 +01:00
p1-bmu 55c9a78a0f asn1rt: fix PER codec for fragmented String objects 2023-01-10 15:23:12 +01:00
p1-bmu 3bc3759ba2 asn1rt: fix potential issue in NULL BER encode / decode 2022-12-14 18:35:54 +01:00
Jason Kuan f75d547583 Include space and tilde in visible string range 2022-10-13 13:05:48 +02:00
p1-bmu 328380677d asn1rt: fix and harmonize errors for constructed objects 2022-08-04 17:51:37 +02:00
p1-bmu 18f4e4485e asn1rt: fix OID ASN syntax decoding 2022-07-20 11:48:37 +02:00
Matthias Brehler c4cb681648 Change [] default arguments to None
Mutable default arguments lead to problems, cf https://florimond.dev/en/posts/2018/08/python-mutable-defaults-are-the-source-of-all-evil/
We ran into this calling get_val_jer_paths multiples times in a loop.

Change-Id: Ic6d6d478beaf54b92f4026e27f7b6d850a9cca15
2022-07-12 19:06:30 -06:00
p1-bmu 59c2af4fc5 Merge branch 'raw_strings' of https://github.com/mbrehler/pycrate into mbrehler-raw_strings 2022-07-01 11:57:41 +02:00
p1-bmu e8d1decfed asn1rt: enhance the docstring for get_val_jer_paths() 2022-06-27 12:23:13 +02:00
Matthias Brehler 970fe6874a Add get_val_jer_paths
Operates like get_val_paths returns JER paths in addition.

Change-Id: If895c2148fde5cb0d313455b0a76d641e8a2c2d6
2022-06-20 18:29:53 -06:00
Matthias Brehler 6b0600dacc Mark regular strings expressions as raw strings
Avoids pylint warnings

Change-Id: I0d4712f6c425884ec340ce1bfbeb2e56060f3538
2022-06-20 18:12:46 -06:00
p1-bmu 36885a4fa6 asn1rt: some linting, and ensuring all objec's value assignments are happening lately 2022-05-13 15:11:17 +02:00
p1-bmu 0e7245ba18 asn1rt: SET and CONSTRUCT_OF decode into local value before assigning object's value 2022-05-13 12:46:10 +02:00
p1-bmu b3a0c5030b asn1rt: SEQ decode into local value before assigning object's value 2022-05-13 12:21:30 +02:00
p1-bmu 94ce15196e asn1rt: CONSTRUCT decode into local value before assigning object's value 2022-05-13 12:12:51 +02:00
p1-bmu f0f3e47392 asn1rt: fix BER encoding of non-extensible SET 2022-04-05 17:07:45 +02:00
p1-bmu 5f5f151358 cosmetic 2022-02-15 17:49:41 +01:00
p1-bmu f90d265160 asn1rt: enhance the possibilities for per-object BER encoding variations 2022-01-19 14:46:41 +01:00
p1-bmu b1e8193fc0 asn1rt: just provide some more comment / docstr 2021-11-10 15:38:04 +01:00
p1-bmu 84fa11dcc6 keep being nice with py2 2021-10-22 13:52:43 +02:00
p1-bmu 4efc57b675 asn1rt: 2nd attempt at fixing STRING interpretation in comment 2021-06-09 14:51:21 +02:00
p1-bmu 3e0b832d4a asn1rt: fix to_asn1() corner case conversion of printable string 2021-05-31 12:33:49 +02:00
p1-bmu 66b01d52fb asn1rt: force the presence of pyrcate_core, as it is in any way required by asn1rt/utils.py 2021-05-21 12:26:37 +02:00
p1-bmu 7f3647e4bf asn1rt: enhance OCTET STRING and BIT STRING CONTAINING content decoding 2021-05-18 17:07:17 +02:00
p1-bmu 446ba9b708 remove version indication from __init__.py files 2021-05-17 17:28:51 +02:00
p1-bmu b7b09091c2 asn1rt: fix get_proto() for backward compat calling conv 2021-02-01 16:19:49 +01:00
p1-bmu 3f29d8acfb asn1rt: add an option to get_proto() to collect ENUM content 2021-01-07 17:00:04 +01:00
p1-bmu 92ad8da1c3 asn1rt: fix the number of decimal representation for REAL in jer, to not mess python 2.7 2020-11-30 11:42:29 +01:00
p1-bmu 99db2b153a asn1rt: fix call to get_complexity 2020-11-18 19:28:23 +01:00
p1-bmu bf60df7924 asn1rt: rework get_proto and get_complexity, and remove iter_cont 2020-11-09 15:47:26 +01:00
p1-bmu 251a528759 asn1rt: add a config param to disable the printing of OID name in comment 2020-10-13 09:17:41 +02:00
Josef 9cf0abcd92 CONSTRUC to_per log message fix. 2020-10-02 14:13:44 +02:00
p1-bmu c065c0bf06 asn1rt: use the typeref name of OPEN object within the _ws PER encoding variant 2020-10-01 13:10:42 +02:00
p1-bmu 0c449a1307 asn1rt: fix BIT STR count structure name in _ws PER decoding variant 2020-10-01 13:09:37 +02:00
Josef 225341f106 Fixes OER/COER encoding for OCTET STRINGs with range and CONTAINING constraints. 2020-09-23 11:26:41 +02:00
Josef 7956750cc6 Fixed bad tag decoding handling in CHOICE. 2020-09-21 11:58:51 +02:00
p1-bmu c5c225134b core/asn1rt: move IEEE 754 float routines to the asn1rt part 2020-09-21 11:47:45 +02:00
p1-bmu f6ded2c3ec Merge branch 'OER_implementation' of https://github.com/JNevrly/pycrate into JNevrly-OER_implementation 2020-09-16 18:51:22 +02:00
p1-bmu 85e13731bc asn: cosmetic changes 2020-09-14 13:04:00 +02:00
Josef 4294178967 Fixed SEQUENCE preamble bug after checking in ASN.1 playground. 2020-09-11 10:33:11 +02:00
Josef f89c4cec63 Added GET_DEFVAL flat to OER codec. 2020-09-10 12:20:32 +02:00
Josef 28074e7f4b Support for SET OF, SEQUENCE OF including *_ws methods. 2020-09-10 12:12:11 +02:00
Josef f50b32c652 Fixed structure encoding/decoding of a string type. 2020-09-10 12:11:33 +02:00