Signal Protocol in BlackVoice Technologies: X3DH Key Agreement and Double Ratchet Explained
By BlackVoice Technologies · cybersecurity
BlackVoice Technologies implements the full Signal Protocol with X3DH key agreement and Double Ratchet for Perfect Forward Secrecy — enhanced with post-quantum ML-KEM-768 signatures and ProTork™ zero-knowledge sender identity.
## What Is the Signal Protocol? The Signal Protocol is the gold standard for encrypted messaging, used in apps trusted by billions worldwide. BlackVoice Technologies implements the full Signal Protocol for private chat, giving you the same cryptographic foundation used by leading secure messaging apps — enhanced with post-quantum protections. ### Phase 1: X3DH Key Agreement Extended Triple Diffie-Hellman (X3DH) establishes a shared secret between two parties who have never met, using pre-uploaded public keys. #### The Key Types | Key Type | Purpose | Quantity | |----------|---------|----------| | Identity Key (IK) | Long-term identity | 1 per user | | Signed PreKey (SPK) | Medium-term rotation | 1 per user | | One-Time PreKey (OPK) | Single-use | Up to 100 per user | | Ephemeral Key (EK) | Per-session | 1 per conversation initiation | #### How X3DH Works When Alice wants to message Bob for the first time: 1. Alice fetches Bob's public keys from the server 2. Alice generates an ephemeral key pair (EK) 3. Four Diffie-Hellman operations are computed: DH(IK_A, SPK_B), DH(EK_A, IK_B), DH(EK_A, SPK_B), DH(EK_A, OPK_B) 4. These four values are combined via HKDF to derive the Master Secret 5. The Master Secret initializes the Double Ratchet Bob's private keys never leave his device. Alice never learns Bob's private keys. The Master Secret is derived without either party transmitting it. ### Phase 2: Double Ratchet Algorithm Once X3DH establishes the initial shared secret, the Double Ratchet takes over for all subsequent messages. #### Two Ratchets **Symmetric-key Ratchet (KDF Chain):** Derives a new message key for each message. Old keys are deleted immediately after use — this is Perfect Forward Secrecy at the message level. **Diffie-Hellman Ratchet:** Periodically introduces new DH key pairs. Even if an attacker captures current keys, they cannot decrypt past messages, and future messages become secure again as soon as the DH ratchet advances. #### Result Message 1 → Key_1 (deleted immediately after use) Message 2 → Key_2 (independent of Key_1) Message 3 → Key_3 (independent of Key_1 and Key_2) ... Compromising one message's key gives an attacker exactly one message. Not more. ### BlackVoice Enhancements **Post-quantum layer**: Every user receives an ML-KEM-768 key pair automatically at login. Pre-keys are signed with both ECDSA and ML-DSA-65 (NIST FIPS 204 — dual signing prevents quantum key substitution attacks). **ProTork™**: The sender's identity is cryptographically sealed inside the encrypted envelope. The server cannot determine who sent any message. **Key retention**: X3DH sessions are cleaned up after 30 days post-completion, or 90 days absolute. Used one-time pre-keys are deleted immediately and cannot be reused.
← Back to Blog