Keyboard shortcuts

Press ← or → to navigate between chapters

Press ? to show this help

Press Esc to hide this help

The Roles of Keys, Encryption, and Signatures

When choosing cryptographic technology, decide who should be able to read the data and how to verify who created it. For example, only the recipient needs to read an order’s delivery address. Anyone may read a published price list, but you may still want to verify who issued it.

GoalWhat is obtained from the inputQuantAegis example
Share key material with a remote partyThe sender uses the recipient’s public key to generate a KEM ciphertext and a shared secret. The recipient derives the same secret from the private key and KEM ciphertext.ML-KEM, X-Wing
Hide a message and detect changesEncrypt the message with a shared key and nonce; the recipient checks the authentication tag before decrypting.AEAD in Envelope
Verify the issuer of public dataSign the message with a signing key; a verifier checks the public key, message, and signature together.ML-DSA, SLH-DSA, composite signatures
Compute a short identifier for dataAnyone can compute the same digest from the same input.SHA-3

When sending an envelope, the sender creates a shared secret with a KEM (key encapsulation mechanism), and the SDK derives an AEAD (authenticated encryption with associated data) key and nonce from it. The sender transmits the KEM ciphertext, encrypted message, and information needed for authentication. The recipient recovers the key material with the private key, checks associated data such as an order number, and opens the message.

Post-quantum cryptography is designed with attacks by large-scale quantum computers in mind. QuantAegis ML-KEM and ML-DSA are based on lattice problems; SLH-DSA is based on the security of hash functions. Users can generate keys and encrypt or sign data on ordinary computers.