arcana/encoding/mod.rs
1// SPDX-License-Identifier: Apache-2.0
2// Copyright 2026 Cédric Mesnil <cslashm@pm.me>
3
4//! Key serialization: DER (ASN.1), PEM, PKCS#1, PKCS#8, SPKI, SEC1.
5//!
6//! This module provides:
7//!
8//! - A minimal ASN.1 DER encoder/decoder (`der`) supporting the
9//! tags used by PKCS#1, PKCS#8, SEC1 and SPKI: SEQUENCE, INTEGER,
10//! OCTET STRING, BIT STRING, OID, context-tagged, and NULL.
11//! - Base64 + PEM armor (`pem`) for the standard
12//! `-----BEGIN/END ...-----` wrapping.
13
14pub mod der;
15pub mod keys;
16pub mod pem;