Nyskra Knowledge / Cryptography

Post-Quantum Cryptography

Post-quantum cryptography protects long-term confidentiality against future quantum computers. Learn why 256-bit symmetric encryption remains strong, how hybrid KEMs work, and why passive and active quantum attackers require different protections.

Definition

Post-quantum cryptography is the design and use of cryptographic algorithms intended to remain secure against attacks by both conventional computers and sufficiently capable quantum computers, especially for public-key operations such as key establishment and digital signatures.

Also known as: PQC

On this page

Strong encryption is not about making information difficult to read for a few years. Ideally, private information should remain private for as long as its owner needs it to. That matters for personal records, messages, and shared data that may still be sensitive decades from now.

Post-quantum cryptography (PQC) addresses a specific challenge to that goal: future quantum computers may be able to break mathematical problems on which much of today’s public-key cryptography depends. Fortunately, this does not mean that every form of modern encryption will suddenly become ineffective.

The practical answer is to use the right cryptographic tools for different jobs: strong symmetric encryption for the information itself, and quantum-resistant methods for establishing and protecting the keys that make that information accessible to authorized people.

Why are quantum computers a concern?

Most applications use more than one kind of cryptography. Symmetric algorithms encrypt the actual data efficiently. Public-key algorithms help people or devices establish shared keys without first having a secret communication channel. Digital signatures help authenticate identities and messages.

A sufficiently capable, fault-tolerant quantum computer could run Shor’s algorithm to defeat widely used public-key systems based on integer factorization or discrete logarithms. This includes familiar constructions based on RSA and elliptic curves. Their security assumptions are fundamentally different from those protecting modern symmetric encryption.

The concern is not that ordinary quantum computers can do this today. It is that information protected today may still be valuable when much more capable quantum computers become available. Designing for long-term privacy means taking that possibility seriously before such machines exist.

Post-quantum cryptography uses mathematical problems for which no comparably effective quantum attack is currently known. These algorithms run on conventional computers and phones; they do not require quantum hardware.

Quantum-Resistant Cryptography

Definition

Quantum-resistant cryptography describes cryptographic algorithms and systems designed to withstand the best currently known attacks using quantum computers as well as classical computers. The term expresses a security goal, not a guarantee against every possible future discovery.

Also known as: Quantum-safe cryptography

Quantum-resistant and post-quantum are often used interchangeably, particularly when discussing public-key algorithms. The aim is to protect communication and authentication against adversaries equipped with quantum computers as well as conventional ones.

For example, the US National Institute of Standards and Technology (NIST) standardized ML-KEM for key establishment in FIPS 203. ML-KEM is based on the CRYSTALS-Kyber family and uses different mathematical assumptions from traditional elliptic-curve key exchange. NIST has also standardized post-quantum digital-signature schemes, addressing a separate part of the problem.

No cryptographic algorithm comes with a promise that future mathematics can never reveal an attack. Quantum-resistant means resistant to the best currently known classical and quantum attacks, under the algorithm’s stated assumptions and security parameters.

What about 256-bit symmetric encryption?

This is one of the most reassuring distinctions in modern cryptography: the quantum threat to traditional public-key cryptography is not the same as the threat to 256-bit symmetric encryption.

Symmetric algorithms such as AES-256 and XChaCha20-Poly1305 use secret keys to protect data. They do not rely on the mathematical problems that Shor’s algorithm attacks. Modern 256-bit symmetric encryption is therefore widely considered suitable for protecting information against foreseeable quantum-computing threats when the algorithm is implemented and used correctly.

A quantum algorithm called Grover’s algorithm can theoretically accelerate an exhaustive search for a symmetric key. In an idealized model, a search that would require work on the order of 2^256 classical trials could be reduced to roughly 2^128 quantum queries. That is still an astronomically large amount of work, and the real-world cost of building, operating, and error-correcting such a quantum computation makes the simple query count an incomplete picture.

There is no known practical quantum technique that turns a properly protected, randomly generated 256-bit symmetric key into something an attacker can simply calculate. NIST’s post-quantum guidance likewise regards strong symmetric encryption, including AES-256, as a sound long-term choice under current cryptanalytic knowledge.

This is also why key management matters. An encrypted document can use an excellent 256-bit cipher and still lose confidentiality if someone can later recover the key through a vulnerable key-establishment process. The strength of the cipher and the protection of its key must work together.

Harvest Now, Decrypt Later

Definition

Harvest now, decrypt later is an attack strategy in which an adversary records encrypted information or key-establishment messages today and preserves them in the hope of recovering the protected secrets with more capable technology, particularly future quantum computers.

Also known as: HNDL, Store now, decrypt later

The phrase harvest now, decrypt later describes an attack on information that needs to stay confidential for years or decades.

Imagine an adversary who cannot decrypt a private exchange today. They can nevertheless copy the encrypted traffic, store it, and retain any public-key messages involved in establishing the encryption keys. Later, a sufficiently capable quantum computer might let them break the traditional public-key step and recover the secret material needed to unlock the recorded data.

The attacker does not need to know when the necessary technology will arrive. Capturing ciphertext now is enough to create the possibility of retrospective decryption.

This is particularly relevant to healthcare records, family information, private conversations, and other personal data whose sensitivity does not disappear when a communication session ends.

There is a crucial nuance: recording 256-bit symmetrically encrypted content alone does not make its secret key vulnerable to Shor’s algorithm. The harvest-now, decrypt-later danger arises when a recorded protocol also contains key-establishment material that could later expose the keys protecting the content.

A quantum-resistant key-establishment mechanism is intended to close that route. If the symmetric content key stays protected, storing the encrypted content for decades does not by itself reveal what it contains.

