[Paper Review] Iodine: Verifying Constant-Time Execution of Hardware
Iodine is a formal verification framework that ensures hardware designs execute in constant-time by analyzing clock-precise influence sets of signals from sources to sinks. It reduces constant-time verification to assertion validity checking via a novel liveness equivalence approach, enabling fast, precise verification of open-source hardware with minimal effort and uncovering two real-world timing side channels in an FPU and RSA module.
To be secure, cryptographic algorithms crucially rely on the underlying hardware to avoid inadvertent leakage of secrets through timing side channels. Unfortunately, such timing channels are ubiquitous in modern hardware, due to its labyrinthine fast-paths and optimizations. A promising way to avoid timing vulnerabilities is to devise --- and verify --- conditions under which a hardware design is free of timing variability, i.e., executes in constant-time. In this paper, we present Iodine: a clock precise, constant-time approach to eliminating timing side channels in hardware. Iodine succeeds in verifying various open source hardware designs in seconds and with little developer effort. Iodine also discovered two constant-time violations: one in a floating-point unit and another one in an RSA encryption module.
Motivation & Objective
- To address the critical problem of timing side channels in modern hardware, which undermine trust in cryptographic operations despite their reliance on constant-time execution.
- To formalize a notion of constant-time execution suitable for concurrent, long-lived hardware circuits, where traditional software-based approaches fail.
- To enable efficient verification of existing hardware designs without requiring architectural changes or partitioning into security levels.
- To detect real-world timing vulnerabilities in open-source hardware, such as in floating-point and cryptographic units, by verifying constant-time behavior under usage assumptions.
Proposed method
- Iodine defines constant-time execution via influence sets—cycles in which a source value contributes to a sink’s computation—ensuring timing independence from secret inputs.
- It introduces the concept of t-live values, where a value is t-live if it was influenced by inputs issued at cycle t, enabling per-cycle analysis.
- The framework reduces constant-time verification to checking liveness equivalence: two executions must assign t-live values to sinks identically under the same usage assumptions.
- It leverages a product construction based on race freedom to avoid full self-composition, focusing only on relevant execution paths and improving scalability.
- Iodine translates verification into standard assertion checking using SMT solvers, enabling integration with existing formal verification pipelines.
- It supports usage assumptions (e.g., no division) to refine verification and avoid false positives in complex designs like SIMD or floating-point units.
Experimental results
Research questions
- RQ1How can constant-time execution be formally defined for concurrent, long-lived hardware circuits where traditional software notions of timing do not apply?
- RQ2Can influence sets be used to precisely capture timing variability in hardware, independent of data, flags, or concurrent interference?
- RQ3Is it possible to reduce constant-time verification to standard assertion checking without full self-composition or information flow typing?
- RQ4How efficiently can such a verification framework detect real-world timing side channels in existing hardware designs?
- RQ5Can the framework be applied to both crypto accelerators and general-purpose units like FPUs without requiring architectural modifications?
Key findings
- Iodine successfully verified multiple open-source hardware designs in seconds with minimal developer effort, demonstrating practicality for real-world use.
- The framework discovered two previously unknown constant-time violations: one in a floating-point multiplier and another in an RSA encryption module.
- Iodine’s influence set-based definition enables precise, clock-precise verification without requiring unconditional constant-time or security-level partitioning.
- The liveness equivalence approach avoids the scalability issues of full self-composition, making verification efficient and practical for complex circuits.
- The method is complementary to existing information flow and type-based approaches, as it targets clock-precise timing rather than general information flow security.
- The framework’s reliance on usage assumptions allows it to avoid false positives in units like FPUs where timing variability is expected and acceptable under constraints.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.