Skip to main content

Module encoding

Module encoding 

Source
Expand description

Key serialization: DER, PEM, PKCS#1, PKCS#8, SEC1, SPKI. Key serialization: DER (ASN.1), PEM, PKCS#1, PKCS#8, SPKI, SEC1.

This module provides:

  • A minimal ASN.1 DER encoder/decoder (der) supporting the tags used by PKCS#1, PKCS#8, SEC1 and SPKI: SEQUENCE, INTEGER, OCTET STRING, BIT STRING, OID, context-tagged, and NULL.
  • Base64 + PEM armor (pem) for the standard -----BEGIN/END ...----- wrapping.

Modulesยง

der
Minimal ASN.1 DER encoder/decoder.
keys
Key serialization: PKCS#1 (RSA), SEC1 (ECC), SPKI, PKCS#8.
pem
PEM armor: base64 encoding with -----BEGIN/END ...----- headers.