How do post-quantum key encapsulation mechanisms help?

A key encapsulation mechanism (KEM) lets a sender and an intended recipient establish a shared secret through a public channel.

The recipient publishes an encapsulation key. The sender uses it to produce a shared secret and an encapsulation ciphertext. The recipient can recover the same shared secret using the corresponding private decapsulation key.

The encapsulation ciphertext may be stored or forwarded by an intermediary. It is not itself the secret: the server may inspect its bytes, but cannot derive the shared secret from it without the recipient’s private key, assuming the KEM’s security properties hold.

That shared secret can then be used with a key derivation function to create a symmetric wrapping key. The wrapping key protects the actual content-encryption key for delivery to the authorized recipient.

Consider a private record shared with another person:

  1. The record is encrypted with a freshly generated or otherwise properly managed symmetric data key.
  2. The sender authenticates the recipient’s public KEM key and establishes a shared secret through the KEM.
  3. A key derived from that shared secret encrypts an envelope containing the data key.
  4. The service forwards or stores the KEM encapsulation ciphertext, the encrypted key envelope, and the encrypted record.
  5. The authorized recipient uses their private KEM key to recover the shared secret, open the envelope, and obtain the symmetric data key needed to decrypt the record.

The service can store and synchronize all of these messages without being able to recover the content key or read the plaintext. The public KEM ciphertext is observable, but the encrypted key envelope and private data remain confidential.

When the KEM is post-quantum resistant, an attacker who records the exchange today is not expected to recover the shared secret merely by obtaining a sufficiently powerful quantum computer in the future. That also protects the wrapped symmetric data key and, in turn, the data encrypted under it.

This describes the cryptographic relationship, not a complete application protocol. Secure recipient authentication, correct key handling, and uncompromised endpoints remain necessary.

Hybrid Cryptography

Definition

Hybrid cryptography combines complementary cryptographic mechanisms. In the post-quantum context, a hybrid key-establishment scheme combines traditional and post-quantum mechanisms so that a properly designed combination can preserve confidentiality while at least one component remains secure.

Also known as: Hybrid post-quantum cryptography, Post-quantum/traditional hybrid cryptography

The word hybrid can describe two closely related but distinct ideas:

  • Hybrid encryption combines public-key cryptography for establishing or protecting a key with symmetric cryptography for encrypting the data. This is how many efficient encrypted communication systems work.
  • Hybrid post-quantum key establishment combines a traditional public-key mechanism with a post-quantum mechanism. A properly designed combination aims to retain confidentiality if at least one of its underlying mechanisms remains secure.

Both approaches can be present in the same system. A hybrid post-quantum KEM can establish a secret; that secret can protect a symmetric data key; and that symmetric key can encrypt the actual application data.

A concrete example is X-Wing, a hybrid KEM built from X25519 and ML-KEM-768. X25519 contributes a traditional elliptic-curve component, while ML-KEM-768 contributes a post-quantum component based on the standardized successor to CRYSTALS-Kyber. X-Wing combines their outputs to produce a shared secret.

X-Wing is described in an IETF Internet-Draft, rather than being itself one of the NIST FIPS algorithms. The ML-KEM component is standardized in NIST FIPS 203. The purpose of combining the mechanisms is to avoid relying exclusively on either the traditional or the post-quantum component for confidentiality.

Passive vs. active quantum attackers

Post-quantum security claims need an explicit attacker model. A system designed to protect recorded ciphertext against future quantum computers does not automatically resist an adversary who can manipulate messages and impersonate users with quantum capabilities.

A malicious server without a quantum computer may already be an active attacker: it can withhold messages, inject responses, or try to replace public keys. Secure systems must defend against such interference through authenticated identities, trusted key bindings, and other protocol checks.

A quantum-capable active attacker creates an additional challenge because traditional public-key signatures can themselves become vulnerable. A post-quantum KEM protects the confidentiality of its established secret, but does not authenticate who supplied the public key. X-Wing, for example, is not an authenticated KEM by itself.

These distinctions are especially important for collaborative applications. Protecting the secrecy of a group key is only part of the task. Members must also be confident that they are distributing that key to the intended people, not to an identity silently substituted by an attacker.

Post-quantum cryptography and Nyskra

Nyskra uses established cryptography to protect personal content within its Nyskra Zero architecture. All synchronized and selectively shared personal-data payloads are protected using XChaCha20-Poly1305, an authenticated encryption with associated data (AEAD) algorithm with 256-bit keys. Public-key techniques establish access to the secrets needed by authorized participants. These layers address different threats.

To protect the confidentiality of established key material against harvest-now, decrypt-later attacks, Nyskra uses the X-Wing hybrid key-encapsulation mechanism. X-Wing combines classical X25519 with post-quantum ML-KEM-768. An attacker defeating only the classical component in the future would not thereby defeat the post-quantum component, assuming the cryptographic construction and its implementation remain secure.

X-Wing provides key-establishment confidentiality, not identity authentication by itself. Nyskra separately uses classical Ed25519 digital signatures for authenticated identities. A future active attacker with sufficient quantum capabilities could threaten classical signatures even where a hybrid KEM still protects passive confidentiality. This distinction is essential to an accurate security claim.

Strong cryptography also depends on endpoint security and correct key handling. As quantum capabilities and cryptographic standards evolve, authentication and other protections will need periodic reassessment.

Nyskra currently combines hybrid post-quantum key establishment with classical identity authentication. Key Establishment explains how those mechanisms serve different security purposes.

Technical references

For readers who want to check the terminology and the cryptographic assumptions: