Expand description
zernel pqc โ Post-Quantum Cryptography tools
Provides quantum-resistant cryptographic operations for ML assets:
- Key generation (ML-KEM + ML-DSA compatible keypairs)
- Model/checkpoint signing and verification
- Model/data encryption with PQC key exchange
- Secure boot chain verification
Uses SHA-256 + AES-256-GCM as the symmetric core, with PQC key encapsulation and signatures wrapping the symmetric keys.
Modulesยง
- hex ๐
- Simple hex encoding (avoids adding hex crate dependency).
Structsยง
- PqcKeypair ๐
- PQC keypair stored on disk.
- PqcSignature ๐
- Signature metadata stored alongside signed files.
Enumsยง
Constantsยง
- KEY_DIR ๐
- ZERNEL_
PQC_ ๐VERSION
Functionsยง
- collect_
files ๐ - generate_
key_ ๐material - Generate a cryptographically secure random key.
- hash_
path ๐ - Hash a file or directory (SHA-256).
- key_
path ๐ - load_
key ๐ - pqc_dir ๐
- run
- sign_
hash ๐ - Sign a hash with the secret key (HMAC-SHA256).
- verify_
signature ๐ - Verify a signature.