Solutions · Encrypted and confidential inference
Encrypted and confidential inference¶
Encryption and enclaves protect content while it is processed. They do not decide whether it may be processed at all.
Two technologies let a model work on data its operator cannot read. A trusted execution environment (TEE) confines plaintext to attested hardware. Fully homomorphic encryption (FHE) lets a service compute on ciphertext without holding a decryption key. Both answer the question who can read this while it is processed? Neither answers is this use permitted, for which purpose, and what may happen to the answer? The Open Privacy Protocol (OPP) is the policy layer that answers the second question, whatever technology answers the first.
Five layers, five questions¶
| Layer | The question it answers |
|---|---|
| TLS | Is the connection protected? |
| Redaction and pseudonymization | Which values are removed or replaced? |
| FHE | Can the service compute without reading? |
| TEE | Is plaintext confined to attested hardware? |
| OPP | Is this use permitted, under what conditions, and can that be shown? |
The first four are ways to protect content. OPP does not replace any of them and does not encrypt anything. It says which of them a given use requires, and records which one was used.
What FHE does not cover¶
FHE hides the content of a request from the service. Four things stay outside it:
- Metadata. The time, origin and size of a request are still visible.
- Correct computation. FHE does not prove that the service ran the model it claims.
- The client. The software that encrypts the content and holds the key sees everything, so it is fully
trusted. For an
fhemode, theverifiedassurance level means the client was verified: which build encrypted the content and who generated the key. - The decrypted answer. Once the result is decrypted it is ordinary plaintext again. Where it may go next is a new sharing decision.
A TEE has its own limits: plaintext exists inside the enclave, and the claim rests on an attestation that someone has to check and that expires.
How OPP describes it¶
Since specification 0.2, three pieces work together.
1. A destination registry lists the services an organization actually uses and how each one processes
content. Each mode states a mechanism (plaintext, tee, fhe, mpc or local), who holds the keys, who
has plaintext access, retention, and the evidence for the claim. One fictional entry from the
conformance fixtures, with its two modes:
opp: "0.2.0.dev0"
name: conformance-destinations
destinations:
- id: vendor-x
label: Vendor X hosted models
category: external_ai
modes:
- id: api
mechanism: plaintext
plaintext_access: provider
key_custody: provider
retention: retained
assurance: asserted
- id: enclave
mechanism: tee
plaintext_access: enclave
key_custody: provider
retention: none
region: eu
assurance: verified
evidence:
- {kind: attestation, ref: "attestation-policy-7", issued: "2026-06-30", expires: "2027-06-30", verifier: static}
A claim that only the provider makes is asserted and never satisfies a rule. approved needs a recorded
approval, contract or audit report. verified needs an attestation or a known client build. Evidence that
has expired no longer counts. The level is recorded by whoever maintains the registry. The reference
engine checks that the evidence is listed and has not expired; it does not verify an attestation or a
client build itself.
2. A conditional override in the privacy model says when restricted content may go there:
purposes:
- {id: medical_analysis, label: Clinical analysis of patient records}
rules:
overrides:
- id: health-private-compute
target: special.health
destination: external_ai
purpose: medical_analysis
requires:
any_of:
- {mechanism: fhe, key_custody: client, plaintext_access: none}
- {mechanism: tee, assurance: verified, regions: [eu]}
action: allow
obligations: [enforce_mode, no_plaintext_fallback, check_output, record_decision]
reason: Approved by the data protection officer for clinical analysis on protected compute.
Health data is restricted, so the default rules block it for every external AI service. This override
allows it for one purpose, through encrypted computation with client-held keys or through a verified
enclave in the EU, and attaches four obligations.
3. A decision is what the query engine returns. The same content gets different answers depending on the mode and the purpose:
| Request | Action | Rule | Why |
|---|---|---|---|
vendor-x, mode api, purpose medical_analysis |
block |
health-private-compute |
A plaintext API does not meet the requirement |
vendor-x, mode enclave, purpose summarisation |
block |
default.restricted.external_ai |
The override is for another purpose |
vendor-x, mode enclave, no purpose |
block |
default.restricted.external_ai |
Protected compute alone grants nothing |
vendor-x, mode enclave, purpose medical_analysis |
allow |
health-private-compute |
Verified enclave in the EU, authorized purpose |
| The same request after the attestation expires | block |
health-private-compute |
Expired evidence no longer counts |
These rows are cases from conformance/cases.json;
every conforming query engine must return exactly these answers. For the allowed request, the decision
looks like this (digests shortened):
{
"verdict": "allow",
"destination": "external_ai",
"findings": [
{
"class": "special.health",
"sensitivity": "restricted",
"action": "allow",
"rule": "health-private-compute",
"reason": "Approved by the data protection officer for clinical analysis on protected compute."
}
],
"decision": {
"id": "dec-20261203-0001",
"opp": "0.2.0.dev0",
"at": "2026-12-03T10:15:00Z",
"expires": "2026-12-03T10:20:00Z",
"stage": "input",
"destination": {"category": "external_ai", "id": "vendor-x", "mode": "enclave", "mechanism": "tee", "assurance": "verified"},
"purpose": {"id": "medical_analysis", "status": "authorised"},
"model": {"name": "conformance", "digest": "sha256:5d1c..."},
"registry": {"name": "conformance-destinations", "digest": "sha256:a07e..."},
"content_digest": "sha256:91b3...",
"rules": ["health-private-compute"],
"obligations": ["enforce_mode", "no_plaintext_fallback", "check_output", "record_decision"],
"evidence": ["attestation-policy-7"],
"detectors": [{"id": "rules", "covers": ["API_KEY", "CARD", "EMAIL", "IBAN", "ID_NUMBER", "IP", "MAC", "PHONE", "SECRET"]}]
}
}
The decision holds no data value, so it can be kept as a record. It applies only to that content, that destination and mode, until it expires. It is not signed: the digests tie it to the content, the model and the registry, and keeping the record safe from changes is up to whoever stores it.
What the obligations mean here¶
| Obligation | In this example |
|---|---|
enforce_mode |
Send only to vendor-x through its enclave mode |
no_plaintext_fallback |
If the enclave is unavailable, do not fall back to the ordinary API; ask for a new decision |
check_output |
Ask for a decision on the model's answer before it goes anywhere else |
record_decision |
Keep the decision where it can be audited |
Obligations are carried out by the enforcement point: the gateway, proxy, application or agent
runtime that sends the content. The query engine is the decision point. A sender that receives a
decision and ignores an obligation does not conform, and a check that an agent may skip is advice, not
enforcement. When a caller has not declared that it handles obligations, the engine answers review
in place of a less strict verdict.
Where encrypted inference stands today¶
Encrypted LLM inference is at research-preview stage. As of December 2026, a first public preview runs a small open model at about two tokens per second, by its vendor's own figures. Ordinary APIs and local models remain the common case. Most organizations will therefore mix modes for years: some data to a plaintext API after pseudonymization, some to an enclave, some only to a local model, and perhaps a small share to an encrypted service. One set of rules that names the mode each use requires is what keeps that mix manageable.
Next steps¶
- Core concepts: registry, conditional overrides and decisions
- Specification, sections 2.6 to 2.8 and 5 to 5.3
- Confidential AI: describing what is confidential in the first place
- Private LLM deployments: routing between local and hosted models