krypteia — Side-Channel Analysis and Countermeasures

Status:

Draft

Version:

0.1

Scope:

Part I of the krypteia workspace — post-quantum cryptography (ML-KEM — countermeasures, ML-DSA — countermeasures, SLH-DSA — countermeasures). Part II (classical crypto in the arcana crate) is not covered here.

Document purpose

This document describes the physical and logical side-channel threat model that the quantica crate is designed to resist, and maps each threat to the corresponding countermeasure(s) implemented in the code together with:

The intended audience is a cryptographic integrator or security reviewer deciding whether quantica fits their threat model, and contributors maintaining or extending the code.

Scope of the threat model

The analysis covers passive and active physical side-channels, and software-observable timing / memory-access side-channels:

  • Simple / Differential / Correlation Power Analysis (SPA / DPA / CPA)

  • Template attacks (supervised profiled attacks)

  • Timing and cache-timing attacks (software attacker)

  • Differential Fault Analysis (DFA) and Statistical Ineffective Fault Analysis (SIFA)

  • Electromagnetic side-channels (SEMA / DEMA / CEMA — treated jointly with their power equivalents)

Purely cryptanalytic attacks on the underlying lattice / hash-based problems are out of scope — they are covered by the NIST security arguments for FIPS 203/204/205.

Document structure

Contents

Note

The companion document doc/infra/ctgrind.md is the operator-facing reference for running the Valgrind-based CT verifier. It is Markdown rather than rST and is not inlined here; link from Verification methodology when needed.

Change log

Date

Change

2026-04-21

Initial draft covering ML-KEM, ML-DSA, SLH-DSA; threat model; silentops primitives; ctgrind verification; current suppressions and Tier-4 hardening roadmap.