rust_checker
A modular Rust code validation tool with HTML, JSON, SVG badge, and JUnit XML report export.
Installation
Usage
Post-Quantum Cryptography (PQC) Hybrid Example
Starting from version v1.0.1, rust_checker includes a real-world example demonstrating how to combine post-quantum key encapsulation (Kyber/ML-KEM) with classical symmetric encryption (ChaCha20-Poly1305) and key derivation (HKDF-SHA256) using production-grade Rust crypto libraries.
Overview
- Post-Quantum KEM: pqcrypto-kyber
- Key Derivation: ring::hkdf
- Symmetric AEAD: ring::aead::CHACHA20_POLY1305
- Secure RNG: rand::rngs::OsRng
- Zeroization: zeroize
- Constant-Time Comparison: subtle
Example Flow
- Generate a Kyber keypair
- Encapsulate/decapsulate to exchange a shared secret
- Derive a symmetric key via HKDF-SHA256
- Encrypt/decrypt a plaintext message with ChaCha20-Poly1305
- Zeroize secrets on drop
Run the Example
## Post-Quantum Cryptography (PQC) Hybrid Example
)))
### Overview
)
)
)
)
)
)
### Example Flow
### Run the Example