Forward Secrecy
QNSP implements forward secrecy to protect past communications.
Forward Secrecy
QNSP implements forward secrecy to protect past communications.
What is forward secrecy
Even if long-term keys are compromised, past session keys cannot be derived.
Implementation
TLS connections
- Ephemeral key exchange (ECDHE + Kyber)
- Session keys derived per connection
- Long-term keys only for authentication
Token signing
- Signing keys rotate regularly
- Old signing keys destroyed
- Past tokens remain valid until expiry
Data encryption
- Per-object DEKs
- DEKs wrapped with rotating KEKs
- Compromise of current KEK doesn't expose old DEKs
Key exchange
Hybrid key exchange:
- Generate ephemeral X25519 keypair
- Generate ephemeral Kyber keypair
- Combine shared secrets
- Derive session key
Session key lifecycle
- Generated per session/connection
- Used for session duration
- Securely erased on session end
- Never stored persistently
Benefits
- Past data protected from future key compromise
- Limits exposure window
- Reduces value of key theft