9dae809afa
Start a cleaner parsing routine over iterators, and generator that only requires
2020-06-18 15:34:48 -07:00
5d07dc7cc3
Remove some post-fmt warnings.
2020-06-14 17:01:24 -07:00
5bb01ae0e4
Make this subject to rustfmt.
2020-06-14 16:38:23 -07:00
ce2bf1407c
Start bringing this library into a more modern idiom.
2020-06-14 16:37:43 -07:00
Bernhard Schuster
47a5140bf2
feat(as_raw) impl as_raw for OID
2019-12-13 21:27:47 +01:00
Bernhard Schuster
52348af492
chore(fmt): cargo fmt
2019-12-13 21:24:48 +01:00
Bernhard Schuster
ab7616a86c
feat(OID): silence warnings
2019-12-13 21:15:28 +01:00
nyamnyam
7c8e01f5b2
BigUint(0) bug fixed (encode_base127)
2019-09-12 10:16:53 +09:00
Adam Wick
800f165977
Merge pull request #9 from Flakebi/master
...
Return error instead of panics on invalid ASN.1
2019-03-29 16:20:12 -07:00
b72f384989
Test reparsing generated GeneralizedTimes, to expose a bug that's about to get fixed.
2019-03-29 16:18:17 -07:00
Flakebi
0641eff20b
Add errors for panics found by fuzzing
2019-03-29 18:44:09 +01:00
Flakebi
115859668c
Remove usage of deprecated functions
2019-03-29 16:38:56 +01:00
Flakebi
8a64254c95
Return error on invalid length
2019-03-29 16:30:13 +01:00
Your Name
5aa3b6665c
Make BigInt and BigUint public use
2019-03-20 13:39:05 +01:00
Flakebi
b678c70508
Reduce num dependencies, improve class implementation and add explicit tags
...
The default datatypes always have Universal as their class. If we
encounter another class while parsing, it is a tagged block.
I am not sure how (and if at all) we can distinguish explicitly and
implicitly tagged data. For now they should be parsed as unknown (or
explicit if they are a valid ASN.1 block).
2018-12-09 12:01:01 +01:00
Ryan Leckey
9f22f1dde0
Set bit 5 for SEQUENCE 0x10 and SET 0x11 to indicate constructed encoding
2018-11-14 21:12:13 -08:00
823fc31f6f
Add Display and Error implementations for ASN1DecodeError, plus some context.
2018-10-26 12:04:31 -07:00
bdb8f7f8aa
Make ASN1EncodeErr an instance of std::Error.
2018-10-26 09:25:05 -07:00
484ccef3fb
Remove a warning that's not entirely helpful.
2018-10-26 09:24:37 -07:00
Ryan Leckey
939621b8c4
Upgrade dependencies
2018-10-23 12:42:44 -07:00
f89c6d9be6
Fix comment around ToASN1.
2018-01-16 17:45:03 -08:00
f6b39d7003
Documentation!
2017-12-26 18:06:23 -08:00
dc1fd79886
Add generic operators for ASN1Blocks.
2017-12-21 22:27:21 -08:00
c6a7d3039c
Add the ability to capture start indexes of components, and variants of FromASN1 that require the body contents.
2017-12-21 21:44:06 -08:00
5e8dde500e
Shift import into test module to avoid warning.
2017-12-21 16:56:56 -08:00
762b9b2fa4
Add time value support.
2017-12-19 10:21:36 -08:00
89cf0a25b5
Support more string types.
2017-12-11 21:31:57 -08:00
dd281edcd1
Add support for printable strings.
2017-12-10 21:54:01 -08:00
018770f711
Generic traits for dealing with ASN1.
2017-11-14 14:55:01 -08:00
b9594c9fb4
Ignore read result.
2017-11-14 14:54:46 -08:00
7134b205d4
Factor out OIDs into their own structure, with relevant functions and macros.
2017-11-14 14:54:10 -08:00
827aa0e74e
Initial parser.
2017-11-06 14:47:27 -08:00