Cryptographic engineering

Applied cryptography architecture

Decide which cryptographic mechanisms protect which data against which adversary

A product is choosing encryption, signing or tokenisation mechanisms, or an existing choice is being questioned. The decision is which cryptographic mechanisms protect which data against which adversary. The work starts from what each mechanism protects against, who holds the key, and where plaintext still exists and ends with a cryptographic architecture assessment with mechanism decisions and residual exposure. It is most relevant to security architects and engineering leads. A useful result states what was examined, what remains uncertain and which decision the evidence can support.

Decide which cryptographic mechanisms protect which data against which adversary

  1. Starting pointProtected asset

    The starting condition this work depends on.

  2. ExaminationKey custody

    Where the consequence actually arises.

  3. DecisionResidual exposure

    The finding and its open dependencies.

Proposed working model, not exhaustive coverage.

Decision

Frame the decision before scoping the work

Questions and the evidence each one needs

Question / evidenceProtected asset
Inspect data classification and flow descriptions.
Question / evidenceKey custody
Inspect the current cryptographic inventory and library usage.
Question / evidenceResidual exposure
Inspect threat statements and compliance obligations.
Read each question against evidence already available.

The decision is which cryptographic mechanisms protect which data against which adversary. This matters to security architects and engineering leads when a product is choosing encryption, signing or tokenisation mechanisms, or an existing choice is being questioned. Name the affected system, the consequence of a wrong decision and the owner who can act. The opening conversation should establish which evidence already exists and which uncertainty is material enough to investigate.

The specific failure hypothesis is that data is encrypted at rest with a key the same service can always read, against an attacker who already has that service. It stays a hypothesis until it is examined in your own case. Existing design records, inventories or operating evidence may already resolve it, so identify the uncovered question before commissioning further work.

Mechanism

Follow the relationship that carries the consequence

Where the boundary is actually crossed

SourceProtected asset
The condition the design assumes.
CrossingKey custody
Where authority or information changes hands.
ConsequenceResidual exposure
The effect the owner must answer for.
Evidence comes from the mechanism as deployed, not as specified.

What this specialty examines

Applied cryptography architecture rests on what each mechanism protects against, who holds the key, and where plaintext still exists. Work from the mechanism as deployed and its actual key custody rather than from the standard it cites, and record where the two differ.

The examination draws on data classification and flow descriptions; the current cryptographic inventory and library usage; and threat statements and compliance obligations. Identify the owner, revision and operating context of each source. Keep an incomplete input visible, with an explanation of what its absence prevents the owner from concluding, rather than quietly treating a gap as a satisfactory result.

The tradeoff to make explicit

The tradeoff here is a stronger separation of key custody against the operational complexity it introduces. Compare the available options against the same intended outcome. If one option removes a control or moves a boundary, describe that difference before treating its lower effort as an improvement. The decision should expose the tradeoff rather than bury it in a single rating.

Preparation

Connect the inputs to the boundary examined

Preparation record for the engagement

Illustrative working format

BasisData classification and flow descriptions
Bounds the context.
MaterialThe current cryptographic inventory and library usage
Supplies the material examined.
ConditionThreat statements and compliance obligations
Exposes conditions that qualify a result.
Illustrative record; availability and handling need confirmation.

Start with data classification and flow descriptions; the current cryptographic inventory and library usage; and threat statements and compliance obligations. Each has a different job: the first establishes context, the second supplies the material to examine, and the third exposes operating conditions that may qualify a conclusion. Sanitised examples can support early work, provided the differences from the real configuration stay explicit.

The scope also needs security architects and engineering leads with the authority to inspect the relevant boundary, and agreement on what evidence would distinguish the failure in which data is encrypted at rest with a key the same service can always read, against an attacker who already has that service from acceptable behaviour. Where stakeholders disagree about intended behaviour, resolve that interpretation before classifying an observed difference as a defect.

Working sequence

Carry the question through to an accountable finding

From scoped material to a decision record

  1. EstablishState the adversary and the asset

    Set the conditions assumed.

  2. ExamineExamine the mechanism in place

    Apply the scoped check.

  3. RetainPlace the boundary deliberately

    Record evidence and the next decision.

Proposed sequence; resolve access gaps first.

State the adversary and the asset

For each protected data class, name the adversary the cryptography is meant to exclude and the point at which protection must hold. Record what is deliberately excluded.

Examine the mechanism in place

Inspect algorithm, mode, parameter and library choices, and follow where plaintext, keys and authentication tags exist at run time. Keep an unreproducible observation in the record with its reason.

Place the boundary deliberately

Decide where encryption, signing or tokenisation sits relative to the trust boundary it is meant to defend, and what remains unprotected. Hand the result over with its open dependencies attached.

Indicative artefact

Make the artefact usable by the person who owns the decision

A cryptographic architecture assessment with mechanism decisions and residual exposure

