codec_multikey/lib.rs
1// SPDX-FileCopyrightText: 2026 ReallyMe LLC
2//
3// SPDX-License-Identifier: MIT OR Apache-2.0
4
5//! Multikey public-key encoding: a multicodec algorithm prefix plus multibase,
6//! with strict length and binding validation on decode.
7//!
8//! RSA public-key bytes are an opaque payload in this codec profile, bounded
9//! to 4096 bytes. Parsing an RSA multikey does not validate ASN.1 DER or the
10//! cryptographic key; the consuming crypto layer must do that before use.
11
12mod binding;
13mod encode;
14mod error;
15mod parse;
16
17#[allow(deprecated)]
18pub use binding::{
19 binding_type_matches_codec, validate_key_binding, validate_multikey_binding, KeyBindingInput,
20};
21pub use encode::encode_multikey;
22pub use error::{
23 BindingAlgorithmKind, BindingTypeKind, CodecNameReason, MultikeyCodecKind, MultikeyError,
24};
25pub use parse::{parse_multikey, ParsedMultikey};