Is AES-256 enough for encrypted data? Quantum risk at rest

NIST says AES-256 will still be safe for a very long time against quantum attacks, so stored data is mainly affected through the public-key parts that protect its keys.

On this page

Does AES-256 still protect encrypted data against quantum computers?

Teams that keep encrypted databases, backups and files for years need to know whether the symmetric cipher protecting that data will hold. NIST's post-quantum FAQ says AES-256 will still be safe for a very long time, and that it is "quite likely that Grover's algorithm will provide little or no advantage in attacking AES." Grover's algorithm does give a quantum computer a quadratic reduction in brute-force key search, but NIST notes that the full speedup requires running all steps in series, which reduces its value against parallel attacks. NIST also says AES 128 will remain secure for decades to come and that current applications can continue to use AES with 128, 192 or 256-bit keys. For stored data, the symmetric cipher itself is therefore not where most post-quantum work is expected to fall.

The exposure sits in the public-key parts of the stack. Where a database, backup tool or file format wraps its data keys with RSA or elliptic-curve algorithms, or uses them in a key exchange, a quantum computer running Shor's algorithm could recover the private keys and expose everything wrapped under them. AWS's KMS documentation describes this "harvest now, decrypt later" pattern and notes that it matters most for data that must remain secure for many years. NIST IR 8547 places the transition on exactly these parts, describing a move from quantum-vulnerable algorithms to post-quantum signature and key-establishment schemes. Teams should therefore inventory where their stored data's key wrapping and key exchange use public-key algorithms, and treat those components as the priority.

Two checks follow. First, confirm the symmetric key size your tools use: the pgcrypto documentation lists aes128 as the default PGP cipher with aes256 as an available value, so the setting is worth reviewing rather than assuming. Second, confirm whether a tool's post-quantum support covers stored data or only connections. The MySQL manual's post-quantum section covers only TLS connections, which protects data in transit to the database and says nothing about data at rest. Ask each vendor or project which component changes, and whether the key wrapping that protects your stored data is covered.

Which parts of encrypted storage use public-key cryptography today

This table maps each layer of data-at-rest protection to whether it relies on public-key cryptography and whether post-quantum work touches it. Read it to see where effort belongs: key establishment and key wrapping, not the symmetric data encryption itself. The main takeaway is that the public-key parts are where the sources place the migration work.

LayerRole in stored dataPost-quantum work touches it?
Symmetric data encryption (AES)Encrypts the stored data itself with a symmetric key. NIST says AES-128 will remain secure for decades and AES-192 and AES-256 will still be safe for a very long time.No. NIST says Grover's algorithm will likely give little or no advantage against AES.
Key wrapping (AES Key Wrap)Protects data keys using a symmetric key-encryption key. RFC 9936 notes AES-256 is typically used in place of AES-192 for AES Key Wrap.Yes, in the sense that RFC 9936 requires AES-Wrap-256 support alongside ML-KEM-768 and ML-KEM-1024.
Public-key key establishment or wrappingLets two parties agree on a shared secret or wrap a data key to a recipient's public key. NIST SP 800-227 describes a KEM for this role.Yes. NIST IR 8547 places the transition on public-key signature and key-establishment schemes.
Database TLS connectionsProtects data in transit between an application and the database, not the stored data.Yes, for the connection. The MySQL manual's post-quantum section covers only TLS connections and says nothing about stored data.
PGP cipher setting (pgcrypto)The pgcrypto documentation lists aes128 as the default PGP cipher-algo and aes256 as an available value, so key size is a setting to check.Not stated by the sources. Confirm how the PGP keys in use are wrapped before assuming coverage.

Why Grover's algorithm does little to AES key sizes

For stored data, the first question is whether a quantum computer threatens the symmetric cipher itself. NIST's post-quantum FAQ says it is quite likely that Grover's algorithm will provide little or no advantage in attacking AES. Grover's algorithm can search for a key in quadratically fewer steps than brute force, but that speedup assumes the steps run one after another. Because the attack gains much less when it must run in parallel, NIST's view is that the effect on AES key sizes is small. Teams that encrypt data with AES today do not need to replace the cipher on account of Grover's algorithm alone.

NIST's FAQ gives concrete guidance on key sizes. It says that AES 128 will remain secure for decades to come, and that AES 192 and AES 256 "will still be safe for a very long time." It also states that current applications can continue to use AES with key sizes of 128, 192, or 256 bits. The same FAQ says anything with less than 112 bits of classical security should not be used. When reviewing a data store, check which key length the cipher is configured with, since some tools default to the smaller option. For example, the pgcrypto documentation lists aes128 as the default PGP cipher, while aes256 is available as a setting that must be chosen deliberately.

