What is key rotation in cryptography?
Key rotation is changing a key by replacing it with a new key. NIST's glossary defines the term by citing NISTIR 7966, and that definition is the reference most security and compliance teams use. Operations teams, key owners and auditors meet the term in key management policies, cloud key service settings, audit evidence and the inventories they build when planning an algorithm upgrade. Rotation changes which key is in use. It does not change the mathematics of the algorithm, so rotating a classical key does not make it post-quantum. A move to a different algorithm, such as ML-KEM or ML-DSA from FIPS 203 and FIPS 204, requires a new key of that type.
The definition has a consequence that is easy to miss. Places that use the key, or keys derived from it, typically need to be updated as well. For SSH user keys, NISTIR 7966 describes rotation as replacing an identity key with a newly generated key and updating the authorized keys that refer to it. When you inventory a key, list every system that trusts it, including authorized keys files, certificates issued against it and copies stored elsewhere, so the rotation plan covers each of them. Confirm the update process for each dependency before you schedule the change.
Cloud key services show how rotation behaves in practice, and the details differ by service. The AWS KMS documentation, for example, states that rotation changes only the current key material while the KMS key keeps the same key ID, and that it does not re-encrypt existing data or mitigate a compromised data key. It also notes that some key types, including asymmetric keys, must be rotated manually by creating a new KMS key, because a key spec cannot be changed after creation. Check the rotation documentation for the specific service and key type you run before you assume a rotation will change the algorithm.
What names does key rotation go by in documents and products?
This table lists how key rotation is named in NIST's glossary, in the AWS KMS documentation and in SSH identity key practice. Read each row as a separate meaning of the term, since the sources do not treat rotation as a general synonym for replacing a key. The main takeaway is that the key ID and the data keys behave differently under each name.
| Source or product | Term used | What rotation means there | What stays the same |
|---|---|---|---|
| NIST glossary (citing NISTIR 7966) | Key rotation | Changing a key, that is replacing it with a new key, and updating places that use the key or keys derived from it. | The places that depend on the key must be updated to match the new key. |
| NISTIR 7966, SSH user keys | Identity key rotation | Replacing an identity key with a newly generated key and updating the authorized keys to match. | Authorized keys and copies of the identity key are updated to reflect the new key. |
| AWS KMS, automatic rotation | Automatic rotation (RotationPeriodInDays) | New key material is generated for a customer managed key, with a default period of 365 days when none is specified. | The KMS key keeps the same key ID, and decryption uses the key material version that encrypted the ciphertext. |
| AWS KMS, on-demand rotation | On-demand rotation | A rotation started at any time, whether or not automatic rotation is enabled, without changing the automatic schedule. | The KMS key ID is unchanged, and existing automatic rotation timing is kept. |
| AWS KMS, data keys | Key rotation (data keys) | Rotation changes only the current key material of the KMS key, not the data keys it generated. | Data keys are not rotated or re-encrypted, so a compromised data key is not mitigated by rotation. |
| AWS KMS, key spec change | New KMS key (manual) | Moving to an ML-DSA or ML-KEM key spec requires creating a new KMS key, because the key spec cannot be changed after creation. | This route does not reuse the existing KMS key ID, unlike automatic or on-demand rotation. |
Where do practitioners meet key rotation?
Key rotation shows up in cloud key services, in identity key management and in the documents that auditors and vendors ask about. Each place has its own rules for what gets replaced and what must be updated afterward, so the same term can mean different work in each setting.
AWS KMS rotation settings
AWS KMS can rotate a customer managed key automatically, with a default period of 365 days, or on demand at any time. Rotation replaces the current key material while the KMS key keeps its key ID, and decryption uses whichever version encrypted the ciphertext. Check that automatic rotation is enabled, and remember that rotation does not re-encrypt existing data or fix a compromised data key. Asymmetric and HMAC keys need a new KMS key instead, and a classical key spec cannot be changed to an ML-DSA or ML-KEM spec after creation.
AWS KMS rotation docsSSH authorized keys for identity keys
NISTIR 7966 describes SSH user key rotation as replacing an identity key with a newly generated key and then updating the matching authorized keys. The old key has to be removed from every host that trusts it, or the rotation has not finished. Teams should inventory where each identity key is authorized and confirm the update on each target before retiring the old key.
Certificate and copy updates
The NISTIR 7966 definition notes that copies of an identity key and certificates granted for a key typically need updating when the key is rotated. These copies can sit in configuration files, backups, deployment pipelines and vendor systems, and any one left behind keeps the old key in use. Build a list of every copy and certificate tied to a key before the rotation date.
Rotation policy in vendor and audit requests
Vendor security questionnaires and audit requests often ask for a documented key rotation policy, including the rotation period and who owns each key. Answers should match what the system actually does, so the policy should name the rotation mechanism, the schedule and the evidence kept, such as rotation status and CloudTrail events for KMS. The sources listed here do not set a required rotation period for any organization, so state the period your own policy chooses.
NIST SP 800-57 key management guidance
NIST SP 800-57 Part 1 Revision 5, published in May 2020, is the current final guidance on key management and is the reference most auditors use for cryptoperiods and key handling. A Revision 6 initial public draft, released on 5 December 2025, is still a draft and may change. Check which revision your auditor references and confirm the current status on the NIST site before you cite it in a policy.
SP 800-57 Rev. 5 recordHow does key rotation work in a running system?
Key rotation in a running system means replacing a key with a newly generated one and then updating every place that depends on the old key or on keys derived from it. NIST's glossary, citing NISTIR 7966, describes the new key as replacing the old, and notes that authorized keys, copies of an identity key and certificates issued for a key typically need to be updated to match. For SSH user keys, the same definition says rotation means generating a new identity key and updating the corresponding authorized keys. For operations teams, the practical work is an inventory of those dependent places, a sequence for updating them, and a plan for the period when old and new keys must both be accepted. Confirm the exact dependencies in your own environment, since the sources describe the general pattern rather than your system's configuration.
Cloud key management services handle some of this work for you, but the behavior differs by key type. AWS KMS, for example, creates new key material for a customer managed key on a yearly schedule when automatic rotation is enabled, with a default RotationPeriodInDays of 365 days, and on-demand rotation can be started at any time. The KMS key keeps the same key ID, and decryption automatically uses the key material version that encrypted each ciphertext. Existing data keys and ciphertext are not re-encrypted, so the data protected under the old material stays protected under it. Asymmetric keys, HMAC keys and keys in custom key stores cannot be rotated on demand in the same way, so for those you create a new KMS key and move workloads to it. Check which of these applies to each key before you rely on automatic rotation.
Rotation has a limit that matters for incident planning: it does not mitigate an already compromised data key. AWS states that rotating a KMS key does not rotate the data keys it generated, does not re-encrypt data, and will not reduce the effect of a compromised data key. If a data key may have leaked, you need to replace that data key and re-protect the affected data, which rotation alone does not do. Decide in advance who owns this response, how you detect the exposure and how you confirm that the old material is no longer needed. The sources do not cover the timing of re-protection, so plan that step against your own data volumes and recovery targets.
What do NIST and FIPS publications say about key rotation and new algorithms?
NIST's post-quantum algorithm standards were published as final on 13 August 2024: FIPS 203 (ML-KEM, Module-Lattice-Based Key-Encapsulation Mechanism Standard), FIPS 204 (ML-DSA, Module-Lattice-Based Digital Signature Standard) and FIPS 205 (SLH-DSA, Stateless Hash-Based Digital Signature Standard, based on SPHINCS+). These standards define the new algorithms themselves. They do not tell an operator how often to rotate keys or how to move from a classical key to a new one. That guidance sits in the key management publications, so teams planning an upgrade should read the algorithm standards and the key management guidance together.
The key management guidance is NIST SP 800-57 Part 1. Revision 5, Recommendation for Key Management: Part 1, General, was published in May 2020 as a final document and is the version to cite today. Revision 6 was released as an initial public draft on 5 December 2025 and is still a draft. It adds ML-KEM, ML-DSA and SLH-DSA to the approved algorithm set, adds a section on keying material storage, and replaces fixed algorithm approval time frames with references to SP 800-131A. Confirm the status of Revision 6 on the NIST site before relying on it in an audit or procurement answer.
NIST also announced NIST IR 8547, Transition to Post-Quantum Cryptography Standards, on 27 October 2026. The announcement marks the earlier initial public draft of 12 November 2024 as obsoleted. Treat NIST publications as guidance. None of them is binding on commercial organizations on its own, though a contract or a regulator may require you to follow them. Check which document your customer or regulator names before deciding which requirement applies to your rotation plan.
What happens in a key rotation, step by step?
The rotation starts when a new key is generated to replace the current one. Operations then update every place that depends on the old key, such as authorized keys, copies of an identity key, or certificates issued for it, so that dependent systems can use the new key. New operations use the new key from that point on, while the old key is retained or retired according to policy. Each rotation should be recorded, and teams should confirm that every dependent location was updated before retiring the old key. Note that rotation changes only the current key material and does not re-encrypt data already protected by earlier keys.
The main steps of a key rotation, from generating the new key to recording the event.
What should a team do with key rotation during a PQC migration?
This sequence turns key rotation from a routine schedule into a controlled migration path, so each key is either rotated in place or replaced with a new key of the post-quantum spec. The output is an inventory of keys, their dependent systems, and evidence that each rotation event happened as planned.
Inventory every key and its rotation schedule
The security or platform team lists every key in scope, including the key type, owning system, and current rotation schedule or cryptoperiod. Where automatic rotation is enabled, record the rotation period in days; the AWS KMS default for customer managed keys is 365 days when no RotationPeriodInDays value is specified. This step is complete when every key has a named owner, a recorded schedule, and a status showing whether rotation is automatic, manual, or not configured. Keys without a clear owner or schedule should be flagged for follow-up before any migration work begins.
Identify dependent places for each key
For each key, the team records every place that uses it or a key derived from it, such as authorized keys, copies of an identity key, certificates issued for the key, and configuration files that reference it. NIST's glossary, citing NISTIR 7966, notes that these dependent places typically need to be updated when a key is rotated. This step is complete when each key has a list of dependent systems and each system has a named owner who will be responsible for updating it. The output is a dependency map that the team can use to plan the rotation order and to verify that no system is left using the old key.
Check whether the KMS or HSM can rotate in place
For each key, the team checks whether the key management service or hardware security module supports rotation that keeps the same key resource, or whether the key must be replaced by a new one. In AWS KMS, rotation changes only the current key material and keeps the same key ID, while asymmetric keys, HMAC keys, and keys in custom key stores require manual rotation by creating a new KMS key. The team should confirm this behavior in the vendor documentation for the specific product and version it runs. This step is complete when every key is marked as either rotate in place or replace with a new key, with the source of that determination recorded.
Plan new key creation for ML-KEM or ML-DSA specs
For keys that must move to a post-quantum algorithm, the team plans creation of new keys with the ML-KEM or ML-DSA key spec, since in AWS KMS a key spec cannot be changed after creation. The plan should state which key types are moving to ML-KEM (FIPS 203) or ML-DSA (FIPS 204), which parameter set is chosen, and how dependent systems will switch to the new key. Because the key spec is fixed at creation, the team cannot convert an existing classical key in place. This step is complete when the new keys are specified, approved, and mapped to the systems that will receive them, and the cutover order is agreed.
Ask vendors how rotation and retained key material work
The team sends a written question to each vendor that holds or manages keys in scope, asking how rotation is performed, whether old key material is retained, and for how long. In AWS KMS, all key material for an AWS_KMS origin key is retained even when rotation is disabled, and it is deleted only when the KMS key is deleted, and AWS states that rotation does not re-encrypt data or mitigate a compromised data key. The team should ask whether the answers are the same for other products and versions. This step is complete when each vendor's answers are recorded in writing, with the document or version each answer refers to, and any gaps are escalated.
Confirm rotation events in logs
After each rotation or key creation, the team confirms that the event was recorded in the audit and monitoring systems. For AWS KMS, a rotation writes a KMS CMK Rotation event to Amazon EventBridge and a RotateKey event to AWS CloudTrail, and GetKeyRotationStatus and ListKeyRotations report current status and history. The team should check that these events appear for the expected key IDs and times, and should set an alert for missing or unexpected rotation events. This step is complete when a log entry is confirmed for every planned rotation, and the evidence is stored where the compliance team can retrieve it.
What is commonly mixed up with key rotation?
Key rotation is often confused with operations that sound similar but do different things to keys and data. The cards below separate rotation from re-encryption, destruction, scheduling choices and key creation so operations teams can plan an algorithm upgrade with accurate expectations.
Rotation does not re-encrypt data
Rotation replaces the key material behind a key, but AWS states that it does not re-encrypt data and does not rotate the data keys the KMS key generated. Existing ciphertext stays protected by the material that encrypted it, and decryption picks the right version automatically. If your goal is to move stored data onto a new algorithm, you need a separate re-encryption step, which must be planned and tested on its own. Ask your team whether any data will be re-encrypted and who owns that work.
AWS KMS rotate keysRotation is not crypto-shredding or zeroization
Rotation retires one version of key material while the KMS key stays the same logical resource, and AWS retains key material for AWS_KMS origin keys even when rotation is disabled. Crypto-shredding and zeroization are destruction: they make data or key material unrecoverable. Do not record a rotation as the end of a key's life or as evidence of data destruction. Confirm which operation your policy requires when a key must no longer protect anything.
Automatic and on-demand rotation
Automatic rotation follows a schedule, while on-demand rotation can be started at any time whether or not automatic rotation is enabled. AWS states that an on-demand rotation does not change an existing automatic rotation schedule, so the regular cycle continues afterward. Teams planning an algorithm change should know which mode applies to each key and that on-demand rotation is supported for symmetric keys only. Check the rotation status and history for each key during the change.
AWS KMS rotate keysRotating a key versus creating a new key
Rotation keeps the same KMS key and key ID, but an AWS KMS key spec cannot be changed after creation. Moving from a classical key to an ML-DSA or ML-KEM key spec therefore means creating a new KMS key rather than rotating the existing one. Asymmetric and HMAC keys also need manual rotation by creating a new key. Ask your team which keys in scope require a new key, and plan the references that point to the old key ID.
AWS KMS key spec referenceDefault period versus policy period
When automatic rotation is enabled and no period is given, AWS KMS uses a RotationPeriodInDays value of 365 days for customer managed keys. That default is a platform setting, not a decision your organization has made. Your key management policy may set a different cryptoperiod, and the schedule in your configuration should match that policy. Confirm the period recorded for each key and who approved it.
Common questions about key rotation
What does key rotation mean in cryptography?
Key rotation means changing a key, that is, replacing it with a new key. NIST's glossary, citing NISTIR 7966, defines it this way. The definition adds that places using the key, or keys derived from it, typically need to be updated to match. Those places include authorized keys, copies of an identity key and certificates issued for a key. For SSH user keys, rotation means generating a new identity key and updating the authorized keys that refer to it. Rotation is about planned replacement, so the old key is retired on purpose and the systems that depend on it are kept in step.
Is key rotation the same as replacing a key after compromise?
Not exactly. Rotation is a planned replacement that can happen on a schedule or after an event, so it can also follow suspected compromise. The sources listed on this page do not say that rotation is the response to compromise. For AWS KMS, AWS states that rotation does not re-encrypt data, does not rotate the data keys the KMS key generated, and will not mitigate the effect of a compromised data key. If a key may be compromised, confirm with the vendor what replacement and re-encryption steps are needed, and do not assume rotation covers them.
Does NIST standardize key rotation?
NIST covers key rotation in its key management guidance. NISTIR 7966 provides the glossary definition quoted above. NIST SP 800-57 Part 1 Revision 5, titled Recommendation for Key Management: Part 1, General, was published as a final document in May 2020 and supersedes Revision 4. A draft, Revision 6, was published as an initial public draft on 5 December 2025 and is still a draft. It adds the algorithms in FIPS 203, 204 and 205 and a section on keying material storage. Check the current status of SP 800-57 on the NIST CSRC site before citing it in a procurement or audit document.
Do AWS KMS keys rotate by default?
Not for every key. For a customer managed key, AWS KMS generates new key material every year when automatic rotation is enabled. The default RotationPeriodInDays value is 365 days when none is specified. Automatic rotation has to be turned on for the key. AWS managed keys are rotated every year, and AWS changed that schedule in May 2022 from every three years. Rotation changes only the current key material. The key keeps its logical resource and key ID, and decryption uses whichever key material version encrypted the ciphertext. Confirm the rotation status of each key with GetKeyRotationStatus.
What does key rotation change for a post-quantum migration?
Rotation replaces key material under the same key, but it does not change the algorithm. The key spec of an AWS KMS key cannot be changed after creation, so moving from a classical key to an ML-DSA or ML-KEM key spec means creating a new KMS key, not rotating the existing one. Rotation also does not re-encrypt data. Plan migration as a set of new keys, updated consumers and re-encrypted or re-signed data, and use rotation only for routine replacement within each key. FIPS 203 (ML-KEM), FIPS 204 (ML-DSA) and FIPS 205 (SLH-DSA) were published as final standards on 13 August 2024. Check that your products support them before relying on them.
What should I ask a vendor about key rotation and retained key material?
Ask how rotation is scheduled and whether it is automatic, manual or on demand. Ask which key types support rotation, because some key types need a new key rather than rotation. Ask how old key material is kept, when it is deleted and what happens to data encrypted under it. The AWS KMS documentation, for example, says that AWS_KMS origin keys retain all key material even when rotation is disabled, and that it is deleted only when the KMS key is deleted. Ask what events and logs record rotation, and how you confirm the status. Get the answers in writing, and check them against the vendor's current documentation.
Where can I check the key rotation definition and AWS behavior?
Start with the NIST CSRC glossary entry for key rotation. The entry is drawn from NISTIR 7966 and defines key rotation as changing a key, meaning replacing it with a new one. It also notes that places using the key, or keys derived from it, such as authorized keys, copies of an identity key or certificates issued for that key, typically need to be updated to match. Use this entry as the baseline definition when a vendor or auditor uses the term, and check whether their usage matches the NIST wording, especially for SSH user keys where the entry describes replacing an identity key and updating authorized keys.
For AWS behavior, read the AWS KMS rotate keys documentation against your own configuration. The page states the default rotation period, how on-demand rotation interacts with automatic rotation, and which key types need manual rotation by creating a new KMS key. Confirm which of these apply to the key types and origins you run, since asymmetric keys, HMAC keys and keys in custom key stores are listed separately from symmetric encryption keys.
Before planning a move to a new algorithm, read the AWS KMS key spec reference. AWS states that a key spec cannot be changed after creation, so moving from a classical key to an ML-DSA or ML-KEM key spec means creating a new KMS key rather than rotating the existing one. Confirm in that reference which key specs your AWS Region and service support before you build the plan around them.
For the key management guidance behind these practices, use NIST SP 800-57 Part 1 Revision 5, the final document published in May 2020. A Revision 6 initial public draft was released on 5 December 2025 with a comment deadline of 5 February 2026, so it is still a draft and should not be cited as current guidance. Check the NIST publication page for the status of any later revision before you rely on it in an audit response.
How DeployOpen works on this
DeployOpen plans key rotation as a written, fixed-scope piece of a post-quantum migration. We map which keys are rotated in place, which need a new key created, and which dependent systems must be updated, then document and hand over the plan.
How we scope
- We inventory the keys in scope and record which key types support in-place rotation and which need a new key created.
- We confirm each key's current rotation schedule and whether automatic or on-demand rotation is already enabled.
- We agree the scope in writing, listing the systems, key types and dependent services the rotation plan covers.
How we build
- We map every place a rotated key is used, including authorized keys, copies of identity keys and granted certificates.
- We plan updates to those dependent places so rotation does not leave services holding stale keys.
- We test the rotation sequence in a non-production environment before any change reaches production systems.
How we hand over
- We document the rotation runbook, including the order of steps, rollback points and the events each step should produce.
- We record how to check rotation status and history, so operations teams can confirm each rotation completed.
- We hand over the scope record and runbook, so your team can repeat the rotation and audit it later.
How we support
- Engagements are fixed-scope, with deliverables and timelines agreed in writing before work starts.
- Ongoing support, upgrades and rotation reviews are available as a retainer for keys that rotate on a recurring schedule.
- Confirm current algorithm standards and rotation guidance against the NIST documents your organization follows before relying on the plan.

