Skip to main content

Module keys

Module keys 

Source
Expand description

Public key and signature encodings (specification §3.2, §3.4). Only the byte layout and suite check live here; signing and verification are in the crypto module.

PublicKey = suite u8 ‖ mldsa65_pk [1952] ‖ ed25519_pk [32]    (1 985 B)
Signature = suite u8 ‖ mldsa65_sig [3309] ‖ ed25519_sig [64]  (3 374 B)

Structs§

PublicKey
A composite public key (specification §3.4), 1 985 bytes.
Signature
A composite signature (specification §3.4), 3 374 bytes.

Enums§

KeyEncodingError
The encoding is not a known suite or has the wrong length.
Suite
A signature suite (specification §3.2). 0x00 and 0x02–0xFF are rejected.

Constants§

ED25519_PK_LEN
Ed25519 public key length.
ED25519_SIG_LEN
Ed25519 signature length.
MLDSA65_PK_LEN
ML-DSA-65 public key length.
MLDSA65_SIG_LEN
ML-DSA-65 signature length.
PUBLIC_KEY_LEN
Encoded PublicKey length.
SIGNATURE_LEN
Encoded Signature length.