Challenge Assignment: pqc-demo Full Demo Binary
Build pqc-demo/src/main.rs with the following subcommands:
pqc-demo kem # ML-KEM-768 keygen + exchange, print sizes
pqc-demo dsa # ML-DSA-65 sign + verify, print sizes
pqc-demo hybrid # X25519 + ML-KEM-768 hybrid exchange
pqc-demo bench # Full benchmark table (classical vs PQC)
pqc-demo tls # Hybrid TLS connection demo
The tls subcommand is the capstone:
- Generates a test cert chain (using rcgen from toy-pki)
- Starts a TLS server with aws-lc-rs provider
- Connects a client with X25519MLKEM768 only
- Sends "hello PQC world", receives it echoed
- Prints confirmation that hybrid key exchange was used