Constant-Time Analysis: ppad-aead
- vestigia
- no secret-dependent branch or memory access found, in 2 traced executions (aarch64, x86_64)
- censor
- 6 of 6 tests passed (aarch64-linux, x86_64-linux)
executions
| execution | verdict | aarch64 | x86_64 | ||
|---|---|---|---|---|---|
| vestigia | censor | vestigia | censor | ||
| Crypto.AEAD.ChaCha20Poly1305.encrypt
Seals a message under the secret key
|
✓ no leak found | ✓ | ✓ | ✓ | ✓ |
| Crypto.AEAD.ChaCha20Poly1305.decrypt
Opens a sealed message under the secret key, accepting it or rejecting a tag it did not seal
|
✓ no leak found | ✓ | ✓ | ✓ | ✓ |
✓ no leak found✗ leak? inconclusive· not run
by execution
Crypto.AEAD.ChaCha20Poly1305.encrypt
✓ no leak of key found| contract | vestigia | censor | |
|---|---|---|---|
|
aarch64
aarch64-linux
|
arm-dit
|
✓ no line depended on the secret | ✓ instructions |
|
x86_64
x86_64-linux
|
intel-doitm
|
✓ no line depended on the secret | ✓ instructions |
inputs
| key | 32 bytes, pseudorandom |
| nonce | 12 bytes, fixed |
| AAD | 13 bytes, fixed |
| plaintext | 256 bytes, fixed |
test cases
| AEAD.encrypt (256 B) | key fixed vs random; a 12 B nonce, 32 B AAD, and 256 B plaintext drawn per pair and shared by both classes |
| host | meter | result | p | effect (mean/pair) | jitter | clip scale | clipped |
|---|---|---|---|---|---|---|---|
| AEAD.encrypt (256 B) | |||||||
| aarch64-linux | instructions | ✓ | 0.894 | [-25, 75] instr | 2.0% | 470 instr | 173/50000 |
| x86_64-linux | instructions | ✓ | 0.816 | [-71, 24] instr | 1.4% | 448 instr | 179/50000 |
instructions
instructions
Crypto.AEAD.ChaCha20Poly1305.decrypt
✓ no leak of key or expected tag found| contract | vestigia | censor | |
|---|---|---|---|
|
aarch64
aarch64-linux
|
arm-dit
arm-dit
|
✓ no line depended on the secret | ✓ instructions ×2 |
|
x86_64
x86_64-linux
|
intel-doitm
intel-doitm
|
✓ 1 invariant | ✓ instructions ×2 |
inputs
| key | 32 bytes, pseudorandom |
| ciphertext and tag | to accept: the plaintext sealed under the key, given with it; to reject: 256 and 16 bytes, fixed, sealed under no key of the runs |
| nonce and AAD | 12 and 13 bytes, fixed |
✓ invariant · 1 line the secret reaches, where no run varied
c6ki_info$defje 8865 <+0x15>branch
8852: je 8865 <+0x15> branch (taint)
test cases
| AEAD.decrypt accept (256 B) | key fixed vs random over a shared per-pair context, each sample's ciphertext and tag sealed under its own key |
| AEAD.decrypt reject (tag mismatch) | one key and context drawn per pair, both classes decrypting the same ciphertext with one tag byte corrupted: byte 0 in class A, byte 15 in class B |
| host | meter | result | p | effect (mean/pair) | jitter | clip scale | clipped |
|---|---|---|---|---|---|---|---|
| AEAD.decrypt accept (256 B) | |||||||
| aarch64-linux | instructions | ✓ | 0.969 | [-18, 53] instr | 1.2% | 334 instr | 88/50000 |
| x86_64-linux | instructions | ✓ | 0.128 | [-896, 2688] instr | 2.0% | 16.86k instr | 1/50000 |
| AEAD.decrypt reject (tag mismatch) | |||||||
| aarch64-linux | instructions | ✓ | 0.683 | [-27, 81] instr | 1.2% | 506 instr | 156/50000 |
| x86_64-linux | instructions | ✓ | 0.832 | [-25, 75] instr | 1.5% | 472 instr | 222/50000 |
instructions
instructions
instructions
instructions
appendix
method
This analysis assumes an adversary who can call the analysed functions any number of times, on public inputs of its choosing, and observe their execution at the architectural level, i.e.
- which instructions run, and so which branches are taken and how many instructions retire;
- which memory addresses are accessed, e.g. through a shared cache; and
- how long each instruction takes.
Under the ISA's data-independent-timing (DIT) contract, an instruction it covers takes a time independent of its data, so a clock adds no additional information there. For one it does not cover, the analysis takes the instruction's operands as a conservative stand-in for its time: where they vary with the secret, the property may fail, but the analysis cannot show that it does.
For any analysed function, the security property of concern is thus that its execution, as observed by the adversary, is constant with respect to its declared secrets. Or, put somewhat more formally: for a function f, with secret values s0, s1, and public input p, the adversary's observation O of its execution is identically distributed under (s0, p) and (s1, p), up to renaming of base pointers and stack addresses:
O(f, s0, p) ~ O(f, s1, p)
Microarchitectural concerns (including whether the mode the contract requires is set), physical concerns (e.g. power and electromagnetic emanation), and speculative execution concerns are considered out of scope.
The above security property is assumed, and then scrutinized in two ways:
vestigia v0.2.0 performs both taint and differential execution trace analyses. The former maps every branch and address computed from declared secrets on the path one secret takes through the function, and the latter compares traces, executed under emulation, that vary only in declared secrets, against a second run of one secret as a control. Any difference the control doesn't share directly negates the property.
censor v0.6.0 runs the function natively on many paired inputs, one class with the declared secrets fixed and the other drawing them fresh, and tests whether the number of instructions retired differs between the classes. A rejection whose controls pass is evidence that the security property doesn't hold.
The analysis is limited primarily by reachability, i.e. whether the variation in inputs yields satisfactory exploration of the trace space, or whether taint propagates faithfully. The analysis can thus falsify the assumed security property by finding a witness, but it cannot prove it.
Of note, an instruction outside the ISA's contract that runs on operands that vary with the secret is not a witness, as whether its time follows its operands is a microarchitectural concern, deemed out of scope. A division is taken to leak its operands, its latency being documented to depend on them.
A line is the set of instructions that one source line of one function compiled to, and is the unit by which the report reads a trace. A line varied if, between runs that differ only in the declared secrets, one of its branches had outcomes that differed in proportion or order, or one of its memory accesses had different addresses. An instruction outside the ISA's contract whose operands varied with the secret is read by what is known of its timing: a division, whose time is documented to depend on its operands, is a leak; any other leaves its line outside any DIT contract. Each line shown falls into one of three classes:
- leak: the line varied, or a division there ran on operands that varied, and it is a witness against the security property.
- outside any DIT contract: some other instruction outside the ISA's contract ran there on operands that varied with the secret. It is not a witness, but it is not cleared either; the contract says nothing about the instruction's time, so a finding of no leak holds everywhere but there.
- invariant: the taint analysis finds that the secret reaches the line, but no run varied there. It is not a witness, though a variation the compared secrets did not trigger could still hide there.
The header gives the number of distinct secret values the differential runs compared, for each execution on each system, beside a repeated run of one of them as the control: pseudorandom valid secrets, sampled deterministically from a fixed seed. What an execution's traces ran on, its secrets' domain and any input held fixed, is listed under its vestigia lane. Rare cases may thus remain undetected. Each execution's evidence table gives, per ISA, the contract its runs were recorded under.
A line opens onto its assembly, with each instruction the secret reached marked by what observed it: the analysis, what it saw (a branch, a memory address, a system call, or an operand), and how often. Under the differential runs that is how many times the instruction ran; under taint, how many times it ran on data computed from the secret. Each marked instruction opens onto its stack, and each frame onto the source around it. The assembly is the build's own disassembly, located by the digest of the object each run executed, and the source comes from the same build's line tables, so the instruction shown is the one that ran.
Each test case is one hypothesis about an execution: which declared secrets one class of inputs fixes and the other draws fresh, with any public inputs drawn alike in both. The cases are listed under each execution's censor lane. A case times the two classes on paired inputs, in random order, one pair at a time; batch is how many calls each reading spans. Under the instructions meter a reading is the number of instructions the function retired, which its code and inputs alone determine, so no host's noise enters it, and jitter, a call's interquartile range over its median, is near zero.
The test is sequential and anytime-valid. Evidence against the hypothesis of no difference accumulates pair by pair, as the log e-value plotted over pairs, and the case rejects if it crosses log(1/α). The p shown is anytime-valid too, so when the run stopped does not inflate it. Each pair's difference is clipped at a scale c (the clip scale) set during warmup, so a rare extreme reading can neither force nor mask a rejection; clipped counts the pairs that reached it. The effect is the anytime-valid confidence interval for the clipped mean difference per pair, plotted as a band narrowing over pairs; one that straddles zero is consistent with no difference.
A rejection counts only where censor's controls, rerun on it, pass: A/A and B/B runs, each class against itself, which can implicate the harness, though not exonerate it. Its driver names what the evidence rested on: a shift in the mean, an asymmetry, rare outliers, a difference in spread, or several at once. A pass means no evidence was found within the budget of pairs, on that host and meter, and is qualified (†) where censor found the evidence weak: high clipping, where many pairs reached the clip scale, or low power, where the effect interval stayed wide against it. The provenance's run totals give each run's family-wise α: a bound on the chance of any false rejection among its cases.
measure v0.6.10 checks the evidence before rendering it: every function's bindings to its cases must resolve, the censor runs must share one configuration, with one run per ISA and meter, the verdict must be the one the policy gate and its signed components imply, and each component must agree with the cells where both read the same evidence. Nothing quantitative is recomputed.
provenance
- target
- ppad-aead 0.3.8 (f401b53f983e5eb286e900053d29390dbd5b3e10)
- source
- https://git.ppad.tech/aead
- seed
- 0x5eed5eed5eed5eed
- censor config
- alpha=1.0e-6, budget=50000, warmup=500, batch=per-case
- aarch64-linux · instructions
- Cortex-A72 (4 cores) · linux 6.18.34 · 2026-10-31T20:18:28Z
- x86_64-linux · instructions
- AMD EPYC 7713 64-Core Processor (6 cores) · linux 6.18.57 · 2026-10-31T20:18:52Z
- aarch64-linux · instructions
- 3 cases · 150000 pairs · 0 reject · α=1.0e-6 · family α=3.0e-6
- x86_64-linux · instructions
- 3 cases · 150000 pairs · 0 reject · α=1.0e-6 · family α=3.0e-6
journal
plan a24558b32a92 · 2026-10-26 07:19–07:43 UTC · re-baselined by f774a6256ebb
| 2026-10-26 UTC | ||
| 07:19:15 | plan | 2 cells · 4 runs · plan a24558b32a92 |
| 07:19:23 | build | ppad-aead/aarch64-linux/ghc-9.10.3/llvm/O2 — 7s · store bflc3wyf |
| 07:19:30 | build | ppad-aead/x86_64-linux/ghc-9.10.3/llvm/O2 — 13s · store 4jrsagvp |
| 07:19:43 | build | censor/aead-hw/aarch64-linux/cycles+wall — 8s · store bjrqk17x |
| 07:19:51 | build | censor/aead-hw/aarch64-linux/instructions — 20s · store s1jl7a6y |
| 07:20:11 | build | censor/aead-hw/x86_64-linux/cycles+wall — 14s · store 3c2h52fn |
| 07:20:25 | build | censor/aead-hw/x86_64-linux/instructions — 12s · store q6n7ydsn |
| 07:20:37 | vestigia | decrypt_accept/aarch64-linux/diff — 3m18s · store j5akrvis |
| 07:23:55 | vestigia | decrypt_accept/aarch64-linux/taint — 2m8s · store p8zif3ds |
| 07:26:03 | vestigia | decrypt_accept/x86_64-linux/diff — 1m38s · store 5bym111n |
| 07:27:41 | vestigia | decrypt_accept/x86_64-linux/taint — 53s · store 7qg2dsfj |
| 07:28:34 | vestigia | decrypt_reject/aarch64-linux/diff — 1m44s · store asczydql |
| 07:30:18 | vestigia | decrypt_reject/aarch64-linux/taint — 1m49s · store xca6hb69 |
| 07:32:07 | vestigia | decrypt_reject/x86_64-linux/diff — 1m2s · store m5570c0y |
| 07:33:09 | vestigia | decrypt_reject/x86_64-linux/taint — 57s · store z2mjf2hm |
| 07:34:06 | vestigia | encrypt/aarch64-linux/diff — 1m45s · store haz1v3q1 |
| 07:35:51 | vestigia | encrypt/aarch64-linux/taint — 1m49s · store qyxhzhlk |
| 07:37:40 | vestigia | encrypt/x86_64-linux/diff — 1m1s · store qx1jr4z7 |
| 07:38:41 | vestigia | encrypt/x86_64-linux/taint — 50s · store jwm4bh7m |
| 07:39:31 | censor | aead-hw/aarch64-linux/cycles+wall — 26s · clear · sealed 397bc4a9a3a2 |
| 07:39:57 | censor | aead-hw/aarch64-linux/instructions — 15s · clear · sealed 7c2da311cf58 |
| 07:40:12 | censor | aead-hw/x86_64-linux/cycles+wall — 24s · clear · sealed 6a65b6739b37 |
| 07:40:36 | censor | aead-hw/x86_64-linux/instructions — 23s · clear · sealed 79ee2062753e |
| 07:43:24 | decisions | 4 decisions signed · ledger 297dee00e565 |
| 07:43:24 | gate | pass — 0 sites · 0 violations |
| 07:43:25 | bundle | gate pass — 0 sites · 0 violations |
plan f774a6256ebb · 2026-10-31 20:01–20:19 UTC
| 2026-10-31 UTC | ||
| 20:01:07 | plan | 2 cells · 2 runs · plan f774a6256ebb · re-baselined from a24558b32a92 |
| 20:01:07 | build | ppad-aead/aarch64-linux/ghc-9.10.3/llvm/O2 — 6s · store 8qbp6nh0 |
| 20:01:13 | build | ppad-aead/x86_64-linux/ghc-9.10.3/llvm/O2 — 13s · store ms5pskw4 |
| 20:01:26 | build | censor/aead-instructions/aarch64-linux/instructions — 21s · store plq97fn8 |
| 20:01:47 | build | censor/aead-instructions/x86_64-linux/instructions — 27s · store h0lhqvfs |
| 20:02:14 | vestigia | decrypt_accept/aarch64-linux/diff/a72 — 1m45s · store 2z4izs88 |
| 20:03:59 | vestigia | decrypt_accept/aarch64-linux/taint — 1m50s · store 3yza399f |
| 20:05:49 | vestigia | decrypt_accept/x86_64-linux/diff/zen3 — 1m5s · store k8fr4yq2 |
| 20:06:54 | vestigia | decrypt_accept/x86_64-linux/taint — 51s · store n0b68bhw |
| 20:07:45 | vestigia | decrypt_reject/aarch64-linux/diff/a72 — 1m41s · store h751j8sh |
| 20:09:26 | vestigia | decrypt_reject/aarch64-linux/taint — 1m49s · store 2adb6zyn |
| 20:11:15 | vestigia | decrypt_reject/x86_64-linux/diff/zen3 — 59s · store zp96xbbf |
| 20:12:14 | vestigia | decrypt_reject/x86_64-linux/taint — 49s · store 0r4p60f3 |
| 20:13:03 | vestigia | encrypt/aarch64-linux/diff/a72 — 1m43s · store sbha57ck |
| 20:14:46 | vestigia | encrypt/aarch64-linux/taint — 1m49s · store 3y9rj9da |
| 20:16:35 | vestigia | encrypt/x86_64-linux/diff/zen3 — 1m · store vsyda9xx |
| 20:17:35 | vestigia | encrypt/x86_64-linux/taint — 49s · store 5h306jxk |
| 20:18:24 | censor | aead-instructions/aarch64-linux/instructions — 15s · clear · sealed ca348378c655 |
| 20:18:39 | censor | aead-instructions/x86_64-linux/instructions — 23s · clear · sealed 8366b7713f2b |
| 20:19:02 | vestigia | decrypt_accept/aarch64-linux/diff/a72 — 3s · store 2z4izs88 |
| 20:19:05 | vestigia | decrypt_accept/aarch64-linux/taint — 3s · store 3yza399f |
| 20:19:08 | vestigia | decrypt_accept/x86_64-linux/diff/zen3 — 3s · store k8fr4yq2 |
| 20:19:11 | vestigia | decrypt_accept/x86_64-linux/taint — 3s · store n0b68bhw |
| 20:19:14 | vestigia | decrypt_reject/aarch64-linux/diff/a72 — 3s · store h751j8sh |
| 20:19:17 | vestigia | decrypt_reject/aarch64-linux/taint — 3s · store 2adb6zyn |
| 20:19:20 | vestigia | decrypt_reject/x86_64-linux/diff/zen3 — 3s · store zp96xbbf |
| 20:19:23 | vestigia | decrypt_reject/x86_64-linux/taint — 3s · store 0r4p60f3 |
| 20:19:26 | vestigia | encrypt/aarch64-linux/diff/a72 — 2s · store sbha57ck |
| 20:19:28 | vestigia | encrypt/aarch64-linux/taint — 3s · store 3y9rj9da |
| 20:19:31 | vestigia | encrypt/x86_64-linux/diff/zen3 — 3s · store vsyda9xx |
| 20:19:34 | vestigia | encrypt/x86_64-linux/taint — 3s · store 5h306jxk |
| 20:19:37 | decisions | 4 decisions signed · ledger f7d39db53f76 |
| 20:19:37 | gate | pass — 0 sites · 0 violations |
| 20:19:37 | bundle | gate pass — 0 sites · 0 violations |