Architect Infrastructure and System Cryptographic Solutions
Four decisions behind every cryptographic design
A requirement arrives reading "customer records must be protected in line with the retention policy". It names no algorithm, no key length, no protocol, and no point in the data's life where the protection applies, and reaching for AES-256 out of habit answers none of those. What turns a sentence like that into a design is a fixed order of four decisions, and the order matters because each one narrows the next.
The sibling page before this one places infrastructure controls on the components that can enforce them, and the identity architecture that later consumes the certificates and keys produced here belongs to the next domain. This page covers the cryptographic design in between.
The four decisions
- Service. Name the security property the requirement actually needs. Confidentiality keeps content unreadable, integrity detects modification, source authentication ties data to a party, and non-repudiation produces evidence a third party can weigh. Requirements rarely say which one they mean, so this step is translation work.
- Mechanism. Choose the primitive that supplies that service. This is where encryption, message authentication codes, digital signatures, and hashes stop being interchangeable vocabulary and start being different answers.
- State. Decide where the data is when the protection applies: at rest in storage, in transit across a path, or in use inside a running process. The state decides what an attacker who reaches the system can still see.
- Key lifecycle. Plan how keying material is generated, established, distributed, stored, used, rotated, revoked, recovered, and destroyed. NIST SP 800-57 Part 1[1] treats this as a full lifecycle rather than a storage question.
The constraints that bound all four
Four constraints sit outside the sequence and limit every decision in it: the computational capability of the platforms involved, the assurance a validated cryptographic module actually provides, the implementation attacks the deployment is exposed to, and the standards transition the design will eventually have to survive. They are constraints rather than steps because none of them can be satisfied by choosing differently at a single step; they narrow what any of the four choices may be. The figure below traces the four decisions in order, with that constraint band beneath them.
Working the sequence in order is what keeps a design honest. Starting at step 2 with a favorite algorithm produces the classic outcome where a system encrypts diligently and still cannot prove who sent anything.
Matching the mechanism to the security service
Decision 2 has one rule: pick the primitive that supplies the service you named, and check what it leaves unsupplied. No primitive delivers every property, and most cryptographic design errors are a mechanism doing exactly what it promises while the requirement needed something else.
What each primitive supplies
Encryption supplies confidentiality. It transforms plaintext so that recovering it requires a key, and by itself it says nothing about whether the ciphertext arrived unmodified.
A message authentication code (MAC) supplies integrity and source authentication between parties that already share a secret key. FIPS 198-1[2] specifies HMAC, the keyed-hash construction most commonly used for this. Because both parties hold the same key, either could have produced any given tag, which is exactly why a MAC cannot settle a dispute between them.
A digital signature supplies integrity, origin evidence, and verification by a party who holds only the public key. FIPS 186-5[3] specifies the approved signature algorithms. The asymmetry is the point: only the private-key holder can produce the signature, so a third party can attribute it without ever holding a secret.
A cryptographic hash supplies neither confidentiality nor, on its own, authenticity. FIPS 180-4[4] defines the approved hash functions, which produce a fixed-length digest with no decryption key involved. Hashing a value drawn from a small or predictable set conceals nothing, because an attacker computes the digests of the candidates and compares. Password storage is the standard illustration of the difference: a plain hash is inadequate there, and the OWASP password storage guidance[5] calls for a deliberately slow, salted construction, and CWE-916 names the weak-computational-effort case directly.
Two combinations worth naming
Authenticated encryption with associated data (AEAD) combines confidentiality and modification detection in one construction, producing an authentication tag alongside the ciphertext. NIST SP 800-38D[6] specifies GCM, the widely deployed example. Where both properties are required, an approved AEAD construction is the default answer, because encryption without an integrity mechanism leaves ciphertext an attacker can manipulate undetected even while unable to read it.
Signing does not encrypt. A signed document travels in the clear with a verifiable attribution attached, so content that must also stay secret is encrypted separately. The reverse mistake, assuming ciphertext is self-authenticating, is the one AEAD exists to prevent.
The comparison table in this page's overview lays these mechanisms against the same properties side by side, and its encryption column is the authenticated form: plain encryption is that column with the modification-detection row answered no. Read it as the answer key for decision 2, and treat every requirement that names two properties as a requirement for either a combined construction or two mechanisms applied deliberately.
Symmetric, asymmetric, and hybrid key hierarchies
Symmetric and asymmetric cryptography are not competing answers to one question; production designs can use both, each where its cost profile fits. Symmetric algorithms protect bulk data efficiently but require the communicating parties to securely establish and hold the same secret key. Asymmetric techniques carry signatures and key establishment without any pre-shared pairwise secret, at higher computational cost and with a trust model that has to be built, published, and maintained.
The hybrid pattern
The standard resolution is a hierarchy. Asymmetric key establishment sets up a symmetric key, the symmetric key does the bulk work, and the asymmetric layer is used sparingly. TLS is the everyday instance of this pattern, and so is nearly every storage encryption service.
Envelope encryption is the storage form of that hierarchy. Data is encrypted under a data-encryption key (DEK), and the DEK itself is encrypted under a separately managed key-encryption key (KEK), so the wrapped DEK can be stored next to the ciphertext it protects. Cloud key services implement this directly; AWS KMS[7] documents envelope encryption as its core pattern, and Azure Key Vault offers the same separation between a protected key and the data keys it wraps.
Two architectural properties follow, and they are the reason to choose the pattern rather than encrypting everything under one long-lived key:
- Rotating the KEK means rewrapping the DEKs, not re-encrypting the data. A rotation that would otherwise mean rewriting petabytes becomes a metadata operation.
- Destroying the KEK renders every DEK it wrapped unusable, which is the mechanism behind cryptographic erasure discussed later on this page.
The figure below shows the hierarchy with those two KEK operations attached.
Constrained platforms
Computational capability is a real constraint here, not a footnote. Operational technology controllers, sensors, smart cards, and battery-powered devices may not sustain frequent asymmetric operations, and a design that assumes otherwise fails in the field rather than in review. The usual accommodations include longer-lived symmetric keys with tighter physical protection, key establishment performed at provisioning time rather than per session, and gateway devices that terminate the expensive protocol on behalf of a fleet. Each accommodation trades something, and the trade belongs in the design record rather than in an implementer's head.
Design constraints and attacks in the system
An algorithm with no known mathematical weakness can still be defeated by the system around it, and an architect who evaluates only the algorithm has reviewed the smallest part of the attack surface. The threat model for a cryptographic design has to include the ways an implementation leaks its keys.
The implementation failure classes
The classes below recur often enough to be worth checking by name on every design, and the list is representative rather than exhaustive:
- Side channels. Timing, power draw, electromagnetic emission, and cache behavior can reveal key material to an observer who never breaks the mathematics. CWE-208[8] covers the timing case, where a comparison that returns early on the first mismatched byte hands an attacker the secret one byte at a time.
- Weak randomness. Keys, initialization vectors, and nonces drawn from a predictable source are weak whatever their nominal length. CWE-330[9] is the general weakness, and the generation section later on this page covers the approved-generator requirement.
- Key exposure. Keys embedded in source code, images, or configuration files (CWE-321[10]) travel wherever those artifacts travel, including into version control and backups.
- Protocol misuse. A sound primitive used outside its contract, such as reusing a nonce with a counter-mode construction or omitting the integrity check on decryption, loses the property it was chosen for.
- Fault attacks. Deliberately induced errors, through voltage or clock manipulation on a device an attacker holds physically, can make a correct implementation emit results that reveal a key.
- Insecure error handling. Distinguishable error responses, including differences in message content or response time, can turn a decryption endpoint into an oracle that answers questions about the plaintext.
Algorithm selection as a constraint
Algorithm choice belongs to this constraint layer rather than to personal preference. CWE-327 captures the general case of a broken or risky algorithm, and NIST SP 800-131A[11] states which algorithms and key lengths remain acceptable and which have been withdrawn. Two design habits follow. Prefer approved constructions used through vetted libraries rather than assembled primitives, since most of the failure classes above are introduced during assembly. And record which algorithms and parameters a system depends on, because that record is what makes the transition planning at the end of this page possible.
The conclusion an architect should carry out of this section is uncomfortable but useful: selecting an approved algorithm is necessary and it is not evidence that the deployed system protects anything. The evidence comes from the implementation, the key handling, and the operating environment.
Validated modules and the boundary of assurance
Every assurance claim has an edge, and for cryptography that edge is drawn explicitly. FIPS 140-3[12] is the standard for validating cryptographic modules, and the word that carries the most weight in it is boundary.
What validation covers
A cryptographic module is a specific implementation with a declared physical or logical boundary, and validation tests that implementation against the standard's requirements. What sits inside the boundary is covered: the approved algorithms as implemented, the keys held within the module, the self-tests the module runs, and the physical or logical protections around it. What sits outside is not covered by the validation, however carefully it was built: the application logic that calls the module, the organization's key-management process, the protocol design, and the operating procedures.
That distinction is the source of a persistent architectural error. A product's validation certificate is genuine evidence about the module, and it is not a statement that the system embedding the module is secure. The figure below separates the two sides.
Choosing a level
FIPS 140-3 defines four increasing qualitative security levels, and increasing is not the same as ranked by correctness for a given deployment. Higher levels add progressively stronger physical protections and stricter requirements around roles, services, and the operating environment, all of which carry cost, procurement constraints, and often performance and operational consequences.
The level therefore follows the deployment rather than the budget's ambition. The questions that decide it are what the data is worth, who can physically reach the module, what the operating environment looks like, and what an attacker with that access could accomplish. A module in a controlled data center with monitored access is in a different situation from one in an unattended roadside cabinet, and the second may justify protections the first does not need. Selecting a level because it is the highest available, without that analysis, buys physical protections against a threat that may not exist while leaving the actual exposure, which is usually in the key-management process outside the boundary, untouched.
One practical habit closes this section. When a design claims inherited assurance from a validated module, record which functions the module actually performs in that system. A module validated for key storage and used only for key storage inherits nothing for the encryption that the application performs itself.
Protecting data at rest
At-rest encryption answers exactly one question: what an adversary gets when they obtain the stored representation rather than the running system. Media pulled from a rack, a disk that left the building during decommissioning, a copied backup tape, a snapshot exported to the wrong account, and a stolen laptop all fall inside that answer.
Choosing the layer
Encryption at rest can be applied at several layers, and the layer decides both the granularity of the keys and what an attacker who compromises a running host still sees. The layers commonly available, among others, are:
| Layer | Typical unit of protection | What it does not separate |
|---|---|---|
| Full disk or volume | The whole device or volume | Anything once the volume is mounted and unlocked |
| File system or file | Individual files or directories | Data readable by any process with the file's key |
| Object or bucket | Individual stored objects | Access already granted through the storage service |
| Database, column, or field | Selected columns or fields | Values the application decrypts to serve a query |
The pattern down the right-hand column is the important one. Each layer narrows what an unauthorized holder of the storage can read, and none of them protects plaintext after an authorized process has unlocked the data and is reading it. A compromised application server with valid credentials sees the same plaintext the application does, no matter how the storage was encrypted.
What that means for the design
Three consequences follow, and they are the ones exam scenarios turn on.
First, at-rest encryption is not a substitute for access control. If the risk is a legitimate account misusing its access, storage encryption changes nothing, and the answer lies in authorization, monitoring, and the identity architecture the next domain covers.
Second, granularity is a design choice with an operational cost. Field-level or column-level encryption can keep sensitive values unreadable to a database administrator who legitimately administers the database, which volume encryption cannot do, and it complicates indexing, searching, and query performance. The OWASP cryptographic storage guidance[13] covers the practical form of these trade-offs.
Third, the key hierarchy matters more than the cipher. Storage encrypted under a single long-lived key inherits every rotation and recovery problem that key has, which is why the envelope pattern described earlier is the normal answer for anything at scale.
Related protections often appear beside encryption in a data-repository design and are not encryption: redaction removes data from a copy, masking substitutes values for a class of viewer, and tokenization replaces a value with a surrogate held in a separate mapping. They serve confidentiality goals and none of them is what a requirement for encryption at rest is asking for.
Protecting data in transit
An encrypted channel to an unverified endpoint is a well-protected connection to an attacker. That single sentence is the reason transit protection is never only about encryption: the peer has to be authenticated, or confidentiality is being provided to whoever answered.
The protocol choice
Transport Layer Security (TLS) protects traffic between application endpoints and is the default for most application protocols. Internet Protocol Security (IPsec) protects traffic at the network layer, which suits site-to-site connectivity and cases where the protection must be transparent to the applications involved. Both supply confidentiality and integrity, and both authenticate peers, though what counts as the peer differs: a TLS peer is typically a named service presenting a certificate, while an IPsec peer is typically a gateway or host identity. NIST SP 800-52 Rev. 2[14] gives the selection and configuration guidance for the TLS case.
Authentication is the part that gets skipped. A client that accepts any certificate, ignores name mismatches, or trusts a store an attacker can write to has an encrypted channel and no assurance about the far end. The OWASP transport layer guidance[15] treats validation failures as the primary implementation risk, not cipher selection.
End-to-end versus link protection
These two are not variants of one control, and the difference decides who can read the content.
With link encryption, each hop decrypts the traffic and re-encrypts it for the next hop. Every intermediary therefore handles plaintext, which is acceptable when the intermediaries are inside the trust boundary and unacceptable when they are not. A TLS-terminating load balancer, an inspecting proxy, and a managed messaging service that decrypts payloads to route them are all link-encryption topologies regardless of the protocol names involved.
With end-to-end encryption, the content stays protected between the communicating endpoints and no intermediary holds a key for it. Intermediaries can still observe routing metadata, including addresses, sizes, and timing, so end-to-end protects content rather than the fact of communication. The figure below contrasts the two topologies.
The design question is therefore not "is it encrypted" but "which parties hold a key". Any requirement that a service provider or transit network must not be able to read content is a requirement for end-to-end protection, and terminating TLS at a provider-managed component does not meet it.
Forward secrecy and early data in TLS 1.3
Two TLS 1.3 properties are commonly confused and are worth separating. Ephemeral Diffie-Hellman key exchange, written (EC)DHE, gives forward secrecy: because the session keys derive from ephemeral values discarded after the handshake, an attacker who later obtains the long-term private key cannot decrypt recorded past sessions. Resuming purely from a pre-shared key (PSK), without an ephemeral exchange, forfeits that property.
Zero round-trip time (0-RTT) early data is a separate feature that lets a client send application data with its first message on a resumed connection, saving a round trip. It has no inherent replay protection, so an attacker who captures early data can send it again. The design rule is narrow: permit early data only for operations deemed safe to replay, and handle possible duplicates at the application layer. Forward secrecy does not fix this, because the two properties address different problems.
Protecting data in use
The third state is the one most designs leave unaddressed. Data at rest is encrypted and data in transit is encrypted, and in between the application decrypts everything into memory to work with it, where the operating system, the hypervisor, a privileged administrator, and anything that can read process memory all sit closer to the plaintext than the attacker the storage encryption was defending against.
What the mechanism provides
A trusted execution environment (TEE), also described as a secure enclave, is a hardware-isolated region in which code and data are protected while they are being processed. Memory belonging to the environment is isolated from other software on the platform, including more privileged layers, so a compromised operating system or hypervisor does not automatically yield the plaintext inside it. Both Azure confidential computing[16] and Google Cloud confidential computing document the platform forms of this.
Attestation is the companion mechanism and the reason the isolation is useful to a remote party. Attestation is a signed statement about what is actually running inside the environment, produced by the hardware and verifiable by someone outside the platform. It lets a key holder decide whether to release a key to a particular workload rather than trusting the platform operator's word, and that decision is the point at which in-use protection becomes an architectural control instead of a platform feature.
What it does not provide
The boundaries here follow the same shape as the module boundary discussed earlier, and stating them prevents an inflated claim from reaching a design document. A TEE protects data from other software on the platform; it does not protect data from defective or malicious code running inside the environment, because that code is on the trusted side. It depends on a hardware root of trust and on the vendor's attestation infrastructure, which are trust dependencies the design acquires. It reduces but does not eliminate exposure through side channels, which is exactly the implementation-attack class covered earlier. And the key-release policy that decides which attested workloads receive which keys is the architect's design, not something the hardware supplies.
The practical selection rule is narrow. Reach for in-use protection when the threat model includes the platform operator or a compromise of the layers beneath the workload, when regulation requires that a processor cannot read the data it processes, or when several parties need to compute over combined data none of them may see whole. For a workload where the platform is already inside the trust boundary, the same effort spent on access control and key management usually removes more risk.
Key generation and key establishment
Decision 4 starts where the key does. A 256-bit key derived from predictable input carries nowhere near 256 bits of security, and its nominal length says nothing about it, so generation is a security decision rather than a formality.
Generation
Approved key generation uses a random bit generator with sufficient entropy for the strength the key is meant to provide, where entropy means genuine unpredictability from the attacker's point of view rather than apparent disorder. NIST SP 800-90A[17] specifies the approved deterministic random bit generators and NIST SP 800-133[18] covers how keys are generated from them. Two practical checks follow. Use the platform's cryptographic generator rather than a general-purpose one, since the general-purpose function in most standard libraries is not designed to resist prediction. And treat freshly provisioned systems, virtual machine clones, and embedded devices as entropy risks, because a pool that has not been seeded with genuine unpredictability produces repeatable output.
Establishment: two different mechanisms
Automated establishment of a shared symmetric key uses key transport, key agreement, or a combination of those two mechanisms, and the distinction between them is a favorite exam target because the outcomes look identical from outside.
In key agreement, both parties contribute input and each derives the same shared secret from the combination. Neither party chooses the resulting key alone, and the secret itself is never transmitted. Diffie-Hellman and its elliptic-curve form are the standard schemes, specified in NIST SP 800-56A[19].
In key transport, one party selects or generates the keying material and protects it for delivery to the other, typically by encrypting it under the recipient's public key. The recipient contributes nothing to the value of the key. NIST SP 800-56B[20] specifies the schemes based on integer factorization.
The figure below places the two side by side.
Why agreement needs authentication
Bare Diffie-Hellman authenticates nobody. An attacker positioned between the parties can complete a separate exchange with each, ending up with one shared secret per side and reading everything that flows between them, while both parties see a successful key establishment. The protection has to come from the surrounding protocol: signing the exchange with a key whose ownership is already established, binding it to certificates, or authenticating it with a previously shared secret. This is the specific reason the transit section insists on peer authentication, and it is worth carrying as one rule rather than two facts.
The design takeaway is that key establishment is chosen for its trust properties, not its speed. Agreement suits parties that both need assurance the key was not dictated to them and gives forward secrecy when the contributions are ephemeral; transport suits cases where one party legitimately owns the key and the other only needs to receive it safely.
Distribution, storage, and separation by purpose
A key in transit between the place it was generated and the place it will be used needs two different protections at once, and treating them as one is a common design gap. Secret and private keying material needs confidentiality so that nobody in the path learns it. Every key association, including public keys, needs integrity and an authentic binding to the intended party and purpose, so that nobody in the path substitutes a different key. A confidential channel to an unauthenticated recipient delivers the key perfectly securely to the wrong party, and an authenticated channel with no confidentiality delivers the right party's key to everyone watching.
Storage and the hardware boundary
Where keys live decides how much of the design has to be trusted. A hardware security module (HSM) is a dedicated cryptographic module that generates, stores, and uses keys inside a tamper-resistant boundary, exposing only a narrow interface: callers ask the module to perform an operation and the key itself never leaves. That property is what makes an HSM worth its cost for a certification authority's signing key, a root key-encryption key, or a payment key.
One limitation belongs at the first mention rather than in a later list. An HSM protects the key; key protection alone does not decide whether the caller should be allowed to use it. If any application that can reach the module can request any operation, the key is safe from extraction and freely usable by anything on the network. Authorization of callers, separation of the keys each caller may use, and logging of operations are all part of the surrounding design, and NIST SP 800-57 Part 2[21] covers the organizational half of key management that sits around the device.
The same reasoning applies to a managed key service, which is an HSM-backed service with a policy layer in front of it. The policy layer is the part that answers the authorization question, and it is configured rather than inherited.
Separation by purpose
Keys are separated by cryptographic purpose: signing, encryption, authentication, and key establishment each get their own key or key pair unless an approved scheme explicitly allows a combination. Three reasons make this a rule rather than tidiness.
Using one key for two purposes can create cross-protocol attacks, where a message from one context is presented in the other and the mathematics does not distinguish them. It also forces a single lifecycle onto operations with different needs: an encryption key may need to be archived for years so old data stays recoverable, while a signing key should be destroyed at end of life so no new signatures can be created, and one key cannot satisfy both. And it widens the blast radius, since a compromise of the key compromises every purpose at once.
Certificates carry this separation explicitly through key-usage extensions, which state what the certified public key may be used for. Honoring those extensions during validation is part of the certificate handling covered next.
The OWASP key management guidance[22] collects the implementation habits that follow from this section, and the design decisions above should be settled before any of them are chosen.
Certificates, path validation, and revocation
A certificate is a signed statement that binds a public key to a named subject, issued under a stated policy by a certification authority (CA). Everything a relying party gets from it depends on that binding still holding, and the relying party is whoever is deciding whether to trust the key: the browser, the service verifying a signature, or the device authenticating a peer.
What validation actually checks
A certificate is not usable because it parsed. Validation is a sequence of checks, and any one of them failing means the binding cannot be relied on:
- The certification path builds to a trusted root. Each certificate in the chain is issued by the next one up, ending at a root the relying party already trusts. The trust store holding those roots is a control surface in its own right, because anything added to it can vouch for any name.
- The signatures verify at each link. Each issuer's signature over the certificate below it checks out against the issuer's public key.
- The validity dates cover the moment of use. Certificates carry a not-before and not-after time, and expiry is a hard stop.
- The key usage matches the purpose. The key-usage and extended-key-usage extensions state what the key may do, and a certificate issued for one purpose does not authorize another. The name in the certificate must also match the identity being relied on.
- Revocation status is checked. The issuer may have withdrawn the binding before its expiry, and a relying party that never checks will keep trusting it.
The figure below traces those checks in order.
One boundary belongs here: a certificate is a public document that says nothing about the state of the subject's private key. It cannot protect that key, and it cannot detect that the key was copied. The binding stays valid until someone with authority withdraws it.
What revocation does and does not do
Revocation stops future reliance on the binding. When a private key is compromised, or the subject is no longer entitled to the identity, the issuer publishes the revocation and relying parties that check will stop accepting the certificate.
What revocation does not do is the part worth writing down, because scenario questions are built on it. It does not recover or neutralize the compromised private key, which remains in the attacker's hands. It does not decrypt or protect ciphertext the attacker already captured, and where the key was used for key transport without forward secrecy, past sessions stay exposed. It does not automatically invalidate signatures produced before the revocation, since a signature made while the certificate was valid may still be honored depending on the trust policy and on whether trustworthy timestamps exist. And it has no effect on relying parties that do not check status, which makes revocation checking, its latency, and the behavior on a failed check into real design decisions rather than defaults to accept.
The takeaway is that revocation is a forward-looking control. Everything that happened while the compromised key was trusted is handled by the compromise response covered later on this page, not by publishing a revocation.
Cryptoperiods and planned rotation
A cryptoperiod is the span of time during which a key is authorized for use, and it is set per key rather than per organization. NIST SP 800-57 Part 1[1] sets out the inputs: the strength of the algorithm and key, the type of key and what it protects, the volume of data processed under it, how exposed it is, the operating environment, and the consequences if it were compromised.
Why one interval for everything is wrong
The inputs above pull in different directions for different keys, which is why a single organizational rotation interval satisfies none of them well. A session key used for minutes and a root key-encryption key held in an HSM for years are both correctly configured. A key encrypting high-volume data may need replacing on volume rather than on time, because the amount of material processed under one key is itself a limit. A key held on a device an attacker can physically reach needs a shorter period than one inside a monitored facility. And a key whose compromise would expose a decade of archived records justifies more caution than one protecting a cache rebuilt hourly.
Rotation, meaning the planned replacement of a key at the end of its cryptoperiod, is therefore a scheduled risk control. It limits how much material any single key protects and how long a quiet compromise could go on producing value for an attacker.
A known or suspected compromise is a different situation, handled by the response procedure in the next section rather than by waiting for the interval to elapse.
Key compromise response
When a key is known or suspected to be compromised, waiting for its cryptoperiod to expire leaves a key the attacker holds in active service. The response is its own sequence, and the order matters because each step limits what the next has to clean up:
- Stop using the key, so no new data is protected under material the attacker holds.
- Revoke or distrust the affected credentials and certificates, and publish that status so relying parties act on it.
- Generate replacement keys, following the generation requirements covered earlier rather than reusing anything derived from the compromised material.
- Distribute the new keys and the new trust anchors to every party that needs them, which is where an incomplete key inventory turns an incident into an outage.
- Assess what was exposed while the key was trusted, including data encrypted under it, signatures produced with it, and sessions that can be decrypted from recordings.
- Re-protect the affected information where it still requires protection, which may mean re-encrypting stored data under new keys.
The figure below traces the sequence, with those last two steps marked.
Steps 5 and 6 address consequences of the compromise. Revocation stops future reliance, as the certificate section set out; the exposure that already happened is addressed here or not at all.
One planning consequence deserves stating: every step above depends on knowing where the key was used. The inventory discussed in the transition section is what makes this procedure executable rather than aspirational.
Recovery, backup, and cryptographic erasure
Availability of keys is a security requirement in its own right, because a key that cannot be produced when needed has made the data it protects permanently unreadable. Backup and archive mechanisms that provide that availability create additional copies of key material, so each one is a deliberate trade rather than a default.
Recovery differs by key purpose
Archiving or escrowing a decryption key is appropriate when the organization must be able to recover protected data without the original key holder: an employee leaves, a device fails, a legal hold requires production, or an operational key is lost. The data exists, the business needs it, and only the key stands between them.
A private signature key is the opposite case. Anyone holding it can produce signatures attributable to the subscriber, so a recovery copy hands a second party the ability to act as that subscriber and destroys the accountability the signature was supposed to provide. When a signing key is lost, the correct answer is to revoke the certificate and issue a new key pair, not to recover the old key. The general rule to carry: recovery mechanisms belong to keys that decrypt, not to keys that assert identity.
This is one of the clearest cases of why keys are separated by purpose. A single key pair used for both signing and encryption forces the organization to choose between recoverable data and accountable signatures, and neither answer is acceptable.
Backup copies are copies
Where key backups exist, three requirements travel with them. Protect the backup at least as strongly as the operational copy, because an attacker will take whichever is easier and the protection of the data is set by the weakest copy of its key. Control restoration, so returning a key to service is an authorized, logged operation rather than a file copy. And inventory the locations, since a copy nobody tracks cannot be protected, rotated, or destroyed.
That last point is where the trade becomes concrete: every additional copy improves the odds of recovering data and enlarges the set of targets whose compromise exposes it.
Cryptographic erasure
Cryptographic erasure, also called crypto erase, renders encrypted data inaccessible by destroying the keys rather than overwriting the storage. NIST SP 800-88[23] treats it as a sanitization technique with explicit preconditions, and it is attractive at scale because destroying one key can retire an entire storage volume or an entire tenant's data in one operation.
The preconditions are what make or break the claim. Strong encryption must have covered the target data from the start, since data written before encryption was enabled is untouched by destroying the key. Every usable copy of the relevant key must be destroyed, including backups, escrow copies, and any copy held by a service provider, which is where the backup inventory above becomes load-bearing. And no plaintext copies may survive elsewhere, in caches, exports, logs, or downstream systems.
A surviving key backup does not weaken the sanitization claim, it voids it. That is the sentence to carry into a scenario question where crypto erase is offered as the answer and the environment holds an escrowed copy of the key.
Split knowledge and dual control
Two controls constrain what people can do with high-value keys, they are routinely confused with each other, and the difference is worth stating in one line before anything else: split knowledge is about who possesses the secret, dual control is about who can perform the action.
Split knowledge
Split knowledge divides key material, or the activation data that unlocks it, so that no single participant holds the whole value. Each custodian holds a component that is useless alone, and the key exists in complete form only when the required components are brought together, ideally inside a protected module rather than in anyone's hands.
The test that catches the usual mistake: if one administrator knows the full key and a second person merely approves its use, that is not split knowledge. The first administrator can copy the value and use it elsewhere, entirely outside the approval process. Split knowledge fails whenever any single person could write the whole secret down.
Dual control
Dual control, also called dual authorization, requires two authorized people to complete a sensitive operation, so no individual can carry it out alone. The operations it typically covers are the ones with irreversible or high-impact outcomes, including key generation ceremonies, activating a key for production use, recovering an escrowed key, exporting key material, and destroying a key.
Dual control says nothing about who knows the secret. Two operators can jointly authorize an operation on a key that neither of them has ever seen, which is the normal arrangement with a hardware security module, and that is a perfectly sound design.
Using them together
The two combine because they address different failure modes. Split knowledge defeats the custodian who copies a secret and uses it privately later. Dual control defeats the operator who performs an unauthorized action right now, including with a secret they never see. A key ceremony that produces a root key-encryption key typically applies both: components held by separate custodians, and every step of the ceremony performed with two authorized participants and a witnessed record.
For exam scenarios, the discriminating question is which failure the stem describes. A scenario where one administrator could act alone with knowledge they already have points at split knowledge. A scenario where an operation should never be completed by a single person, regardless of what they know, points at dual control. A scenario that describes an approval workflow layered on top of one person's full knowledge of the key describes dual control being mistaken for split knowledge, which is the most common wrong answer of the three.
Lifecycle inventory and standards transition
Every cryptographic choice on this page has a shelf life. Algorithms weaken as analysis advances and computation gets cheaper, standards bodies withdraw parameters, and protected data frequently outlives the protection chosen for it. Planning for that is the fourth constraint from the opening section, and it is executed through an inventory rather than a policy statement.
What the inventory has to contain
A transition is only possible if you can answer "where is this used" without a discovery project. The inventory covers, at minimum, the algorithms and parameters in use, the keys and their purposes and locations, the certificates and their issuers and expiry dates, the protocols and versions deployed, the dependencies that pin any of these choices, including hardware, libraries, third-party services, and partner interfaces, and the lifetime of the data each one protects. That last field is the one most often missing and the one that drives the schedule.
NIST SP 800-131A[11] is the reference for which algorithms and key lengths are being withdrawn and on what terms, and it is the document a transition plan is usually written against.
Why data lifetime sets the deadline
A system protecting data that stops mattering in thirty days can transition when convenient. A system protecting records that must stay confidential for twenty years is in a different position, because an attacker can capture ciphertext today and store it until an attack becomes practical. The protection has to hold for the life of the data, not for the life of the system, and that reasoning is what drives transition planning ahead of any concrete break.
The current instance of this is the move to post-quantum cryptography. NIST has published standardized post-quantum algorithms, including FIPS 203[24] for key encapsulation and FIPS 204[25] for digital signatures, and maintains a broader post-quantum cryptography project covering migration. For an architect the practical implication is that long-lived confidential data is an early migration priority, because the capture-and-store exposure described above, commonly called harvest-now-decrypt-later, applies to it directly.
Designing for the next transition
Cryptographic agility is the design property that makes transitions routine: algorithms, parameters, and key sizes are configuration rather than assumptions scattered through the code, protocol negotiation allows new algorithms to be introduced, and key hierarchies allow a layer to be replaced without rewriting the data beneath it, which is the envelope pattern from earlier doing exactly that job. Agility is not free, since every negotiable option is also an option an attacker may try to force downwards, so the configuration surface needs its own floor on acceptable choices.
The closing point for the whole constraint layer: a design that cannot state which algorithms it depends on cannot be transitioned, and the effort of building that record is paid once, whereas the effort of discovering it during an emergency is paid under time pressure.
Reading the stem: which decision is under test
ISSAP cryptography questions rarely ask which algorithm is strongest. When a question describes a situation and asks what an architect should select, identify which of the four decisions the situation turns on. Working out that much before reading the options is the fastest route to the right answer.
Mapping the stem to the decision
When the stem emphasizes what must be proven, established, or kept secret, it is testing the service and mechanism decisions. Watch for the words that pick out a single property: "prove to a third party" and "cannot later deny" point at digital signatures, "detect any modification" between parties that already share a key points at a MAC, "unreadable" points at encryption, and a stem naming both confidentiality and modification detection points at authenticated encryption rather than encryption alone.
When the stem describes where the data is or who is in the path, it is testing the state decision. A cloud provider, a managed service, or an inspecting intermediary that must not read content is asking for end-to-end protection. Stolen media, disposed drives, or exported snapshots are asking for at-rest encryption. A platform operator or a hypervisor in the threat model is asking for in-use protection. A stem that says data is encrypted at rest and still reaches an attacker is usually pointing out that a compromised authorized process was the path.
When the stem describes people, timelines, or recovery, it is testing the key lifecycle. Custody by multiple staff, ceremony procedures, escrow, rotation intervals, and what to do after a compromise all live here.
Distractor patterns worth recognizing
The wrong options tend to come from a small set of moves, each corresponding to a boundary this page has drawn:
- Right family, wrong property. Offering a hash where the requirement needs confidentiality, or a MAC where the requirement needs verification by an outside party.
- Assurance treated as coverage. Offering a validated module, or a higher FIPS 140-3 level, as the answer to a key-management or protocol failure that sits outside the module boundary.
- A control that acts on the wrong tense. Offering revocation as the fix for ciphertext already captured, or scheduled rotation as the response to a known compromise.
- Storage encryption against a live adversary. Offering encryption at rest where the described attacker already holds valid credentials on a running system.
- The stronger-sounding option. Offering the longer key, the higher assurance level, or the newer algorithm where the stem's constraint was computational capability, data lifetime, or an unauthenticated peer.
- Dual control labeled as split knowledge. Offering an approval workflow over a secret one administrator fully knows.
The habit to build
Read the stem for the requirement, name the service, then check what the offered mechanism leaves unsupplied. Most incorrect options on this exam are technically accurate statements about a mechanism that answers a question the stem did not ask, which is the same failure mode this page opened with: an algorithm chosen before the requirement was translated.
Which mechanism supplies which security service
| Design question | Authenticated encryption (AEAD) | Message authentication code (MAC) | Digital signature | Cryptographic hash |
|---|---|---|---|---|
| Hides the content? | Yes | No | No | No |
| Detects modification? | Yes, through the authentication tag | Yes | Yes | Only against a separately trusted digest |
| Identifies which party produced it? | Yes, to holders of the shared key | Yes, to holders of the shared key | Yes, to anyone who trusts the certificate | No |
| Verifiable by an outside party? | No, any verifier could also produce it | No, any verifier could also produce it | Yes, the verifier holds only the public key | No |
| Key material needed | One shared secret key | One shared secret key | Private key to sign, public key to verify | None |
| Typical architectural use | Bulk data at rest and in transit | Integrity within a trusted pair or session | Signed code, documents, certificates, audit evidence | Fingerprints, integrity constructions, password storage schemes |
Decision tree
Sharp facts the exam loves — give these one last read before exam day.
Cheat sheet
Sharp facts the exam loves — scan these before test day.
- The cryptographic mechanism must match the required security service
Select encryption for confidentiality, a MAC for symmetric integrity and source authentication, and digital signatures when public verification and signer evidence are required. No single primitive automatically supplies every security property.
5 questions test this
- A messaging design must conceal the content of each transaction record and let the receiver detect any tampering with that record in transit. The architect wants one mechanism to deliver both properti
- A clearing house protects settlement messages with a message authentication code computed under a key that both participants hold. Auditors ask whether the design can resolve a dispute in which one pa
- A supplier portal accepts purchase commitments from external buyers. The design must let an independent arbitrator confirm which buyer approved a given order, even after that buyer denies having appro
- Two internal services already share a symmetric key. The architecture must let the receiver detect unauthorized modification of each message and confirm which service sent it. Proof of origin usable b
- A messaging design must conceal the content of each transaction record and let the receiver detect any tampering with that record in transit. The architect wants one mechanism to deliver both properti
- Symmetric and asymmetric cryptography solve different architectural problems
Symmetric algorithms efficiently protect bulk data but require communicating parties to share secret keying material. Asymmetric techniques support signatures or key establishment without a pre-shared pairwise secret but impose different trust and computational costs.
11 questions test this
- A programme proposes a symmetric-only design in which every pair of member organizations holds its own distinct encryption key. Leadership asks what will constrain the design as the membership grows f
- Two enterprises with no prior relationship and no shared secret must set up protected communications across an untrusted network within a day, and manual courier distribution of keying material is una
- A programme proposes a symmetric-only design in which every pair of member organizations holds its own distinct encryption key. Leadership asks what will constrain the design as the membership grows f
- Two enterprises with no prior relationship and no shared secret must set up protected communications across an untrusted network within a day, and manual courier distribution of keying material is una
- A replication link carries several terabytes of records between two data centers every night, and the architect must protect the payload without making the cryptography the throughput bottleneck. Whic
- A design distributes each service's public key as an email attachment. A reviewer objects that a recipient cannot tell whether a received public key really belongs to the named service. Which addition
- A programme proposes a symmetric-only design in which every pair of member organizations holds its own distinct encryption key. Leadership asks what will constrain the design as the membership grows f
- Two organizations must establish a shared secret for a new interconnect. Policy states that the secret must depend on information contributed by both parties, so that neither party alone determines it
- Two enterprises with no prior relationship and no shared secret must set up protected communications across an untrusted network within a day, and manual courier distribution of keying material is una
- An enterprise wants a central service that issues session keys on demand to two internal applications that share no key with each other. Each application already shares a long-term key with that centr
- An archive service encrypts each large file with a freshly generated symmetric key, then protects that symmetric key with the recipient's public key before sending both. The architect must name this c
- A cryptographic hash does not provide confidentiality
A hash produces a fixed-length digest intended to make reversal and collisions infeasible; it does not use a decryption key to recover plaintext. Use it for integrity constructions and fingerprints, not to hide predictable sensitive values by itself.
9 questions test this
- A messaging design must conceal the content of each transaction record and let the receiver detect any tampering with that record in transit. The architect wants one mechanism to deliver both properti
- A data-protection design replaces each customer reference with a pseudonym in the analytics store. Support staff must still be able to recover the original reference through a controlled process. Whic
- An ingest service stores the digest of every uploaded document so that a later upload of the same content can be recognized without keeping a second copy. Which property of the hash function makes thi
- Two internal services already share a symmetric key. The architecture must let the receiver detect unauthorized modification of each message and confirm which service sent it. Proof of origin usable b
- A privacy design replaces each customer's national identifier with the digest of that identifier and claims the digest keeps the identifier confidential. The identifier follows a short, predictable fo
- Two partner organizations pseudonymize the same customer identifier with the same unkeyed digest function and then exchange datasets for joint analysis. The architect is asked to state the residual pr
- A team argues that storing only the digest of each personal record satisfies a regulatory requirement to encrypt that data at rest. The architect must base the review on how a digest differs from a ci
- A distribution design publishes each firmware image beside an unprotected digest so that recipients can detect corruption. A reviewer notes that an attacker who can alter the image can also post a mat
- A messaging design must conceal the content of each transaction record and let the receiver detect any tampering with that record in transit. The architect wants one mechanism to deliver both properti
- Cryptographic module validation applies to a defined module boundary
FIPS 140-3 validation provides assurance about a cryptographic module's specified implementation and boundary. It does not certify the security of the entire application, key-management process, protocol design, or surrounding system.
7 questions test this
- An integrator must determine exactly which components lie inside a software module's cryptographic boundary and which services the module offers when it runs in its approved mode. Neither fact is visi
- An integrator must determine exactly which components lie inside a software module's cryptographic boundary and which services the module offers when it runs in its approved mode. Neither fact is visi
- An integrator must determine exactly which components lie inside a software module's cryptographic boundary and which services the module offers when it runs in its approved mode. Neither fact is visi
- A procurement standard demands two separate pieces of evidence for a cryptographic component: that it uses approved cryptography, and information about the company that builds and controls it. The bid
- An architect must choose between two validated modules that implement identical approved algorithms, for deployment in unattended roadside cabinets where an adversary can handle and open the enclosure
- Installers deploy a validated hardware module in an unattended kiosk without following the configuration instructions in the module's non-proprietary security policy, and the module ends up offering s
- A vendor markets a storage appliance as FIPS 140-3 validated, and a certificate does exist for the cryptographic library the appliance embeds. The appliance ships with a firmware release later than th
- Implementation attacks can defeat sound algorithms
Threat models should include side channels, weak randomness, protocol misuse, key exposure, fault attacks, and insecure error handling in addition to mathematical attacks. Selecting an approved algorithm does not compensate for an implementation that leaks keys.
7 questions test this
- Smart meters installed on customer premises sign their readings with an approved algorithm. A laboratory recovers the signing key by correlating the power the meter draws with the operations it is per
- A payment terminal checks a signature over its firmware at boot before handing control to it. Researchers induce brief voltage glitches on the power rail during that check and make the terminal accept
- A payment terminal checks a signature over its firmware at boot before handing control to it. Researchers induce brief voltage glitches on the power rail during that check and make the terminal accept
- A review of a service that verifies message authentication codes finds that the comparison stops as soon as the first differing byte is reached, and an attacker on the network can observe how quickly
- A programme replaces one cryptographic library with a different implementation of the same approved algorithms and key sizes, and the schedule treats the change as like-for-like because the approval s
- Smart meters installed on customer premises sign their readings with an approved algorithm. A laboratory recovers the signing key by correlating the power the meter draws with the operations it is per
- A service decrypts submitted tokens and answers with one message when the decrypted structure is malformed and a different message when the integrity check fails. An assessor uses that difference to r
- Cryptographic lifecycle planning includes standards transition
Inventory algorithms, keys, certificates, protocols, dependencies, and protected-data lifetimes so systems can migrate before current protection becomes inadequate. Long-lived data may require transition earlier than short-lived data because attackers can retain ciphertext for later decryption.
5 questions test this
- A migration programme lists the algorithms configured in the applications its own teams build and declares discovery complete. The architect points out that a large part of the estate's cryptography s
- A partner link carries records that must stay confidential for decades, and the key-establishment algorithm protecting it is scheduled for withdrawal several years from now. The programme proposes to
- A programme replaces the signature algorithm used by a workforce authentication system, and every party that presents or accepts those credentials has to move with it. The architect is asked what will
- Guidance announces that an algorithm the organisation relies on will no longer provide adequate protection after a published date. The operations team answers by shortening cryptoperiods and rekeying
- A utility procures controllers whose firmware-verification code is fixed in read-only memory at manufacture, and the fleet is expected to remain in the field for decades. The procurement specification
- The FIPS 140-3 level must fit the application and environment
FIPS 140-3 defines four increasing qualitative module-security levels, not one universal assurance target. Select a validated module level whose protections fit the application's security requirements, data sensitivity, operating environment, and exposure rather than choosing a level solely because it is higher.
7 questions test this
- A cryptographic module already deployed for an internal scheduling tool will be reused unchanged to protect regulated payment records. The programme records no cryptographic action for the change, bec
- An architect must choose between two validated cryptographic modules for equipment installed in unstaffed branch offices, where physical protection carries most of the design risk. The procurement sum
- An architect is drafting the cryptographic requirement for a claims-processing platform, and the procurement standard must name the FIPS 140-3 security level that the embedded module has to hold. The
- Two key stores in the same enterprise hold keying material for different systems: one protects the patient identifiers in a clinical records index, and the other protects a staff canteen menu service.
- A design team rejects a module validated at the standard's lowest security level, arguing that such a validation demonstrates nothing at all about how the module protects keying material. The architec
- A programme is shortlisting cryptographic modules from several suppliers and cannot commission laboratory testing of its own. Each candidate carries a validation issued under the Cryptographic Module
- An enterprise is deploying validated cryptographic modules into unattended field terminals, and each validation entry states the security level the module met under test. The architecture document mus
- At-rest encryption primarily protects stored representations
Disk, volume, file, object, or database encryption can protect data when storage media or copies are obtained without authorization. It does not protect plaintext after an authorized process has unlocked and read the data.
3 questions test this
- A hospital group is retiring self-encrypting drives from a storage array and proposes cryptographic erase as the purge method so the units can leave the site the same week. Which condition must the ar
- A laptop standard credits full disk encryption with pre-boot authentication as the control that satisfies the organization's data-protection requirement. The architect documents the residual risk by s
- Which storage encryption approach limits plaintext exposure to the moment a user explicitly authenticates to an individual protected item, so that unopened items stay encrypted while the workstation i
- Transit protection should authenticate endpoints as well as encrypt traffic
Use a protocol such as properly authenticated TLS or IPsec when data needs confidentiality and integrity over an untrusted path. Encryption without peer authentication can establish a protected channel to an attacker.
5 questions test this
- A proposal secures a partner data feed with unauthenticated Diffie-Hellman key agreement, arguing that the payload is encrypted either way. The reviewing architect names the primary risk this creates.
- Two partner organizations expose machine-to-machine APIs to each other across the public internet. Each side must be able to prove during channel establishment which counterpart it is talking to. Whic
- Two application servers in different zones of a data centre exchange sensitive records. Neither application can be modified to add its own protection, and the traffic must be authenticated and encrypt
- Which protection keeps a business document readable and verifiable only by its originator and final recipient when it is relayed through a chain of brokers, each of which is itself an endpoint of the
- Which client-side verification step establishes that the certificate presented during a TLS handshake actually belongs to the particular service the client set out to reach, rather than to another wor
- In-use protection narrows plaintext exposure during computation
Trusted execution environments and secure enclaves can isolate code and data while they are processed and can support attestation of execution state. They reduce exposure to other platform layers but still depend on correct code, trusted roots, and sound key release policy.
6 questions test this
- Which capability lets a relying party obtain cryptographic evidence that the code and platform actually executing a remote workload match the configuration the party approved, before it releases regul
- A data-sharing consortium admits a partner workload only after a verifier appraises the signed attestation evidence the workload produces. To cut round trips, the operator proposes storing that eviden
- Which design responsibility remains with the development team after an application is moved into a trusted execution environment, given that the environment protects the code and data it holds from in
- A regulated tenant moving to a public cloud will not accept the provider's hypervisor inside its trust boundary, and its off-the-shelf applications cannot be rebuilt or re-linked. Which confidential-c
- A tenant's workload runs on shared cloud hosts. The architect must reduce the risk that another workload or a compromised platform layer reads the tenant's data out of system memory while it is being
- A confidential-computing design must ensure the key protecting a customer's dataset becomes available to an enclave only when the enclave's reported state matches the approved configuration. Which key
- End-to-end encryption avoids plaintext at intermediaries
With link encryption, each network hop may decrypt and re-encrypt data, so intermediaries can see plaintext. End-to-end encryption keeps content protected between communicating endpoints, although intermediaries may still observe routing metadata.
Trap Hop-by-hop link encryption
6 questions test this
- A finance division sends transaction files across a leased circuit that the carrier already protects with link encryption. The architect still requires protection applied by the sending application an
- Which cryptographic arrangement keeps message content unreadable to a carrier's intermediate nodes and at the same time conceals the outer addressing of every frame from anyone monitoring the leased s
- A carrier protects a multi-node backbone with link encryption, and every intermediate node decrypts and re-encrypts each frame it forwards. The architect must explain to the risk committee why those n
- Which architectural consequence follows when a clearing house that relays trade messages protected between partner applications is permitted to read and rewrite the body of each message before forward
- Which characteristic of traffic protected by end-to-end encryption between two hosts stays available in real time to an adversary who is positioned on an intermediate network segment and can observe e
- A retailer terminates every customer session at its perimeter load balancer and then forwards the requests to application servers over the internal network with no protection applied. The architect la
- Authenticated encryption protects confidentiality and detects modification
Select an approved authenticated-encryption construction when ciphertext confidentiality and integrity are both required. Encryption without an integrity mechanism can permit undetected manipulation even when plaintext remains unreadable.
6 questions test this
- A development team proposes to encrypt records with a block cipher mode and to protect their integrity with a separate message authentication computation, rather than selecting an approved authenticat
- A team places full customer records in the associated-data input of an authenticated-encryption operation so that a downstream service can index them without holding any key, and the architect rejects
- A payment platform encrypts each message with a confidentiality-only mode before placing it on a queue that a third party operates, and nothing verifies the ciphertext when the message is read back. W
- Which assurance must a design supply before AES in Galois/Counter Mode may be deployed across an embedded fleet whose devices cannot reliably preserve counter state across restarts, power failures and
- Which handling does published guidance require for received packets whose authentication tags fail verification, so that the receiver's response cannot be used by an attacker to learn the integrity re
- A team wants to assemble its own combination of an encryption mode and a message authentication computation instead of selecting an approved authenticated-encryption mode. The architect records the pr
- Envelope encryption separates data keys from key-encryption keys
Encrypt data with a data-encryption key and protect that key under a separately managed key-encryption key. This supports scalable data protection and centralized rotation of the wrapping layer without using one long-term key directly for all bulk data.
6 questions test this
- Which statement describes what must happen to a key-encryption key that has been retired from further wrapping operations once its originator-usage period ends, while archived data keys that were wrap
- Which consideration decides whether one data-encryption key should protect an entire document repository or whether each document should instead receive its own key that is wrapped under a shared key-
- A central key-management service wraps and stores the long-lived data-encryption keys of an enterprise archive under a single key-encryption key. Which requirement does published guidance place on tha
- A shared hosting design keeps the key-encryption key and the wrapped data-encryption keys in the same application database, because the platform offers no separate key store. The architect records the
- A multi-tenant platform currently wraps every tenant's data keys under one key-encryption key that the provider holds. The architect proposes a change that limits how far the disclosure of a single wr
- A design encrypts each stored object under its own data-encryption key and keeps the wrapped form of that key in the same bucket as the object it protects. The architect states the condition that make
- Digital signatures authenticate data but do not conceal it
A valid signature can provide integrity, origin evidence, and public verification according to the certificate and key trust model. Encrypt separately when the signed content also requires confidentiality.
6 questions test this
- A programme office exchanges S/MIME messages with a partner over public relay servers. The design must keep both the message body and the identity of the individual staff signer hidden from every rela
- An email gateway encrypts each outbound message for the recipient organisation and then signs the resulting ciphertext with the gateway's own certificate. The receiving partner verifies that signature
- An agency must publish a policy record set that its authoring system has already signed, and personal data must be removed from the released version. A first attempt fails verification at the public s
- A relying party receives a contract file whose signature verifies mathematically against a public key supplied inside the same file. No certificate from a known issuer accompanies it. Which additional
- A regulated firm stores its transaction records with an outsourced archive operator. Each record is digitally signed by the originating system before it is transferred, and the operator stores the rec
- A programme office exchanges S/MIME messages with a partner over public relay servers. The design must keep both the message body and the identity of the individual staff signer hidden from every rela
- TLS 1.3 forward secrecy does not make 0-RTT replay-safe
TLS 1.3 (EC)DHE key exchanges provide forward secrecy, while PSK-only use can forfeit it. Its 0-RTT mode reduces connection latency but lacks inherent replay protection, so allow early data only for operations safe to replay and require application-level duplicate handling where applicable.
- Key generation requires approved unpredictable randomness
Generate keys with an approved random bit generator and enough entropy for the intended algorithm and strength. A long key produced from predictable input remains weak regardless of its nominal bit length.
5 questions test this
- A team plans to raise the assurance of its stored records by issuing longer symmetric keys, while continuing to seed those keys from the same generator the platform uses today. Which factor determines
- A symmetric key that protects a records archive has been disclosed to an unauthorised party, and the architecture must state how its replacement will be produced before the archive is re-encrypted und
- A design review of a payment platform finds that its data-encryption keys are produced by a software routine seeded from the host clock and the current process identifier, even though every key is iss
- Four business units must share one symmetric key, and none of them operates a key-generation capability of its own. The architecture team needs a source for that key which every unit is prepared to re
- An architect is writing the cryptographic standard for a new platform and must state where symmetric keys are produced, so that the random value behind each key never exists outside the protected boun
In key agreement, both parties contribute information used to derive keying material rather than one party selecting and sending the final secret key. Bare Diffie-Hellman needs authentication from the surrounding protocol to resist man-in-the-middle attacks.
Trap Unauthenticated Diffie-Hellman
7 questions test this
- A sender obtains the intended receiver's public key, generates a symmetric key inside its own module, encrypts that symmetric key under the receiver's public key, and sends the resulting ciphertext ke
- Two newly built sites are to establish keys automatically once they are running, but on the day they are commissioned they hold no secret in common and no certificate infrastructure yet reaches either
- Two data centres exchange bulk records every night. Their key-establishment scheme has each side contribute only its own certified long-term key pair, and no short-term value is introduced by either p
- An approved key-agreement scheme first computes a shared secret value from the two parties' contributions, and the architecture must state how the traffic-protection keys are obtained from that value.
- Two peers complete an approved key-agreement transaction and each derives keying material from the resulting shared secret, but neither has yet received any evidence that the other actually holds iden
- An approved key-establishment procedure produces secret keying material as a function of information contributed by both participants, so that neither of them can predetermine the resulting value inde
- A regulator requires that recorded sessions between a bank's public service and its customers stay protected even if the service's long-term private key is disclosed years afterwards. The service term
- Key transport securely delivers a key selected by one party
In key transport, one party generates or obtains keying material and protects it for delivery to another party. This differs from key agreement, in which the resulting shared secret is derived from contributions by both sides.
7 questions test this
- A sender obtains the intended receiver's public key, generates a symmetric key inside its own module, encrypts that symmetric key under the receiver's public key, and sends the resulting ciphertext ke
- Two newly built sites are to establish keys automatically once they are running, but on the day they are commissioned they hold no secret in common and no certificate infrastructure yet reaches either
- A data-encryption key has to be moved across an untrusted path to another cryptographic module, and the receiving module must be able to detect any alteration of the key in transit as well as keep its
- An architect reviews a proposal in which a single key pair would serve both to receive protected session keys sent by trading partners and to produce the organisation's code-signing signatures. Which
- A symmetric key must be loaded by hand into a cryptographic module at a remote site. The organisation requires that no member of staff involved in the process can learn the whole key value at any stag
- An approved key-establishment procedure produces secret keying material as a function of information contributed by both participants, so that neither of them can predetermine the resulting value inde
- In a large enterprise a central service creates each session key and hands both communicating subscribers their own protected copy of it, and neither subscriber contributes any keying material of its
- Key distribution must protect both key secrecy and source authenticity
Secret and private keying material needs confidentiality during distribution, while all key associations need integrity and authentic binding to the intended party and purpose. A confidential channel to an unauthenticated recipient can deliver a key securely to the wrong party.
6 questions test this
- A distribution package carries an organisation's public signature-verification keys together with the domain parameters those keys are used with. Key-management guidance names one protection that shal
- Key-management guidance requires confidentiality protection for only part of the material that travels in a key distribution, while integrity protection applies to all of it. Which item of that materi
- A key-distribution scheme wraps every symmetric key under an approved algorithm and moves it over a channel offering strong confidentiality, yet nothing in the scheme establishes which party is receiv
- A key-processing facility produces human-readable key material that has to reach three branch sites by hand rather than over a network, and the organisation does not intend to encrypt it before it lea
- An organisation is deciding how key material will reach the cloud key-management service that protects its records. One team proposes generating keys in the organisation's own hardware and importing t
- A certification authority binds a subject name to a public key that arrived in an enrolment request. A reviewer warns that, without one further check, an attacker could obtain a certificate for a publ
- A cryptoperiod limits how long a key is authorized for use
Set cryptoperiods according to algorithm strength, key type, data volume, exposure, operational environment, and consequences of compromise. Rotation schedules should follow risk and purpose rather than use one arbitrary interval for every key.
7 questions test this
- A single symmetric key protects an extremely high-rate telemetry stream, and the volume of data encrypted under that one key grows by orders of magnitude each month. The algorithm and its mode of oper
- A symmetric key is no longer used to apply protection to new entries in a records archive, but entries protected under it years earlier must still be decrypted on demand. One part of that key's crypto
- Remote sites hold keys that can be changed only by an engineer travelling to each site with a key loader. An improvement programme proposes cutting the cryptoperiod so that every key changes monthly,
- One symmetric key has been loaded into several thousand field devices, and two operations centres each keep a recovery copy of it for continuity. A reviewer asks the architect to justify this key's cr
- Cryptoperiods are generally made longer for keys that protect stored data than for keys that protect communication exchanges, even where both keys use the same algorithm and the same key length. Which
- The cryptoperiod of a key has ended. The key material is unchanged, it remains inside its cryptographic module, and no compromise has been reported, yet legitimate entities may no longer use it to app
- A financial services firm applies one twelve-month rotation interval to every cryptographic key it holds, from short-lived session keys through to the key protecting a decade of archived statements. T
- Keys should be separated by cryptographic purpose
Do not use one key pair interchangeably for signing, encryption, authentication, and key establishment unless the approved scheme explicitly permits the combination. Purpose separation limits compromise impact and supports distinct lifecycle treatment.
7 questions test this
- A certification authority design proposes one private key to sign issued certificates and a second, separate private key to sign the revocation lists. The PKIX profile permits either arrangement and n
- A scheme uses one symmetric key to encrypt a record and then, in a separate operation, to compute a message authentication code over that same record. Guidance gives a reason why one key should not se
- A platform team protects eight unrelated applications with one cloud key-management service, and has given every one of those applications the same root key-encryption key. The security architect must
- A programme sponsor questions the cost of issuing every subscriber one key pair for signing and a second pair for key establishment, and asks the architect for the reason published guidance gives for
- Key-management guidance normally forbids a static private key-establishment key from generating digital signatures, because a key should serve a single cryptographic purpose. The same guidance names o
- An enterprise wants every private key its staff hold to be recoverable by the organisation, so that no protected material is ever lost when a person leaves. The architect reviews the proposal against
- Published guidance says a single key shall be used for only one purpose, then adds that this does not preclude one key where a single process provides more than one security service, and offers the di
- A certificate binds a public key to a named subject under an issuer's policy
A relying party must validate the certification path, validity period, intended key use, name, and revocation status before relying on the binding. The certificate does not protect the subject's private key from compromise.
4 questions test this
- After an acquisition, a manufacturer's root authority issues a CA certificate to the subsidiary's existing authority, whose certificates assert the subsidiary's own policy identifier, while the parent
- A design treats a signature that verifies under a currently valid certificate as evidence that the named subject personally approved a payment instruction of high value. Which property must hold for t
- A payments platform will trust a large hierarchy that certifies subscribers at several assurance levels, and its regulator requires the platform to refuse any certificate issued below a stated level.
- A defence agency cross-certifies a contractor's certification authority so that agency systems will accept contractor-issued certificates, and the agency's risk owner insists that authority must never
- An HSM keeps sensitive key operations inside a protected boundary
Use a hardware security module when keys must be generated, stored, and used under tamper-resistant controls with tightly governed interfaces. An HSM reduces key exposure but does not decide whether callers are properly authorized unless the surrounding design enforces that policy.
5 questions test this
- A cryptographic module is being withdrawn from service and returned to the vendor. The architecture must ensure that no secret or private key held inside the module can be recovered afterwards by phys
- An architect must protect symmetric keys that are held outside the cryptographic module, on general-purpose storage. Both the confidentiality and the integrity of the stored keys must be preserved by
- An architect is completing a system security design and must name the publication whose requirements the chosen cryptographic module has to satisfy across areas such as physical security, roles and se
- During a design review, an architect is asked to name the construct that, for a cryptographic module, is the explicitly defined continuous perimeter establishing the module's physical bounds and conta
- A payment platform has moved its transaction signing keys into a validated hardware security module. Any service account that can reach the module's client interface is now able to submit a signing re
- Key recovery is appropriate for decryption keys but hazardous for signing keys
Archive or escrow decryption keys when authorized recovery of protected data is a business requirement. Private signature keys generally should not be escrowed because another holder could create signatures as the subscriber and undermine signer accountability.
Trap Signature-key escrow
5 questions test this
- A public key infrastructure must let the organization recover encrypted mail when a user is unavailable for an extended period. It must also keep each user solely accountable for every signature made
- An organization must be able to read files that departing employees encrypted for themselves. The architect will retain a recoverable copy of exactly one key type from each employee's key set. Which k
- A central facility currently generates and distributes signing key pairs for every subscriber. Legal counsel now requires that individual subscribers be held accountable for their own signatures. Whic
- A retention rule obliges an insurer to read policy records that were encrypted years ago, well after the cryptoperiod of the keys that protected them has ended. The architect must choose where those k
- An architect is defining what the enterprise key archive will retain so that protected data stays recoverable after cryptoperiods end. One key type is excluded by NIST key-management guidance from arc
- Key backup trades recovery availability against additional exposure
Protect backup key copies at least as strongly as operational copies, control their restoration, and inventory their locations. Extra copies can prevent permanent data loss but also enlarge the set of targets that can compromise protected data.
8 questions test this
- An enterprise plans to hold wrapped copies of its production keys on a lower-cost storage tier that a different operations team owns and administers, separately from the operational key store. Which r
- A design board must decide, key type by key type, whether the enterprise will keep recoverable copies of its keying material at all, rather than re-establishing keys after a loss. Which trade-off does
- An architect is specifying how the confidentiality of the key material held in the enterprise key archive will be protected while it sits in long-term storage, separately from the operational systems
- An organization holds backup copies of its long-term keys across several facilities and third-party services. No single record shows which keys exist, who sponsors each of them, or where every copy is
- An architect reviews a proposal to back up every symmetric key used by an internal messaging system. The peers can establish replacement keys automatically within seconds whenever a key is lost or cor
- An organization will retire a records system by destroying the keys that encrypt its archives, so that the stored ciphertext can no longer be read. Those same keys were replicated to a disaster-recove
- A key-management system lets any storage administrator pull a backed-up key out of the backup store and reload it into a live service. The architect is now writing the security requirements for the ba
- An enterprise plans to hold wrapped copies of its production keys on a lower-cost storage tier that a different operations team owns and administers, separately from the operational key store. Which r
- Certificate revocation stops future reliance but does not erase past exposure
Publish and check revocation status promptly when a private key or binding is no longer trustworthy. Revocation does not recover a compromised private key, decrypt previously captured ciphertext, or invalidate every historical signature automatically.
8 questions test this
- An enterprise revokes a subscriber's public key because the subscriber's registered mail address changed. The private key is not suspected of compromise, and more than a year remains in the key's cryp
- A relying party receives an Online Certificate Status Protocol response of good for a certificate presented during a session handshake. The design documentation must state precisely what that response
- A certification authority's private signing key has been disclosed. Investigators have already established that the attacker can mint fraudulent certificates under that authority, and relying parties
- A certification authority learns on 20 March that a subscriber's private key was disclosed on 6 March, and the certificate is revoked that day. Relying parties need to see when the key actually stoppe
- A private signature key is found to have been compromised on day 15 of its cryptoperiod. A receiver holds a message signed on day 1 that has stayed under continuous physical protection since it arrive
- An adversary has archived ciphertext that partner systems encrypted to a subscriber's public key. The subscriber's private key was disclosed last week, and the certification authority revoked the cert
- A certification authority revokes a subscriber's certificate because the subscriber has left the organization. Nothing suggests that the private signature key was disclosed. Relying parties hold docum
- Two organizations protect a batch file transfer with a shared symmetric key that they exchanged directly and registered with no key-management infrastructure. One party decides to terminate the key's
- Key compromise response requires more than scheduled rotation
Stop use, revoke or distrust affected credentials, generate replacement keys, distribute new trust, assess exposed data, and re-protect information where required. Waiting for the normal cryptoperiod to expire leaves a known compromised key active.
8 questions test this
- One symmetric key protects message traffic among twelve business units. The key store of a single unit is breached and the key is exposed. Managers propose replacing the key for that unit alone and re
- Key-management guidance assigns responsibility for reporting a possible key compromise, and an enterprise procedure is being written to reflect that assignment. The procedure will be audited against t
- A key that encrypted seven years of customer records is compromised. It has been revoked, a replacement key is in service, and all new records are protected under the new key. Retention rules require
- A certification authority's private signing key has been disclosed. Investigators have already established that the attacker can mint fraudulent certificates under that authority, and relying parties
- After a key compromise, an enterprise revokes the key, generates a replacement, and notifies the relying parties it knows about. The architect must add the plan element that keeps systems still holdin
- A private signature key is found to have been compromised on day 15 of its cryptoperiod. A receiver holds a message signed on day 1 that has stayed under continuous physical protection since it arrive
- An adversary has archived ciphertext that partner systems encrypted to a subscriber's public key. The subscriber's private key was disclosed last week, and the certification authority revoked the cert
- An archive service uses one symmetric data-encryption key, and that key is confirmed compromised. Replacement keys cannot be provisioned until next week, and business owners want to know what the serv
- Cryptographic erasure renders encrypted data inaccessible by destroying keys
Crypto erase is effective only when strong encryption covered the target data and all usable copies of the relevant keys can be destroyed. Surviving key backups or plaintext copies defeat the sanitization claim.
5 questions test this
- A storage team performs cryptographic erase by sanitizing the wrapped copy of a drive's media-encryption key. During normal operation that drive had unwrapped the key into working memory and written i
- A managed service escrows the media-encryption key of every laptop in a key-management server that another team administers. The storage team plans to rely on cryptographic erase when the laptops are
- Self-encrypting drives will be redeployed from a sensitive system to another internal system, and cryptographic erase is to be applied first. Recovery of the target data must remain infeasible under s
- Cryptographic erase has been completed on a batch of solid-state drives that will be returned at the end of a lease. The meaning of verification for that operation must be settled before the drives le
- A retention rule will require an enterprise to render specific records held in a provider's object storage service unrecoverable at a fixed date. The provider keeps replicas of those records across po
- Split knowledge prevents one custodian from knowing the complete secret
Divide sensitive key material or activation information so no single participant possesses the whole value. Merely requiring two approvals while one administrator still knows and can copy the full key is dual authorization, not split knowledge.
6 questions test this
- Custodians bring their key components to a console, an operator types both into a spreadsheet to combine them, and the resulting value is then entered into the cryptographic module. The components the
- A key-loading procedure requires two administrators to be present and to sign the log before the master key is entered. The senior administrator reads the full key value aloud from a sealed printout w
- An assessor must test whether an enterprise's claim of divided key custody is real rather than merely procedural. Both custodians confirm in interview that neither of them can produce the key alone, a
- A design forms a master key by joining two components end to end, one component held by each of two custodians. Each custodian therefore holds a known, fixed portion of the finished key value, and bot
- Two custodians hold separate components of a signing key, and the design is described as protected because neither can reconstruct the key alone. Once the key has been loaded and is active inside the
- A design nominates the duty shift manager as the second party for every cryptographic key operation. The manager has no cryptographic training and approves each request on the strength of the requeste
- Dual control requires two authorized actors for a sensitive key operation
Use dual control when generation, activation, recovery, export, or destruction must not be completed by one person acting alone. It can be combined with split knowledge, but the two controls address action authority and secret possession differently.
11 questions test this
- A cryptographic key-management design is being assessed against published guidance, and the assessor asks how the enterprise decided where two-party authorization applies. The design records only a ge
- A utility plans to place every cryptographic key operation in its substation control system under two-party authorization, including the operations field staff perform while restoring supply after a f
- A utility plans to place every cryptographic key operation in its substation control system under two-party authorization, including the operations field staff perform while restoring supply after a f
- A utility plans to place every cryptographic key operation in its substation control system under two-party authorization, including the operations field staff perform while restoring supply after a f
- A key-loading procedure requires two administrators to be present and to sign the log before the master key is entered. The senior administrator reads the full key value aloud from a sealed printout w
- The same two custodians have jointly authorized every key-recovery operation for three years, and both sit in one small team reporting to a single manager. An assessor questions the assumption on whic
- A cryptographic key-management design is being assessed against published guidance, and the assessor asks how the enterprise decided where two-party authorization applies. The design records only a ge
- Two custodians hold separate components of a signing key, and the design is described as protected because neither can reconstruct the key alone. Once the key has been loaded and is active inside the
- A hardware key store is configured so that one operator's activation credential is enough to bring the signing keys into a usable state after a restart. The architecture states that no individual may
- A design nominates the duty shift manager as the second party for every cryptographic key operation. The manager has no cryptographic training and approves each request on the strength of the requeste
- An enterprise policy states that two named officers must agree before any key-recovery operation is performed. The key-management system, however, will execute a recovery for whichever officer submits
Also tested in
References
- NIST SP 800-57 Part 1 Rev. 5: Recommendation for Key Management, Part 1 - General Whitepaper
- FIPS 198-1: The Keyed-Hash Message Authentication Code (HMAC) Whitepaper
- FIPS 186-5: Digital Signature Standard (DSS) Whitepaper
- FIPS 180-4: Secure Hash Standard (SHS) Whitepaper
- OWASP Password Storage Cheat Sheet
- NIST SP 800-38D: Recommendation for Block Cipher Modes of Operation - Galois/Counter Mode (GCM) and GMAC Whitepaper
- AWS Key Management Service Developer Guide: KMS Concepts
- CWE-208: Observable Timing Discrepancy
- CWE-330: Use of Insufficiently Random Values
- CWE-321: Use of Hard-coded Cryptographic Key
- NIST SP 800-131A Rev. 2: Transitioning the Use of Cryptographic Algorithms and Key Lengths Whitepaper
- FIPS 140-3: Security Requirements for Cryptographic Modules Whitepaper
- OWASP Cryptographic Storage Cheat Sheet
- NIST SP 800-52 Rev. 2: Guidelines for the Selection, Configuration, and Use of Transport Layer Security (TLS) Implementations Whitepaper
- OWASP Transport Layer Security Cheat Sheet
- Azure Confidential Computing: Overview
- NIST SP 800-90A Rev. 1: Recommendation for Random Number Generation Using Deterministic Random Bit Generators Whitepaper
- NIST SP 800-133 Rev. 2: Recommendation for Cryptographic Key Generation Whitepaper
- NIST SP 800-56A Rev. 3: Recommendation for Pair-Wise Key-Establishment Schemes Using Discrete Logarithm Cryptography Whitepaper
- NIST SP 800-56B Rev. 2: Recommendation for Pair-Wise Key-Establishment Using Integer Factorization Cryptography Whitepaper
- NIST SP 800-57 Part 2 Rev. 1: Recommendation for Key Management, Part 2 - Best Practices for Key Management Organizations Whitepaper
- OWASP Key Management Cheat Sheet
- NIST SP 800-88 Rev. 1: Guidelines for Media Sanitization Whitepaper
- FIPS 203: Module-Lattice-Based Key-Encapsulation Mechanism Standard Whitepaper
- FIPS 204: Module-Lattice-Based Digital Signature Standard Whitepaper