asn1kit
asn1kit is an ASN.1 library written for Ruby.
asn1kit parses a subset of the ASN.1:2015 [see below for what is supported] and supports encoding of the BER (Basic Encoding Rules) and DER (Distinguished Encoding Rules).
What is supported by ASN1Kit
- Compiling ASN.1 module definition into Ruby objects
- BER/DER decoding and DER encoding
- TBA
The level of support is sufficient to compile and process most of the PKIX modules.
What is not supported by ASN1Kit
- Constraints are not supported except the SizeConstraint.
- XML value notation is not supported.
- TBA
How does the compiler work
The most part of the compiler is available in lib/asn1kit/parse.ry
and
lib/asn1kit/compile.rb
.
TBA