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:
| Offset | Size | Value | Description |
|---|---|---|---|
| 0 | 7 | TYPHOON | Magic bytes |
| 7 | 1 | S or C | Record type: server key pair or client certificate |
| 8 | 1 | F or U | Cipher mode: fast (F) or full (U) |
| 9 | 1 | 1 | Format 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§
- Client
Certificate - Client-side connection descriptor: crypto public keys + server addresses (fast mode).
- Server
KeyPair - Full server key material: McEliece + Ed25519 + symmetric obfuscation key (fast mode).
Enums§
- Certificate
Error - 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).