Illustrative working format

Annotated fieldAdversary and asset statements per data class
What was examined, and under which assumptions.
Annotated fieldMechanism, parameter and library findings
Each observation, linked to evidence.
Annotated fieldPlacement decisions and remaining plaintext exposure
The next decision, and its limits.
Illustrative structure, not a completed engagement.

The proposed decision artefact is a cryptographic architecture assessment with mechanism decisions and residual exposure. Depending on the agreed scope, the pack may include:

  • Adversary and asset statements per data class. Basis: the definitions, boundaries and assumptions another reviewer would need.

  • Mechanism, parameter and library findings. Observation: the findings and their interpretation, preserving adverse results and disagreement.

  • Placement decisions and remaining plaintext exposure. Decision: what the owner could do next, and what change would justify revisiting it.

Retain the selection rationale beside the result. Without it, a bounded finding is easily mistaken for complete coverage.

Illustrative scenario

Examine the question through a constructed case

A constructed case and its decision paths

Illustrative scenario

  1. SituationProtected asset

    A service encrypts a database column and stores the key in the same service's configuration.

  2. Question to examineKey custody

    Which adversary does this exclude, given that compromising the service yields both?

  3. Conditional next actionResidual exposure

    Move key custody outside the service boundary, or state plainly that the control addresses storage-media loss only.

Fictional example; no engagement or outcome is implied.

Consider an illustrative situation: a service encrypts a database column and stores the key in the same service’s configuration. The example is constructed to show how the question is framed. No client engagement, executed test or measured improvement is implied.

The question to examine is which adversary does this exclude, given that compromising the service yields both. A reasonable next action would be to move key custody outside the service boundary, or state plainly that the control addresses storage-media loss only. The decision record should state which configuration was accepted and which limitations came with it.

Scope and next action

Keep the conclusion inside the agreed boundary

Confirm fit before the next commitment

Included boundaryProtected asset
Limited to the agreed scope and configuration.
PrerequisiteData classification and flow descriptions
The owner confirms access and conditions.
Claim limitResidual exposure
An architecture assessment is not cryptanalysis. Evaluating a primitive's mathematical strength requires separately qualified specialists.
Bring the triggering change and the evidence you hold.

An architecture assessment is not cryptanalysis. Evaluating a primitive’s mathematical strength requires separately qualified specialists. Any engagement depends on an agreed scope, a qualified team and authorised access.

Bring the affected system, the inventory you already have and the obligation that prompted the question. The scope question follows from the situation in which a product is choosing encryption, signing or tokenisation mechanisms, or an existing choice is being questioned. Confirm which missing observation would change the owner’s next action.

A little more clarity

Questions to consider.

Start with the questions that shape a better decision.

When is applied cryptography architecture the right work?

It suits security architects and engineering leads when a product is choosing encryption, signing or tokenisation mechanisms, or an existing choice is being questioned. Stated plainly, the decision it supports is which cryptographic mechanisms protect which data against which adversary. If none of that applies yet, a shorter framing conversation is more useful than a scoped engagement.

What would our team need to provide?

Start with data classification and flow descriptions; the current cryptographic inventory and library usage; threat statements and compliance obligations; and performance and operability constraints. Identify the owner, revision and operating context of each. A missing input should be recorded as an evidence gap rather than assumed to be satisfactory.

How is the scope bounded?

The work examines what each mechanism protects against, who holds the key, and where plaintext still exists within an agreed boundary. An architecture assessment is not cryptanalysis. Evaluating a primitive's mathematical strength requires separately qualified specialists. State the boundary in writing before the work starts, so a later reader can distinguish what was excluded from what was missed.

What does the engagement produce?

The proposed artefact is a cryptographic architecture assessment with mechanism decisions and residual exposure. It carries adversary and asset statements per data class; mechanism, parameter and library findings; and placement decisions and remaining plaintext exposure, with the open dependencies still attached so the owner can see what the evidence does not cover.

What if our existing evidence already answers this?

Review its scope, provenance and configuration first. Work already done by security architects and engineering leads may be sufficient. Record the decision, the unresolved limitations and the change that would require another look. Further work should address a real gap.

What tradeoff should we expect to decide?

The recurring tradeoff is a stronger separation of key custody against the operational complexity it introduces. Neither side is universally correct. The engagement makes the difference explicit and leaves the choice with the owner who carries its consequence.

What would make the findings inconclusive?

Missing data classification and flow descriptions; the current cryptographic inventory and library usage; and threat statements and compliance obligations can prevent a reliable interpretation. Record the specific missing observation and its implication. The owner can supply the evidence, narrow the claim or defer the dependent decision; an incomplete case should not silently count as a pass.

Start with the decision you need to make.

Tell us about the agent workflow you want reviewed, and where you need greater clarity. Scope and availability are confirmed together.

Connected disciplines