Expand description
Minimal ASN.1 DER encoder/decoder.
Supports only the tags needed by PKCS#1, PKCS#8, SEC1 and SPKI: SEQUENCE, INTEGER, OCTET STRING, BIT STRING, OID, context-tagged (explicit), and NULL.
Structs§
- DerDecoder
- DER decoder: reads TLV items from a byte slice.
- DerEncoder
- DER encoder: builds a byte vector by appending TLV items.
Constants§
- OID_
BRAINPOOL_ P256 R1 - brainpoolP256r1 (1.3.36.3.3.2.8.1.1.7)
- OID_
BRAINPOOL_ P384 R1 - brainpoolP384r1 (1.3.36.3.3.2.8.1.1.11)
- OID_
BRAINPOOL_ P512 R1 - brainpoolP512r1 (1.3.36.3.3.2.8.1.1.13)
- OID_
EC_ PUBLIC_ KEY - id-ecPublicKey (1.2.840.10045.2.1)
- OID_
ED25519 - id-Ed25519 (1.3.101.112)
- OID_RSA
- rsaEncryption (1.2.840.113549.1.1.1)
- OID_
SECP256 K1 - secp256k1 (1.3.132.0.10)
- OID_
SECP256 R1 - secp256r1 / P-256 (1.2.840.10045.3.1.7)
- OID_
SECP384 R1 - secp384r1 / P-384 (1.3.132.0.34)
- OID_
SECP521 R1 - secp521r1 / P-521 (1.3.132.0.35)
- OID_
X448 - id-X448 (1.3.101.111)
- OID_
X25519 - id-X25519 (1.3.101.110)
- TAG_
BIT_ STRING - BIT STRING tag.
- TAG_
INTEGER - ASN.1 tag bytes.
- TAG_
NULL - NULL tag.
- TAG_
OCTET_ STRING - OCTET STRING tag.
- TAG_OID
- OBJECT IDENTIFIER tag.
- TAG_
SEQUENCE - SEQUENCE (constructed) tag.