NIST also says it will issue guidance on symmetric transitions when a need becomes foreseeable, so no symmetric replacement is scheduled at this point. The work that NIST's transition documents describe, including NIST IR 8547, concerns public-key algorithms for signatures and key establishment. For data at rest, the practical focus is therefore how data keys are wrapped and exchanged, not the bulk cipher. Confirm the AES key length your systems use, and keep track of NIST's future symmetric guidance so that any change is planned against an announced need.

Which libraries and services have shipped post-quantum key support for stored data

Cloud key management services are where many organizations first meet post-quantum keys for data at rest. Both Google Cloud KMS and AWS KMS offer ML-KEM keys, and each service's documentation describes the output of a key encapsulation as a 32-byte shared secret. That shared secret is meant to serve as input for deriving symmetric keys, so the post-quantum part sits in establishing the key, while the data itself is still encrypted with symmetric algorithms. The services differ in what they expose, so the details should be confirmed in each one's documentation.

  • Google Cloud KMS: the key encapsulation mechanism documentation describes ML-KEM keys that produce a 32-byte shared secret for use as symmetric key input.
  • AWS KMS: the post-quantum keys documentation describes ML-KEM keys with the same 32-byte shared secret output, and says Shor's algorithm on a large fault-tolerant quantum computer could recover RSA and ECC private keys.
  • Scope of the key: confirm which key types, regions and API operations support ML-KEM in your account, since availability can differ from the general service.
  • Key derivation: check how your application or envelope encryption scheme turns the shared secret into a data key, because the service documents the secret, not your wrapping design.
  • Symmetric data keys: the data encryption itself uses symmetric keys, so the review focuses on how those keys are wrapped and exchanged.

Check the service documentation for the exact key types and regions in your account before planning any change.

What changes for key wrapping and key exchange in practice

For data at rest, the public-key parts of the design carry the post-quantum exposure, while the symmetric cipher usually does not. The cards below cover the places where that split shows up in real deployments: the shared secret that feeds wrapping, the wrap algorithm that must match the ML-KEM level, a database setting to check, and the limits of MySQL's current post-quantum support. Each one is a check to run against the systems you actually operate.

The 32-byte shared secret feeds symmetric keys

An ML-KEM key exchange produces a 32-byte shared secret. Google Cloud KMS and AWS KMS both describe that secret as input for deriving symmetric keys, so the post-quantum step does not encrypt the data itself. It establishes the key material that your data-encryption and key-wrapping steps then use. When you review a design, trace where the shared secret goes after the exchange, which key-derivation function turns it into a usable key, and which component stores or discards it. NIST SP 800-227 describes a KEM this way: two parties agree on a shared secret over an insecure channel, and that secret then powers symmetric encryption and authentication. Confirm with your KMS provider exactly how the 32 bytes are consumed in your configuration.

Google Cloud KMS KEM docs

Confirm AES-256 for key wrapping

RFC 9936 notes that AES-256 is typically used in place of AES-192 for AES Key Wrap, and requires AES-Wrap-256 support alongside ML-KEM-768 and ML-KEM-1024. In practice, check that the wrap step in your stack is set to a 256-bit key and not a 192-bit one, and that the library or HSM actually exposes AES-Wrap-256 for the ML-KEM level you chose. A wrap configuration that quietly falls back to AES-192 is the kind of mismatch to find during review. The sources here do not state how other wrap-and-KEM pairs behave, so do not assume compatibility beyond what RFC 9936 names. Verify the pairing against the version of your library that you deploy.

RFC 9936

Check the pgcrypto key size setting

The PostgreSQL pgcrypto documentation lists aes128 as the default cipher algorithm for PGP encryption, with aes256 as an available value. That default is a setting to change on purpose, not one to inherit. Review every call to the PGP encryption functions in your schemas, migrations and application code, and confirm which cipher-algo is passed in. Where data must remain protected for many years, a deliberate 256-bit choice is easier to defend in an audit than a default you never looked at. NIST's FAQ states that AES 128 will remain secure for decades to come, so the reason to move to aes256 is not an immediate break. It is a deliberate, documented setting that matches your retention requirement.

PostgreSQL pgcrypto docs

MySQL post-quantum support covers TLS only

