Skip to main content

Module certificate

Module certificate 

Source
Expand description

Certificate I/O helpers: generate, persist, and load TYPHOON key material.

§Binary file format

Every file produced by this module begins with a 10-byte header:

OffsetSizeValueDescription
07TYPHOONMagic bytes
71S or CRecord type: server key pair or client certificate
81F or UCipher mode: fast (F) or full (U)
911Format version (currently always 1)

The payload following the header depends on record type and cipher mode; see ServerKeyPair::save and ClientCertificate::save for exact field tables.

Structs§

ClientCertificate
Client-side connection descriptor: crypto public keys + server addresses (fast mode).
ServerKeyPair
Full server key material: McEliece + Ed25519 + symmetric obfuscation key (fast mode).

Enums§

CertificateError
Error type for certificate file operations.

Constants§

ED25519_BYTES
Ed25519 key size in bytes (signing key, verifying key, or obfuscation key).
EPK_BYTES
Classic McEliece 348864 public key size in bytes.
ESK_BYTES
Classic McEliece 348864 secret key size in bytes.
X25519_BYTES
X25519 key size in bytes (public or static secret).