Skip to main content

Module der

Module der 

Source
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_P256R1
brainpoolP256r1 (1.3.36.3.3.2.8.1.1.7)
OID_BRAINPOOL_P384R1
brainpoolP384r1 (1.3.36.3.3.2.8.1.1.11)
OID_BRAINPOOL_P512R1
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_SECP256K1
secp256k1 (1.3.132.0.10)
OID_SECP256R1
secp256r1 / P-256 (1.2.840.10045.3.1.7)
OID_SECP384R1
secp384r1 / P-384 (1.3.132.0.34)
OID_SECP521R1
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.