The MySQL manual's post-quantum section covers only TLS connections. That protects data in transit between a client and the server, and it says nothing about how data is stored on disk, in backups or in tablespaces. A TLS upgrade therefore does not change the protection of stored records, which keep whatever key management and cipher configuration they already have. Treat the two as separate work items. Confirm which MySQL version and TLS library your servers and clients use, and inventory stored-data encryption as its own item, since the MySQL section does not address it.

MySQL 26.7 manual 8.3.6

What to do now for encrypted data at rest

This sequence sorts stored data into the parts that depend on public-key cryptography and the parts that rely on AES alone. It ends with the vendor questions and dated decisions that show whether post-quantum protection covers data at rest.

  1. Inventory where public-key algorithms touch data

    Work through each database, backup tool, file encryption tool and key management service your organization runs, and record where a public-key algorithm wraps or establishes a data encryption key. Include RSA and elliptic curve key wrapping, key agreement used to derive keys, and any envelope encryption that calls a KMS. Mark the components that use only symmetric keys with no public-key step. This step is done when every data store has an entry that states either its public-key dependency or that it has none, with the owner named for each entry.

  2. Check AES key sizes in each setting

    For each tool and database setting in the inventory, confirm the AES key size in use, such as aes128 or aes256. NIST's FAQ says AES-128, AES-192 and AES-256 remain secure for a long time, and current applications can continue to use AES with key sizes 128, 192 or 256 bits. Where a product offers a choice, record which value is set and whether the default is the one you intend. For example, pgcrypto lists aes128 as the default PGP cipher with aes256 available, so a default may need an explicit change. This step is done when each setting is recorded with its current value and the owner has confirmed it.

  3. Confirm post-quantum options in your KMS

    Ask your key management service which post-quantum key types it offers, and whether those keys use ML-KEM. Confirm the shared-secret size each option returns. Google Cloud KMS and AWS KMS ML-KEM keys both yield a 32-byte shared secret, which each service's documentation describes as input for symmetric keys. Check the current service documentation for the exact key types and regions available to your account, since offerings change. This step is done when you have written the post-quantum key types available to you, their shared-secret sizes, and the document where you found each one.

  4. Test AES-Wrap-256 key wrapping where it applies

    Where RFC 9936 applies to your wrapping design, test AES Key Wrap with AES-Wrap-256 in a non-production environment. RFC 9936 notes that AES-256 is typically used in place of AES-192 for AES Key Wrap and requires AES-Wrap-256 support with ML-KEM-768 and ML-KEM-1024. Confirm that each library in the test path supports these modes and that wrapped keys unwrap correctly on the other side. Keep the test results with the library versions you tested. This step is done when a documented test shows wrapping and unwrapping succeed with the parameter sets your design uses.

  5. Ask vendors whether post-quantum covers stored data

    Send each database, backup and file encryption vendor a written question asking whether its post-quantum support applies to stored data, to data in transit, or to both. The MySQL manual's post-quantum section covers only TLS connections to the database, so transport support does not by itself protect data at rest. Ask for the version, the component and the configuration that covers stored data, and ask for the vendor's documented timeline for any missing support. Retain each written answer. This step is done when every vendor has answered in writing and each answer is filed with its date.

  6. Record decisions and their dates

    Write a short decision record for each data store that states its public-key dependency, its AES key size, the KMS option chosen, the wrapping mode tested, and the vendor answer on stored data. Date every entry and name the owner who approved it. Review the record when a vendor releases a version that changes the answer, and when NIST or the IETF publishes a relevant document. This step is done when each data store has a dated decision record that a security reviewer can check against the inventory.

Where the public-key step sits in an encrypted database write

The write starts in the application, which asks a key-management service for a fresh data key, then encrypts the row or file with AES-256. The data key is then wrapped by a key-encapsulation or key-wrap step that the KMS performs, and the wrapped key is stored beside the ciphertext. The sources list nothing about quantum change for the AES-256 data encryption step, while the wrapping and key-establishment step is where post-quantum work applies. When you review your setup, check which component performs the wrap and whether it supports ML-KEM.

The AES-256 data step is separate from the key-wrapping step that needs post-quantum review.

Which risks the sources name for stored data and how to notice them

The sources separate the symmetric parts of encrypted storage, which they say remain usable, from the public-key parts that protect the keys, which they say must move. The four risks below are where teams most often misjudge that split, and each one can be spotted in an inventory of how data is encrypted and where its keys are wrapped.

Harvest now, decrypt later

