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).
This commit is contained in:
Flakebi
2018-12-09 12:00:33 +01:00
parent 84bd0c6642
commit b678c70508
2 changed files with 281 additions and 223 deletions

View File

@@ -9,8 +9,9 @@ license-file = "LICENSE"
repository = "https://github.com/acw/simple_asn1"
[dependencies]
chrono = "^0.4.0"
num = "^0.2.0"
chrono = "^0.4.0"
num-bigint = "^0.2.0"
num-traits = "^0.2.0"
[dev-dependencies]
quickcheck = "^0.7.1"