Experiments
Thirty studies, from experiments and proofs to independent reviews and a literature survey. Most of them work out how to sign without leaking the key.
The experiments live on a separate, long-lived research branch of the repository. It is never merged into the code that ships. Each study has its own folder, and most hold a report, the scripts that produced it and its raw data. When one proves its point, the result is written into the signer specification and built into the code through the normal review process. Negative results stay on the record, because knowing what does not work is part of the result.
None of these experiments makes a constant-time or security claim on its own. Most of them run on models and simulated keys, and step counts are not timings.
In the code: adopted on the development branch, in the signer specification or the code. The signer's pieces are prototypes behind a feature that is off by default, and the specification's reduction section is still a design under review. Evidence: a measurement or proof that a later decision rests on. Proposal: awaiting a design decision. Open: the question is not settled.
Reducing a secret lattice without leaking it
Signing reduces a small lattice built from the secret key. The textbook algorithm takes more or fewer steps depending on the key, and an observer who can time it learns something. This line of work found a reduction whose running time is fixed in advance, proved how many steps it needs, and moved it into the signer.
Masking and reshaping the lattice
Negative resultQuestion. Can the lattice be disguised, by a random change of basis, a higher dimension, a rescaling with the salt or padding, so that the usual reduction no longer reveals the key?
Finding. No. A masked trace is the unmasked trace plus independent noise. Rescaling leaves the trace identical, extra dimensions add a fixed cost per axis without changing how cost grows, and padding flattens the count only by making every lattice large (3.26 times the cost at p248). Only a fixed schedule makes an exact reduction independent of its input.
A fixed schedule
EvidenceQuestion. Does the usual reduction leak the length of the secret norm, and does a schedule fixed by the parameter set stop it?
Finding. The usual reduction leaks about two steps per bit of the secret norm’s length, enough for a statistical test to flag an unusual key in 3,000 traces. A fixed number of rounds of Lagrange reduction over the Gaussian integers gives one operation trace per parameter set, always finds the shortest vector, and costs about 0.28 times as many multiplications and divisions.
How many rounds are enough
In the codeQuestion. Can the number of rounds be proved from the sizes of the parameter set, rather than read off typical inputs?
Finding. The counts read off typical inputs were unsafe: known worst-case inputs need about half again as many rounds. A computer-checked proof in exact rational arithmetic gave safe counts, and a sharper proof then reached 1.897 bits of progress per round against a theoretical best of 1.900. At p500 that is 546 rounds for signing, against 587 under the first proof, and the faster quotient described below no longer needs extra rounds.
Independent review of the proof
EvidenceQuestion. Does the step-count proof hold when it is re-derived from scratch with separate code?
Finding. Yes. All 60 claimed counts were reproduced exactly, one gap in the first proof was found and closed without changing any number, and the end of the proof was re-proved independently. Adversarial searches found no input that needs more rounds than the counts allow. These are the counts the signer now uses.
Constant-time code, measured
EvidenceQuestion. Does the fixed-schedule reduction hold up as real machine code, not only as a model?
Finding. A standalone Rust version found the shortest vector on every test input, including worst-case chains. A timing test over 220,000 measurements found no leak (largest statistic 2.93, against a threshold of 4.5), and a memory-access checker found no secret-dependent branch. It costs about a fifth of the usual reduction’s cycles. The compiler turned the first attempt at a barrier into a secret branch; the check caught it. These runs used a shared virtual machine and an older compiler.
How wide the numbers get, and a faster quotient
In the codeQuestion. Do the intermediate values fit the signer’s fixed-width integers, and can each round use a cheap 64-bit quotient?
Finding. Provided key generation caps the size of the secret norm, every intermediate fits, with 361 to 775 bits to spare across the five sets. The same work found a valid input on which a quotient simply cut to 64 bits leaves the lattice unreduced at the end of the schedule, and proved that such a quotient can have no progress guarantee. A 64-bit floating-point quotient with an exact correction was proved instead, at about 1.2 to 1.3 times the prototype’s cost. Working on a normalized form of the lattice halves the integer width and makes the whole step 1.5 to 1.9 times faster.
Design notes for the native reducer
In the codeQuestion. How should a basis enter the reducer, where can a failed check become visible, and how does one reducer take its schedule as data?
Finding. A failed check on the incoming basis is not branched on. It stays secret, is carried through to every value the step returns, and makes signing fail closed at its exit, so the computation gains no secret-dependent branch. The notes also sized the integers per set and made the schedule a table the reducer reads.
The norm equation
Turning an ideal into an isogeny requires solving a norm equation by searching. Searches are the hardest part of a signer to make constant time, because how long they take depends on what they find.
Where the reference leaks
EvidenceQuestion. Does the reference norm-equation solver leak the secret, and what would a fixed schedule cost?
Finding. It does not leak the secret norm’s length directly, but it leaks a small ideal derived from the key, and it has four inner loops with no bound. A fully fixed schedule removes the leak but costs 39 to 391 times the average work at a 99.9% success rate, and far more at a failure rate of 2^-64.
An affordable redesign
OpenQuestion. What is the cheapest constant-time strategy: bounded loops, a different target exponent, or a newer construction?
Finding. All four loops can be capped safely. The cost lies in the number of passes, not the caps. The recommended design is estimated at 15.5 times the reference’s average work at p500 for 99.9% success, and 88.6 times at a 2^-64 failure rate. These are model estimates. A newer construction is about 2.5 times cheaper again but covers only odd norms. The signer specification has adopted the direction; the failure budget still has to be established.
Key-generation choices
Some work can move from every signature to key generation, done once and stored with the key.
Precomputing at key generation
ProposalQuestion. Which secret-only signing work can move to key generation, and what does it save?
Finding. Storing a pre-reduced secret basis removes a leak and saves 2 to 15% of the setup and reduction work, paying for itself within the first signature. It changes the secret-key format, so it awaits a design decision.
A fresh secret representative per signature
Negative resultQuestion. Does drawing a fresh equivalent secret ideal for each signature hide what the reduction would leak?
Finding. It works mathematically and hides the leak from the usual reduction, but the fixed schedule already removes that leak at no extra cost, and it does not touch the norm equation’s leak. At most it is optional defence in depth.
Keeping the compiler honest
Constant-time source code can compile into machine code that branches on secrets. Rust offers no guaranteed way to prevent it.
Value barriers
In the codeQuestion. Can a barrier written in safe Rust hold up across compilers and processors, or is one small audited exception needed?
Finding. Thirteen candidates were compiled into 148 binaries across two compiler versions and two architectures, then checked by disassembly, execution-trace comparison, memory-access checking and timing tests. The safe-Rust candidates that looked best still produced secret branches in some tests, on some compiler and target. One tiny, audited crate built around a single inline-assembly register barrier held in every test, at no measurable cost. It is now prism-ct-barrier, the only unsafe code the signer allows, and signing refuses to build on an architecture it has not been audited for.
A feasibility gate before algorithms are chosen
In the codeQuestion. How should the signer specification make sure a constant-time version is affordable before an algorithm is chosen, not only at the end?
Finding. Before an algorithm is adopted, its secret-dependent operations are classified, every loop and intermediate gets a proved public bound, and its constant-time cost is estimated and measured at all five sets. The signer specification now requires this, alongside final hardening as the last stage.
Checking the signer’s arithmetic
Each piece of the Rust signer is checked against an oracle written separately, so that a shared mistake does not pass as agreement.
Hermite normal form with a fixed schedule
EvidenceQuestion. Can the canonical form of an ideal’s lattice be computed with a fixed schedule and a proved operation count?
Finding. Yes, under three conditions the decoding path already establishes. It matched SageMath and PARI on 1,745 adversarial runs and every small lattice tried, 28,862 in all. The follow-up gave an exact constant-time test for degenerate input and corrected one claim in the first report.
The signing intersection
EvidenceQuestion. Does the signer’s specialized intersection of two ideals equal the general construction?
Finding. An independent oracle with four separate routes agreed with the prototype on every case, with no mismatch. A short theorem says when the shortcut is valid, and it needs no wider integers than the signer already has.
Oracle-only fixtures and composite norms
EvidenceQuestion. Do fixtures generated without the prototype still match it, and does the construction accept keys whose norm is composite?
Finding. All 130 oracle-only fixtures match. Composite odd norms are accepted and correct at all five sets, 450 of 450. One condition in the earlier theorem was restated more precisely.
The shortest equivalent ideal
EvidenceQuestion. Can the next step’s input be computed from the reduced form directly, without a general canonical form?
Finding. Yes. A proof shows that a certain determinant ratio is always one of the four Gaussian units (±1, ±i), which makes the shortcut valid for every admitted basis. There were no failures in 7,300 full-size and 77,100 small checks.
Proving the signer’s primes
In the codeQuestion. Can the fixed primes the signer depends on be proved prime, instead of being retested as probable primes forever?
Finding. Yes. Fourteen large primes received elliptic-curve primality certificates, checked by an independent verifier that uses only the Python standard library, in about five seconds. The field primes also have a second, Lucas-style proof. The certificates are now pinned and checked in continuous integration.
Timing on real hardware
Measurements on a Raspberry Pi 4, the slowest device Shekyl supports.
An unexplained timing signal
OpenQuestion. Does a timing difference recorded at p248 on a Pi 4 reproduce, and is it in the code or in the machine?
Finding. It did not reproduce in 55 runs, across two builds, two cores and with address randomization on and off, nor with the board’s other workload stopped. Swings of that size appear in about 8% of individual contrasts, in both directions and for every fixture, and a control comparing identical data shows them too: noise, not a leak. The runs did confirm that the reducer leaves words of data behind on the stack, so erasing those spills is open work.
The literature
A survey of 2025 and 2026 work inside and outside isogeny cryptography.
Literature survey, November 2026
EvidenceQuestion. What recent work bears on PRISM or on these experiments?
Finding. Concurrent work (ePrint 2026/2049) independently reached the same two central choices: Lagrange reduction over the Gaussian integers in place of four-dimensional LLL, and a modulus of half the usual bit length for the lattices’ canonical form. Its iteration bound is a multiple of the input size; ours are exact counts for each parameter set. New implementation attacks appeared: fault injection against PRISM, some of it needing only one or two faults (ePrint 2026/1944), and power analysis of quaternion arithmetic. The signer will need a fault model. No new cryptanalysis of the hard problem behind p500 was found. Several items were read from abstracts only and are marked for checking against the full papers.