AWS KMS describes an adversary who records protected data today and attacks it once a large fault-tolerant quantum computer exists, a strategy it calls harvest now, decrypt later. The concern is greatest for data that must remain secure for many years. AWS also states that no such quantum computer exists today. In an inventory, flag any stored dataset with a confidentiality lifetime longer than the expected migration window, and record which public-key operation protects its keys.

AWS KMS post-quantum keys

Assuming AES itself needs replacing

NIST's FAQ says AES 128 will remain secure for decades and that AES 192 and AES 256 will still be safe for a very long time, and it expects Grover's algorithm to give little or no advantage against AES. Replacing AES is therefore not what the sources call for. In an inventory, confirm each stored item uses AES at 128, 192 or 256 bits, and check that no configuration falls below 112 bits of classical security, which NIST says should not be used.

NIST PQC FAQ

False coverage from TLS-only settings

The MySQL manual's post-quantum section covers only TLS connections, which protect data in transit to the database and say nothing about data at rest. A database that negotiates a post-quantum TLS group can still hold stored data protected only by classical keys. In an inventory, record transport and storage encryption as separate rows, and do not mark a database as covered until the storage layer and its key wrapping are also reviewed.

MySQL TLS manual

Wrapped keys left on classical algorithms

The public-key step that wraps data keys is the part the sources say must move. NIST IR 8547 describes the transition from quantum-vulnerable algorithms to post-quantum signature and key-establishment schemes. Where a data key is wrapped under an RSA or ECC key, recovering that private key would expose the data key and so the data. In an inventory, list every key-encryption key, record its algorithm, and mark any still classical as an item to replace.

NIST IR 8547

Key size left at a default

The pgcrypto documentation lists aes128 as the default PGP cipher algorithm, with aes256 available as an option. Defaults can differ from the strongest setting a team intends, and a default set years ago may still apply to older files. In an inventory, read the cipher setting for each encrypted format or database function in use, rather than assuming the largest key size, and confirm the value on the version you run.

PostgreSQL pgcrypto docs

What the standards have not yet settled for symmetric encryption at rest

The standards bodies have not yet settled what, if anything, must change for symmetric encryption at rest. NIST's post-quantum FAQ says that current applications can continue to use AES with key sizes 128, 192, or 256 bits, and it does not list a replacement for AES in its published material. It also states that it will issue guidance on symmetric transitions when a need becomes foreseeable. For teams that store data under AES today, that means no symmetric algorithm has been named as a successor, and no date has been set for one. The practical consequence is that a decision about symmetric primitives can wait for NIST's guidance, while work on key exchange and key wrapping should not. Confirm this status against the FAQ on the day you plan any change.

Timing is also unsettled. AWS KMS says that a large fault-tolerant quantum computer could let an adversary recover RSA and ECC private keys, and it states that no such quantum computer exists today. That phrasing is useful for planning because it separates the threat to public-key material from any claim about when a capable machine will arrive. Vendors and standards bodies do not agree on a date in the sources listed here, so a data owner cannot derive a deadline from them. Teams that hold data which must stay confidential for many years should record the decision and its assumptions, then revisit it as sources are updated.

To track the open questions, check NIST's post-quantum FAQ at the NIST post-quantum FAQ for any new symmetric guidance, and check NIST IR 8547, Transition to Post-Quantum Cryptography Standards, for the schedule of the public-key transition. Record the version and date of each source you rely on. When either document changes, review the at-rest decisions that depend on it.

Common questions about AES-256 and quantum risk for stored data

Is AES-256 quantum safe for encrypted data at rest?

NIST's FAQ says it is quite likely that Grover's algorithm will provide little or no advantage in attacking AES, and that AES 192 and AES 256 will still be safe for a very long time. NIST also notes that the quadratic speedup from Grover's algorithm requires running all steps in series, which reduces its advantage against parallel attacks. The word "safe" here describes the symmetric cipher itself, not any product built on it. Whether a given database or file format is protected depends on how its keys are generated, stored and wrapped, which is where the public-key parts of your setup matter.

Is AES-128 still enough for stored data after the transition?

NIST's FAQ says AES 128 will remain secure for decades to come, and that current applications can continue to use AES with key sizes 128, 192 or 256 bits. The same FAQ says anything with less than 112 bits of classical security should not be used, and that NIST will issue guidance on symmetric transitions when a need becomes foreseeable. Many database and file tools default to AES-128, so check the configured key size rather than assuming AES-256 is in use. Where the choice is yours, AES-256 is the size NIST's guidance points to for long retention periods, but the sources do not say that AES-128 must be replaced.

Does data at rest need to be re-encrypted now?

