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§
- Public
Key - A composite public key (specification §3.4), 1 985 bytes.
- Signature
- A composite signature (specification §3.4), 3 374 bytes.
Enums§
- KeyEncoding
Error - The encoding is not a known suite or has the wrong length.
- Suite
- A signature suite (specification §3.2).
0x00and0x02–0xFFare rejected.
Constants§
- ED25519_
PK_ LEN - Ed25519 public key length.
- ED25519_
SIG_ LEN - Ed25519 signature length.
- MLDS
A65_ PK_ LEN - ML-DSA-65 public key length.
- MLDS
A65_ SIG_ LEN - ML-DSA-65 signature length.
- PUBLIC_
KEY_ LEN - Encoded
PublicKeylength. - SIGNATURE_
LEN - Encoded
Signaturelength.