Files
ep-ee2e-phone-calls/docs/CRYPTOGRAPHY.md
T
2026-11-17 08:47:50 +02:00

27 lines
1.8 KiB
Markdown

# Cryptography implementation decisions
## Status: selection gate open
The target is a maintained Signal-protocol implementation supporting the exact PQXDH suite selected by the project, including ML-KEM where supported by that implementation. Do not assume that a standalone ML-KEM library plus X25519 automatically implements PQXDH.
The Android foundation currently provisions a local ECDSA P-256 signing key in Android Keystore and exposes its public key and SHA-256 fingerprint to the development UI. This is a storage/API skeleton only: it is not post-quantum, does not authenticate another device, and is not yet bound to an account, signed prekey bundle, or selected PQXDH profile. Do not show it as proof that a call or peer is secure.
Before selecting a dependency, record:
- upstream project and exact version/commit
- license and maintenance status
- supported Android ABIs and API levels
- PQXDH version and exact ML-KEM parameter set
- wire-format compatibility and test vectors
- security audit history
- key storage and zeroization behavior
- interoperability test results
## Media
Use an RFC 9605-compatible SFrame implementation integrated at the WebRTC encoded-frame boundary. Confirm Android native API support and verify that every audio sender has independently authenticated key material. Do not reuse a symmetric group key as proof of sender identity.
## Key schedule
The final protocol document must define domain-separated derivation for call ID, transcript hash, direction, sender/device ID, epoch and SFrame context. It must define rotation, counter/nonce handling, replay windows, teardown and recovery. This scaffold intentionally contains no cryptographic implementation.
## Passwords
Use a vetted Argon2id implementation with calibrated parameters and per-user salts. Do not use passwords as encryption keys for call media.