Which database and file encryption layers are affected by post-quantum cryptography
For most teams the layer that post-quantum work touches in database and file encryption is the public-key layer that wraps or exchanges data keys. The symmetric cipher that encrypts the stored bytes is not the main change flagged by NIST's sources. NIST SP 800-227, Recommendations for Key-Encapsulation Mechanisms, finalized on 18 September 2025, describes how a key-encapsulation mechanism lets two parties agree on a shared secret that then powers symmetric encryption, and NIST's post-quantum FAQ states that "current applications can continue to use AES with key sizes 128, 192, or 256 bits." The practical question for a data owner is therefore not whether the stored data cipher changes, but which public-key operation protects the data keys that unlock it.
The teams most affected are those with encrypted databases, file formats and key management systems that must keep protecting data for many years. Check three places. First, look at how your database and file tools handle public-key encryption: the PostgreSQL pgcrypto documentation, for example, describes OpenPGP support with RSA and DSA with Elgamal keys for public-key use and does not mention a post-quantum algorithm. Second, check your key management service, since AWS KMS and Google Cloud KMS now offer ML-KEM key types with different encapsulation behavior. Third, confirm how your file formats carry key material, such as CMS (RFC 9936, March 2026) or OpenPGP (RFC 9980, June 2026, which defines ML-KEM only in composite form with X25519 or X448).
Confirm the scope of each library and service before planning work, because support differs by product, version and mode. Ask your vendors whether their encryption at rest uses a public key to protect data keys, which algorithm and version they use, and whether it is hybrid. For long-retention data, the AWS KMS documentation notes that an adversary could record protected data now and attack it later, a pattern it calls harvest now, decrypt later. That concern is the reason to sequence this work by data lifetime, starting with the stores that must stay confidential for decades.
Where database and file encryption use public-key algorithms today
This table maps each layer of database and file encryption to whether it uses public-key cryptography today and whether post-quantum work touches it, with the source document for each row. Read the rows as a checklist: layers marked as public-key users are the ones that need a post-quantum plan, while symmetric-only layers mostly need key-management attention. The main takeaway is that the public-key part of most stacks sits in key wrapping, key exchange and recipient keys, not in the bulk cipher that encrypts the data itself.
| Layer | Uses public-key cryptography today | Post-quantum work touches it | Source document |
|---|---|---|---|
| pgcrypto PGP public-key mode | Yes, but only RSA, DSA and Elgamal keys are named for public-key use | Not named in the pgcrypto documentation, which mentions no post-quantum algorithm | PostgreSQL pgcrypto docs |
| pgcrypto PGP symmetric cipher | No, the session cipher is symmetric (default aes128) | Not a public-key question; review the cipher only against current guidance | PostgreSQL pgcrypto docs |
| MySQL TLS connections | Yes, for key exchange and authentication on the connection | Yes, post-quantum settings apply only to TLS 1.3 and need MySQL built with OpenSSL 3.5.0 or later | MySQL 26.7 manual 8.3.6 |
| MySQL stored data encryption | Not covered; the MySQL post-quantum section makes no statement about it | Nothing published in the sources listed here; confirm with the vendor | MySQL 26.7 manual 8.3.6 |
| KMS-backed key wrapping | Yes, where a KMS key pair or KEM key protects data keys | Yes, AWS KMS offers ML-KEM key specs; Google Cloud KMS supports KEM keys with encapsulation done by outside SDKs | AWS KMS post-quantum keys; Google Cloud KMS KEM docs |
| CMS enveloped data | Yes, when recipients are wrapped with public-key keys | Yes, RFC 9936 carries ML-KEM in the KEMRecipientInfo structure | RFC 9936 |
| OpenPGP file encryption | Yes, for public-key encrypted session keys | Yes, RFC 9980 defines ML-KEM only in composite form with X25519 or X448, so a classical ECDH part stays present | RFC 9980 |
| age recipients | Yes, for recipient keys | Yes, age v1.3.0 adds native post-quantum recipients using hybrid ML-KEM-768 | age v1.3.0 release |
What NIST and the IETF have published for encrypted data and key wrapping
Three NIST standards now define the post-quantum building blocks that data-at-rest systems can use. FIPS 203 specifies ML-KEM for key encapsulation, FIPS 204 specifies ML-DSA for digital signatures, and FIPS 205 specifies SLH-DSA, a hash-based signature scheme. For database and file encryption teams, FIPS 203 is the one that matters most, because wrapping a data encryption key under a recipient's public key is a key-encapsulation task. NIST SP 800-227, Recommendations for Key-Encapsulation Mechanisms, was finalized on 18 September 2025 and describes how a KEM lets two parties agree on a shared secret that can then protect symmetric encryption and authentication. Read it alongside your key management design, since it addresses how KEM outputs should be used, not only the algorithm itself. NIST IR 8547, Transition to Post-Quantum Cryptography Standards, is listed on NIST's site as Final, with the history entry 10/27/26, and it is the document to cite when you plan the deprecation and retirement timeline for quantum-vulnerable public-key algorithms.
On the IETF side, RFC 9936, published in March 2026, carries ML-KEM in the Cryptographic Message Syntax (CMS) through the KEMRecipientInfo structure from RFC 9629. CMS covers enveloped-data, authenticated-data and authenticated-enveloped-data, so teams running S/MIME or other CMS-based tooling should check whether their libraries can produce and parse KEMRecipientInfo before planning key rollover. RFC 9980, published in June 2026 as a Proposed Standard on the IETF Standards Track, defines ML-KEM for OpenPGP encryption only in composite form with X25519 or X448. That means a classical ECDH component is always present, so an OpenPGP recipient key using ML-KEM is a hybrid, not a pure post-quantum key. Confirm with your OpenPGP implementation which composite variants it supports and whether your archived keys need a new recipient key rather than a reconfiguration.
One point is often misread. NIST's post-quantum FAQ says that current applications can continue to use AES with key sizes 128, 192 or 256 bits. The quantum concern in this area is concentrated in public-key key exchange and wrapping, not in the symmetric cipher that encrypts the bulk of your data. Keep your existing AES configuration unless a specific standard or your own risk review says otherwise, and direct the new work at the wrapping layer. Before changing anything, confirm the current versions and status of each document with NIST and the IETF, since the dates above are the ones the sources list and later revisions may change details.
Which database, KMS and file encryption tools have shipped post-quantum support
Database engines differ mainly in whether post-quantum support covers the network connection or the stored data. The sources record post-quantum settings for MySQL only in TLS connections, and they show no post-quantum algorithm named for PostgreSQL's file-level encryption. The sources do not say whether either engine offers post-quantum protection for data stored on disk, so that question has to go to the vendor.
- MySQL TLS settings: The MySQL 9.7 manual section on post-quantum cryptography covers only TLS connections and says nothing about encrypting stored data.
- OpenSSL requirement: MySQL's post-quantum settings apply only to TLS 1.3 connections and require a MySQL build against OpenSSL 3.5.0 or later.
- PostgreSQL pgcrypto: The pgcrypto PGP functions implement OpenPGP and support symmetric and public-key encryption.
- Public-key algorithms in pgcrypto: The pgcrypto page names only RSA and DSA with Elgamal keys for public-key use and does not mention any post-quantum algorithm.
- Symmetric cipher default: In pgcrypto the PGP symmetric cipher is set with cipher-algo, which defaults to aes128.
Confirm with each engine's vendor or release notes whether any post-quantum option covers stored data, and do not infer it from TLS support.
Cloud key management services are where post-quantum key handling has been documented most specifically, but the sources describe different levels of support across providers. AWS KMS publishes ML-KEM key specifications and explains how the shared secret can derive symmetric keys. Google Cloud KMS supports KEM keys but does not perform encapsulation, so callers need an outside SDK for that step.
- AWS KMS key specs: AWS KMS creates ML-KEM keys with KeyUsage ENCAPSULATE_DECAPSULATE and specs ML_KEM_512, ML_KEM_768 or ML_KEM_1024.
- AWS shared secret: Both parties obtain a 32-byte shared secret, which AWS says can derive symmetric keys for encrypting data.
- AWS transport scope: AWS says protecting requests and responses exchanged with KMS itself requires post-quantum TLS, which is separate from the key specs.
- Google Cloud KMS KEM keys: Google supports creating KEM keys, returning public keys and decapsulating, and states that Cloud KMS does not provide encapsulation.
- Google encapsulation step: Encapsulation has to happen outside Cloud KMS in an SDK that uses the public key.
For each provider, ask which algorithms and key specifications are available in your region and version, and whether the transport to the service is also post-quantum.
File encryption tools and libraries show the most concrete shipped post-quantum support in the sources, and also the most variation between tools. Some tools add hybrid post-quantum recipients, while others only provide the underlying primitive. The sources also show that the OpenPGP and CMS standards for post-quantum encryption are at different stages.
- age v1.3.0: The age v1.3.0 release adds native post-quantum recipients based on HPKE with a hybrid ML-KEM-768 KEM.
- age identifiers: Post-quantum recipients use the prefix age1pq1, and identities use AGE-SECRET-KEY-PQ-1.
- OpenSSL 3.5.0: OpenSSL 3.5.0, released 8 April 2025, set its default TLS key shares to X25519MLKEM768 and X25519.
- OpenPGP standard: RFC 9980 was published in June 2026 as a Proposed Standard and defines ML-KEM for OpenPGP only in composite form with X25519 or X448.
- CMS standard: RFC 9936 (March 2026) carries ML-KEM in the CMS KEMRecipientInfo structure.
For any tool not named here, the sources do not record a post-quantum release, so check its changelog and confirm the exact version that carries the feature.
Where the public-key step sits in a database or file encryption flow
The flow starts with a client or application generating a data key, which encrypts the data with a symmetric cipher such as AES. That data key is then wrapped by a public key or KEM held by a KMS or by the file format, so the public-key step is the one post-quantum work touches. Check which hand-off in your stack performs the wrap, and whether it uses RSA or another classical key. The sources listed here do not flag the symmetric data step as changed, and NIST says current applications can continue to use AES with 128, 192 or 256-bit keys.
The public-key wrap is the layer post-quantum work touches; symmetric data encryption is not flagged as changed.
What changes in key size, compatibility and operations
Post-quantum support in encryption at rest arrives as new key types, recipient formats and KMS operations rather than as a simple algorithm swap. The cards below cover what changes in shared secrets, hybrid formats and classical components, and where support depends on the provider or library you use.
A 32-byte shared secret from ML-KEM
AWS KMS creates ML-KEM keys with the ENCAPSULATE_DECAPSULATE key usage and the key specs ML_KEM_512, ML_KEM_768 and ML_KEM_1024. Both parties obtain the same 32-byte shared secret, which can be used to derive a symmetric key for encrypting data. Your application still has to run a key derivation step and manage the resulting data key, so the KMS operation does not encrypt the data for you. Confirm which key spec you chose and how your code derives the symmetric key from the secret.
AWS KMS post-quantum keysML-KEM-768 hybrid recipients in age
The age v1.3.0 release adds native post-quantum recipients based on HPKE with a hybrid ML-KEM-768 KEM. Recipients carry the age1pq1 prefix and identities carry the AGE-SECRET-KEY-PQ-1 prefix. Files encrypted to these recipients cannot be opened by tools that predate v1.3.0, so check every reader in your environment before you switch recipients. Confirm the exact version that your backup or file workflow runs.
age v1.3.0 releaseClassical component always present in OpenPGP
RFC 9980 defines ML-KEM for OpenPGP encryption only in composite form with X25519 or X448, so a classical ECDH component is always included. This means a post-quantum OpenPGP key does not drop the classical algorithm, and the ciphertext carries both components. Plan for larger keys and messages than a classical OpenPGP key, and confirm with your OpenPGP implementation which composite combinations it supports.
RFC 9980No encapsulation inside Google Cloud KMS
Google Cloud KMS supports creating KEM keys, returning their public keys and decapsulating. It does not perform encapsulation: the Cloud KMS documentation states that Cloud KMS doesn't provide encapsulation capabilities. Your application must therefore use an outside SDK that takes the public key and performs encapsulation locally, then sends the ciphertext to Cloud KMS for decapsulation. Check that the SDK you choose is maintained and matches the KEM algorithm your key uses.
Google Cloud KMS KEM docsSymmetric data keys remain unchanged
NIST's post-quantum FAQ states that current applications can continue to use AES with key sizes 128, 192 or 256 bits. The post-quantum change in data-at-rest sits in the public-key layer that wraps or exchanges the data key, not in the AES data encryption itself. Review which keys in your design are public-key wrapped and which are symmetric only, so effort goes to the wrapping layer.
NIST PQC FAQWhat to do now: inventory, test and ask vendors
This sequence gives you a dated, vendor-confirmed list of where your databases and file tools use public-key cryptography, which of those components can take post-quantum key types, and what each vendor has published. The result is a plan you can act on, starting with the data that must stay protected the longest.
Inventory every public key and wrapped data key
Start by listing every place a database or file tool holds a public key or wraps a data key. Include PostgreSQL pgcrypto PGP usage, MySQL connection settings, file encryption tools such as age, and any key management service (KMS) that wraps the data keys your applications use. Record the owning team, the component name, the version in production and where each key lives. The step is done when every database and file tool in scope appears in the list with a confirmed owner and version, and any symmetric-only use is marked separately so it is not confused with public-key use.
Test which libraries and KMS services offer post-quantum keys
For each component in the inventory, check the vendor documentation to see whether it offers post-quantum key types and at which version. Note, for example, that the pgcrypto documentation lists only RSA and DSA with Elgamal keys for public-key use, while AWS KMS documents ML-KEM key creation and Google Cloud KMS documents KEM keys. Test in a non-production environment that the key type creates, encapsulates and decapsulates as the documentation says. The step is done when each component has a recorded yes, no or unconfirmed answer, tied to a specific version and the page or release note that supports it.
Ask each vendor what it has published and when
Send each database, file tool and KMS vendor a written question asking which post-quantum algorithms it supports for stored data and key wrapping, which versions include them, and the publication date of each statement. Ask separately whether protection covers only TLS connections or also stored data, because some vendor material, such as MySQL's post-quantum settings, covers TLS only. Ask for the standard each implementation follows. The step is done when every vendor has answered in writing, and each answer is filed with its date and version, or with a note that nothing has been published.
Check standards status for each encryption format
Compare each encryption format in use against the standards status shown in the sources. NIST's FIPS 203 defines ML-KEM, and the NIST SP 800-227 recommendations on key-encapsulation mechanisms were finalized on 18 September 2025. RFC 9936 carries ML-KEM in CMS structures, and RFC 9980, a Proposed Standard published in June 2026, defines ML-KEM for OpenPGP only in composite form with X25519 or X448. Record for each format whether a standard exists, its status and whether the version you run follows it. The step is done when every format in the inventory has a recorded standards status with its source.
Plan the change for long-lived data first
Order the migration work by how long the protected data must stay confidential. AWS's KMS documentation describes a harvest-now, decrypt-later risk that is particularly relevant to data that must remain secure for many years, so databases and files holding long-retention records should come first. Mark any system that cannot change its key types, such as one whose vendor has published nothing, and treat it as a separate risk to record. The step is done when the inventory is sorted by retention period, with a named owner and a recorded reason for each priority decision.
Record decisions and review them when vendors update
Write each decision down, including the component, its version, the vendor's answer, the standards status, the priority assigned and the person who approved it. Keep the vendor answers with their dates, because published status changes over time. Set a review point in each component's owner calendar so that new vendor releases are checked against the record. The step is done when there is a single decision log that a security reviewer or auditor can read, and each entry links to the vendor answer or standard it depends on.
Which risks the sources name and how to notice them
The sources frame the main exposure as data that must stay confidential for many years, because an adversary can record protected data now and attack it later. The cards below separate what that risk means for stored data from the items that need separate work: the public-key layers in the database or file format, and the TLS connections that carry requests to the key service.
Harvest now, decrypt later
AWS describes an adversary who records protected data today and attacks it once quantum computers exist, which it calls harvest now, decrypt later. The risk is greatest for data that must remain secure for many years, such as archives, backups and records under retention. To notice it, list the datasets whose confidentiality period is longer than your expected migration window, and check how long each copy of that data stays readable in storage, backups and replicas.
AWS KMS docsPublic-key layers in the format
Some encrypted formats wrap their data key with public-key cryptography. PostgreSQL's pgcrypto documents public-key use with RSA and DSA with Elgamal keys and does not mention a post-quantum algorithm. Check each database, file format and key wrapper for a public-key step, and record which algorithm it uses. Where a format only offers classical public keys, a post-quantum option has to be added or the format replaced.
pgcrypto docsSymmetric data encryption
Symmetric ciphers protect the bulk of stored data. pgcrypto's PGP functions default to aes128 and list aes256 among their options, and NIST states that current applications can continue to use AES with 128, 192 or 256-bit keys. Confirm which cipher and key size each store uses, and treat this layer as a separate question from the public-key wrapping around it.
NIST PQC FAQTLS to the key service
AWS KMS states that post-quantum KMS keys protect the data and signatures they are used for, and that protecting the requests and responses exchanged with KMS itself requires post-quantum TLS. These are two separate controls. A post-quantum key does not protect the connection to the key service, so check the TLS settings of every client, SDK and proxy that calls the key service.
AWS KMS docsDatabase connection encryption
MySQL's post-quantum settings apply only to TLS 1.3 connections and require a build with OpenSSL 3.5.0 or later. The MySQL manual makes no statement about encrypting stored data. Connection protection and stored-data protection are separate, so check your MySQL build and TLS settings separately from how the data is encrypted at rest.
MySQL manual 8.3.6What the standards have not yet settled for stored data
The sources listed on this page do not give a standardized post-quantum option for the data-at-rest features most teams use. The PostgreSQL pgcrypto documentation describes OpenPGP (RFC 4880) for symmetric and public-key encryption, but its public-key support names only RSA and DSA with Elgamal keys, and its symmetric cipher setting (cipher-algo, default aes128) involves no post-quantum choice. Database owners should not assume that an upgrade to a newer PostgreSQL release adds one. Confirm with the PostgreSQL project and your distribution's packages what is available in the version you run before planning any change to key handling in pgcrypto.
MySQL has a similar gap. The MySQL 9.7 Reference Manual's post-quantum section (8.3.6) covers TLS connections only and says nothing about encrypting stored data. Its settings apply to TLS 1.3 connections and require a build against OpenSSL 3.5.0 or later. That protects the connection between client and server, not the data written to disk or the keys that protect it at rest. If your MySQL estate relies on keyring or tablespace encryption, treat stored-data encryption as an open item and check the MySQL documentation and your vendor's roadmap for the release you plan to run.
The composite approach shows where the standards stand. RFC 9980 defines ML-KEM for OpenPGP encryption only in composite form with X25519 or X448, so a classical ECDH component is always present. That is a deliberate hedge, but it also means a post-quantum OpenPGP deployment is not a pure post-quantum one, and readers should not treat it as a finished replacement for classical key agreement. Ask each library or product whether it implements RFC 9980, which composite it uses, and how it behaves when a recipient lacks support. Confirm the state of each vendor's roadmap directly with the vendor rather than inferring it from the standard.
Common questions about post-quantum database and file encryption
What does post-quantum database and file encryption cover?
It covers the parts of data-at-rest protection that use public-key cryptography, such as key wrapping, recipient keys and key encapsulation. Symmetric ciphers like AES hold the bulk of the encrypted data, and the public-key layers around them are what need post-quantum review. In practice this means checking how data keys are protected, which recipient or wrapping keys a database, file format or key management service uses, and whether the software you run can produce post-quantum key material at all. Start with an inventory of where public-key operations appear in your stack, then decide which layers need change.
Does AES encryption at rest need to change for post-quantum?
NIST's post-quantum FAQ says current applications can continue to use AES with key sizes 128, 192, or 256 bits. The quantum concern in this area sits mainly in the public-key layers that wrap or exchange keys, not in the symmetric cipher that encrypts the data itself. Confirm the key size your database or file tool uses, since pgcrypto's PGP cipher-algo option defaults to aes128 and also offers aes192 and aes256. Keep the key size settings in your inventory, and focus migration effort on key wrapping and recipient keys.
Is TLS to the database the same as encryption at rest?
No. TLS protects data in transit between a client and the database server, while encryption at rest protects stored data on disk, in backups or in files. The two use different mechanisms and need separate checks. For example, MySQL's post-quantum settings in its manual apply only to TLS 1.3 connections and require a build with OpenSSL 3.5.0 or later, and the manual makes no statement about encrypting stored data. Check your database's TLS version and library build for transport, and separately check its at-rest encryption design and key handling.
Can a KMS key protect data directly?
A KMS key usually protects data indirectly, by wrapping or encapsulating a data key that then encrypts the data. AWS KMS creates ML-KEM keys with ENCAPSULATE_DECAPSULATE usage in the ML_KEM_512, ML_KEM_768 or ML_KEM_1024 specs, and says the 32-byte shared secret both parties obtain can derive symmetric keys for encrypting data. Google Cloud KMS supports KEM keys but states that Cloud KMS doesn't provide encapsulation capabilities, so encapsulation needs an outside SDK that uses the public key. Confirm with your provider which operations run inside the KMS and which run in client code.
What should I ask a database or file encryption vendor?
Ask which public-key algorithms and key-wrapping mechanisms the product uses for data at rest, and whether it can use post-quantum options such as ML-KEM. Ask which version and build provides them, and whether the setting is per key, per table or per file. Ask whether the product supports encrypted file formats built on post-quantum recipients and what happens to existing encrypted data when keys are rotated. Request the vendor's dated documentation for each answer, and ask for a test environment where you can confirm the behavior before production use.
Which file encryption formats offer post-quantum recipients today?
Some formats have published post-quantum specifications, and others are still in progress. RFC 9936 (March 2026) carries ML-KEM in the CMS KEMRecipientInfo structure for enveloped-data, authenticated-data and authenticated-enveloped-data. RFC 9980, published June 2026 as a Proposed Standard, defines ML-KEM for OpenPGP only in composite form with X25519 or X448, so a classical ECDH component is always present. The age v1.3.0 release added native post-quantum recipients based on HPKE with a hybrid ML-KEM-768 KEM. Check each tool's release notes and confirm which version supports the format you use.
Should I handle database and file encryption changes in-house or with outside help?
Your team can handle the inventory and the vendor questions in-house if it has staff who understand key hierarchies and database configuration. Outside help is often useful for the migration itself, such as rewrapping keys, testing client-side encryption and checking that backups and restores still work. DeployOpen plans and implements self-hosted platforms in the client's infrastructure, and runs security testing and compliance readiness work, but it does not issue audit reports or certifications. Cost depends on the number of databases, file stores and key systems in scope, and a quote follows from a written scope that lists them.
How DeployOpen helps plan and check database and file encryption changes
DeployOpen starts by mapping which encryption layers in your databases and file tools use public-key cryptography and which rely only on symmetric keys. We then plan, build and test the changes in your own infrastructure, so your security and compliance teams can review each step.
How we scope
- We inventory the databases, file encryption tools and key management services in scope, noting which use public-key wrapping and which use symmetric keys only.
- Engagements are fixed-scope, with the systems, deliverables and timelines for database and file encryption agreed in writing before work starts.
- We confirm which library, driver and KMS versions you run, since post-quantum support differs by version and must be checked per deployment.
How we build
- We test candidate post-quantum key wrapping in a staging copy of your database or file tooling before any change touches production data.
- We configure key hierarchies, client-side encryption and database connections in your own cloud accounts, data centers or air-gapped networks.
- We check each change against the standards and vendor documentation you choose to follow, and record any compatibility gaps we find.
How we hand over
- You receive documentation of the inventory, configuration changes, test results and rollback steps for each database and file encryption system.
- We provide evidence packs your auditors and compliance teams can review, though independent auditors and certification bodies issue any formal attestation.
- Your own staff are walked through the key rotation and rewrapping procedures so the changes can be operated after the engagement ends.
How we support
- Ongoing support, upgrades and continuous testing are available as a retainer for databases and file tools as libraries and standards change.
- We can retest encryption configurations after library upgrades, driver changes or key management service updates to confirm nothing has regressed.
- Support covers questions from engineering and compliance teams as the standards bodies and vendors publish further guidance on these systems.