The sources do not establish that stored data must be re-encrypted now. NIST IR 8547 describes the transition as moving from quantum-vulnerable public-key algorithms to post-quantum signature and key-establishment schemes. Symmetric encryption of the data itself is not the main target. What matters is whether the keys that protect it were established or wrapped with public-key methods an adversary could break with a large fault-tolerant quantum computer. AWS's documentation notes that no such quantum computer exists today, but also describes harvest now, decrypt later as a reason to plan for long-lived data. Start by inventorying which keys protect each dataset and how long the data must stay confidential.

Which part of database encryption should change first?

Start with the key hierarchy, not the bulk cipher. The public-key steps that establish or wrap data keys are the parts NIST IR 8547 places in scope for transition. RFC 9936 requires AES-Wrap-256 support alongside ML-KEM-768 and ML-KEM-1024 for AES Key Wrap, which shows the wrapping layer is where post-quantum key establishment is specified. Check these in order:

  • Where data keys are wrapped and which key encapsulation method wraps them
  • Whether the database or library uses AES-128 or AES-256 as its configured default
  • Whether connections to the database use TLS, which the MySQL manual covers separately from stored data

Record the current settings before changing any of them.

What should I ask my database or cloud vendor about encryption at rest?

Ask which algorithm wraps data keys and whether that algorithm is one NIST has standardized, naming FIPS 203 (ML-KEM) if post-quantum key establishment is in use. Ask whether the default cipher and key size are configurable, and what the configured values are in your deployment. Ask whether key material is generated and stored by a managed key service, and whether that service documents post-quantum key types. For example, Google Cloud KMS and AWS KMS document ML-KEM keys that yield a 32-byte shared secret for use as a symmetric key input. Ask for the vendor's documented plan and dates in writing, since product support changes over time and the sources here cover only the services named.

Should we handle encryption at rest in-house or with an implementation partner?

The choice depends on how many key hierarchies, databases and file formats you run, and whether your team has time to map each one. The work is mostly inventory, configuration review and staged rewrapping, not new cryptographic design. A partner can run the inventory, review settings against vendor documentation, and plan the sequence, but any vendor you use still needs to confirm which versions support which algorithms. DeployOpen implements, hardens and documents self-hosted platforms inside your own infrastructure and can work through this inventory as a fixed-scope engagement with written deliverables. Cost depends on the number of systems, the age of the key management setup and how much testing you need before cutover, so ask for a written scope before deciding.

Does the post-quantum transition change how long encrypted data must stay protected?

The transition does not change how long data must stay confidential. That period is set by your records, legal and business requirements. What changes is how you judge whether the protection will still hold across that period. NIST's FAQ says AES 128 will remain secure for decades, while NIST SP 800-227 covers key-encapsulation mechanisms used to agree on shared secrets. For data kept for many years, record the retention period next to the key method that protects it. Records that depend on public-key key establishment need the closest review, because those are the parts NIST IR 8547 covers for transition.

How DeployOpen helps teams review encrypted data at rest

DeployOpen helps teams sort encrypted data at rest into the parts a quantum computer is expected to affect and the parts it largely does not. The work starts with the key hierarchy and the public-key steps around it, since that is where the post-quantum migration work sits. Symmetric bulk encryption is reviewed for key size and configuration, not replaced.

How we scope

  • We map which data stores, backups and file formats in your environment use AES and which wrap or exchange keys with public-key algorithms.
  • We record current key sizes and cipher settings, such as the default and available cipher values in each tool you run.
  • We agree the scope in writing before work starts, with fixed deliverables and a timeline for the review of encrypted data at rest.

How we build

  • We test the symmetric configuration, confirming AES-256 or AES-128 settings match the sizes your security policy requires.
  • We review key management and wrapping paths for public-key steps, where the NIST transition guidance places the post-quantum work.
  • We check database connection and TLS settings separately, since transport protection is a different question from data stored at rest.

How we hand over

  • You receive a written inventory of encrypted stores, their algorithms, key sizes and the components that depend on public-key cryptography.
  • The report lists which items need key-wrapping or key-exchange changes and which only need configuration checks to confirm current settings.
  • We document open questions and the points to confirm with each library or vendor, so your team can check compatibility for the versions it runs.

How we support

  • Ongoing support and periodic reviews are available as a retainer if your encrypted data stores change or new libraries are adopted.
  • We can retest configuration after upgrades to confirm symmetric key sizes and wrapping settings still match the documented scope.
  • Support covers questions from your engineers and compliance leads as standards and vendor documentation for these areas are updated.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.