Algorithm Search⌘K

Techniqueadvanced

Test vector leakage assessment

Also called fixed versus random t-test.

Tests a device for leakage by a Welch t-test between traces of fixed and random inputs (the non-specific variant), with 4.5 as the conventional threshold.

Test vector leakage assessment (TVLA) asks whether a device leaks, without trying to find a key. In its common, non-specific form, the evaluator records one group of power traces with a fixed input and another with random inputs, in random order, and computes a Welch t-test between the two groups at every time sample. If the device leaks any information about the data it processes, the mean power at some sample differs between the fixed and the random group. Goodwill, Jun, Jaffe and Rohatgi (2011) proposed the method with a threshold ∣t∣>4.5|t| > 4.5 and a repetition on a second, independent set of traces. The threshold is a convention, not a theorem. Schneider and Moradi (2015) extended the test to higher orders, which is needed to test masked implementations.

In plain words

Run the chip many times on the same input and many times on random inputs, and record its power each time. If the chip hides its data well, the two piles of recordings look the same on average at every moment. If it does not, at some moment the average of one pile is a little higher than the other. A t-test measures whether such a difference is larger than what random noise would make. A big value at some moment means the chip shows something about its data there. The test does not say whether an attacker can use the leak, or how. A small value does not prove that the chip is safe, only that this test with this many traces found nothing.

When it applies

  • A leakage question, not an attack. Use it to decide whether an implementation passes or fails, or to find the samples that leak during development. It needs no model of the leakage and no knowledge of the key.
  • Control of the inputs. The evaluator must choose the input of each run, so that a fixed group and a random group can be made. The fixed input is often chosen so that some intermediate value is special, but any input works.
  • Comparable runs. The traces must be aligned in time, and the two groups must be recorded interleaved in random order, so that a drift of the temperature or of the supply affects both the same way.
  • First order by default. The plain test compares means. A first-order masked implementation has the same mean for every input at each sample, so the test must be repeated on combinations of samples, or on higher moments, to find a higher-order leak.

The template

  1. TVLA(device, n traces for each group, threshold C, order o)
  2. 1for each of two independent sets s = 1, 2 do
  3. 2record n traces with a FIXED input and n with RANDOM inputs, interleaved at random
  4. 3for each sample j do t_s[j] ← WELCH-T(PREPROCESS_o(fixed group, j), PREPROCESS_o(random group, j))
  5. 4leaky ← the samples j with |t_1[j]| > C and |t_2[j]| > C
  6. 5return fail if leaky is not empty, else pass

The holes are the inputs FIXED and RANDOM, the preprocessing for the order oo and the threshold CC. Line L3 is the Welch statistic

t=xˉ−yˉsx2/nx+sy2/ny,t = \frac{\bar x - \bar y}{\sqrt{s_x^2 / n_x + s_y^2 / n_y}},

with the sample means xˉ,yˉ\bar x, \bar y and the unbiased sample variances sx2,sy2s_x^2, s_y^2 of the two groups at sample jj. For o=1o = 1, PREPROCESS is the identity. For a second-order test on one pair of samples (i,j)(i, j), it replaces each trace by the centred product (ℓ[i]−ℓˉ[i])(ℓ[j]−ℓˉ[j])(\ell[i] - \bar\ell[i])(\ell[j] - \bar\ell[j]), with the means of its own group; for a univariate test of order 2 on one sample, by (ℓ[j]−ℓˉ[j])2(\ell[j] - \bar\ell[j])^2 (Schneider and Moradi).

Line L4 is the decision rule of Goodwill and others: a sample fails only if both sets pass the threshold there. For a normal variable, Pr⁡[∣Z∣>4.5]≈6.8×10−6\Pr[|Z| > 4.5] \approx 6.8 \times 10^{-6}. If there is no leak and nn is large, tt is close to normal at each sample (a theorem, by the central limit theorem). So with 10510^5 samples in a trace, one set gives about 0.68 false alarms on average. The two-set rule makes a false alarm at the same sample about 4.6×10−114.6 \times 10^{-11} likely for each sample, if the sets are independent. These numbers are approximations for large nn and independent samples; they are heuristics for real traces.

The cost is Θ(nT)\Theta(n T) arithmetic operations for each set with TT samples; a second-order test on all pairs costs Θ(nT2)\Theta(n T^2).

Classic examples

The examples use a synthetic device: the 4-bit PRESENT S-box, key B\texttt{B}, and traces of 4 samples with Gaussian noise σ=1\sigma = 1. Sample 0 leaks; the others are noise. The fixed input is p=1p = 1, so the fixed value is S(1⊕B)=FS(1 \oplus \texttt{B}) = \texttt{F}, with Hamming weight 4. The code of this page draws these traces from the stated model with a seeded random.Random; it never reads a device, a file or a clock, and its tests reproduce the numbers below.

An unprotected device. Sample 0 is HW(S(p⊕k))+N\mathrm{HW}(S(p \oplus k)) + N. The fixed group has mean 4 and variance 1; the random group has mean 2 and variance 1+1=21 + 1 = 2. So t≈2/3/n=2n/3t \approx 2 / \sqrt{3/n} = 2\sqrt{n/3}: this is the expected value for large nn. With n=50n = 50 the two sets gave t=7.54t = 7.54 and 7.257.25 at sample 0 and ∣t∣<1.2|t| < 1.2 elsewhere, so the device fails at sample 0 only. Over 20 runs with n=200n = 200, the mean of tt was 16.2, against 2200/3=16.32\sqrt{200/3} = 16.3. The same leak is what DPA and CPA use to find the key.

A first-order masked device. Sample 0 is HW(S(p⊕k)⊕m)+N\mathrm{HW}(S(p \oplus k) \oplus m) + N and sample 1 is HW(m)+N\mathrm{HW}(m) + N for a fresh uniform mask mm, as in Boolean masking. Each sample has mean 2 for every input, so the first-order test passes: with n=1000n = 1000, ∣t∣≤1.8|t| \le 1.8 at all samples. The centred product of samples 0 and 1 has expectation ε2(1−HW(x)/2)\varepsilon^2(1 - \mathrm{HW}(x)/2) for the value x=S(p⊕k)x = S(p \oplus k), which is −1-1 for the fixed x=Fx = \texttt{F} and 0 on average over random xx. The second-order test on the same traces gave t=−9.0t = -9.0 and −11.8-11.8, so the device fails at order 2, as a first-order masked device must.

A threshold implementation in hardware. For hardware, the test is run on the masked design, for example a threshold implementation, to check that glitches do not combine shares. A first-order pass with many traces, together with a second-order failure, is the expected result for a design with three shares and first-order security.

A specific test. Instead of fixed against random, split the random traces by one bit of an intermediate value, such as a bit of S(p⊕k)S(p \oplus k) with the known key. This specific test finds a leak of that bit, and it is close to DPA with the right key. It needs a model of the intermediate values; the non-specific test does not.

Variations

  • Fixed versus fixed. Two different fixed inputs give two groups with smaller variance than a random group, so the test can be more sensitive to a leak that the two inputs separate. It misses leaks that both inputs share.
  • Higher-order and multivariate tests. Schneider and Moradi (2015) define tests on centred moments of order oo for one sample, and on centred products of oo samples, with one-pass formulas that update the moments as traces arrive.
  • Other statistics. A χ2\chi^2 test on histograms of the samples, or an estimate of the mutual information, can detect differences in distribution that the mean misses, at a cost in traces.
  • Corrections for many samples. With very many samples, a Bonferroni correction or a control of the false discovery rate gives a threshold with a stated error probability, instead of the fixed 4.5.

Pitfalls

  • A pass is not a proof. The test finds only differences that its statistic and its nn can see. A device can pass with nn traces and fail with 10n10n, and a first-order pass says nothing about second-order leaks.
  • A fail is not an attack. A leak at one sample of the input loading, or of a value that is public, is a fail, but it may not help an attacker. The evaluator must find out what leaks before claiming an attack.
  • Groups recorded apart. If the fixed group is recorded first and the random group second, a slow drift of the device appears as a difference of means at every sample. Interleave the two groups in random order.
  • Small groups. With 30 traces in each group the Welch statistic has heavier tails than the normal law: the synthetic test of this page measured ∣t∣>2|t| > 2 for 110 of 2000 samples of pure noise (5.5 percent), against 4.55 percent for the normal law. The threshold 4.5 assumes large groups.
  • The wrong means in second order. The centring of the second-order preprocessing must use the mean of each group, or of all traces, the same way in both groups. Centring with a constant that is not the mean adds a first-order term to the product.
  • Many samples. Without the second set, a trace with millions of samples has false alarms by chance. Use the two-set rule or a correction for multiple tests.

Code

Each implementation follows the pseudocode above. A comment @line links a line of code to a line of the pseudocode. Point at a line of the pseudocode to see the matching code. The build runs the native tests of each language.

leakage_assessment.pyI0RawGitHub
# SPDX-License-Identifier: MIT
# Part of https://algorithm.tamnd.com/test-vector-leakage-assessment/. The authors are listed in prov/89GDF4.jsonl.
"""The fixed versus random Welch t-test of TVLA (Goodwill, Jun, Jaffe, Rohatgi, 2011).

The traces come from a stated synthetic model of a device, drawn with a
seeded ``random.Random``: one sample leaks HW(S(p xor k)) + N(0, sigma^2)
with the 4-bit PRESENT S-box, or, for the masked model, two samples leak
HW(S(p xor k) xor m) and HW(m) for a fresh uniform mask m. No device, file
or clock is used.
"""

import math
import random

PRESENT_SBOX: tuple[int, ...] = (
    0xC, 0x5, 0x6, 0xB, 0x9, 0x0, 0xA, 0xD,
    0x3, 0xE, 0xF, 0x8, 0x4, 0x7, 0x1, 0x2,
)

Trace = list[float]


def hamming_weight(v: int) -> int:
    """Return the number of 1 bits of a non-negative integer."""
    return bin(v).count("1")


def device_trace(rng: random.Random, p: int, key: int, samples: int, sigma: float, masked: bool) -> Trace:
    """One synthetic trace of the given number of samples (at least 2).

    Unmasked: sample 0 is HW(S(p xor key)) + noise. Masked: sample 0 is
    HW(S(p xor key) xor m) + noise and sample 1 is HW(m) + noise for a
    fresh uniform m. Every other sample is noise with mean 2.
    """
    v = PRESENT_SBOX[p ^ key]
    tr = [2.0 + rng.gauss(0.0, sigma) for _ in range(samples)]
    if masked:
        m = rng.randrange(16)
        tr[0] = hamming_weight(v ^ m) + rng.gauss(0.0, sigma)
        tr[1] = hamming_weight(m) + rng.gauss(0.0, sigma)
    else:
        tr[0] = hamming_weight(v) + rng.gauss(0.0, sigma)
    return tr


def collect(
    rng: random.Random, n: int, fixed_input: int, key: int, samples: int, sigma: float, masked: bool
) -> tuple[list[Trace], list[Trace]]:
    """n traces with the fixed input and n with uniform inputs, in random order."""
    fixed: list[Trace] = []
    rand: list[Trace] = []
    while len(fixed) < n or len(rand) < n:
        if len(rand) >= n or (len(fixed) < n and rng.randrange(2) == 0):
            fixed.append(device_trace(rng, fixed_input, key, samples, sigma, masked))
        else:
            rand.append(device_trace(rng, rng.randrange(16), key, samples, sigma, masked))
    return fixed, rand


def welch_t(x: list[float], y: list[float]) -> float:
    """Welch's t statistic of two samples, each of size at least 2.

    t = (mean(x) - mean(y)) / sqrt(var(x)/|x| + var(y)/|y|) with unbiased
    variances. Returns 0.0 if both variances are 0 and the means are equal,
    and +-inf if only the variances are 0. Cost: Theta(|x| + |y|).
    """
    nx, ny = len(x), len(y)
    mx, my = sum(x) / nx, sum(y) / ny
    vx = sum((a - mx) ** 2 for a in x) / (nx - 1)
    vy = sum((b - my) ** 2 for b in y) / (ny - 1)
    se = math.sqrt(vx / nx + vy / ny)
    if se == 0.0:
        return 0.0 if mx == my else math.copysign(math.inf, mx - my)
    return (mx - my) / se


def centred_products(traces: list[Trace], i: int, j: int) -> list[float]:
    """Second-order preprocessing: (l[i] - mean_i) * (l[j] - mean_j) for each trace.

    The means are those of the given group. Cost: Theta(len(traces)).
    """
    mi = sum(t[i] for t in traces) / len(traces)
    mj = sum(t[j] for t in traces) / len(traces)
    return [(t[i] - mi) * (t[j] - mj) for t in traces]


def tvla(sets: list[tuple[list[Trace], list[Trace]]], threshold: float = 4.5) -> tuple[list[list[float]], list[int]]:
    """The fixed versus random test on independent sets of traces.

    Each set is (fixed traces, random traces), all with T samples and at
    least 2 traces in each group. Returns the t-values of each set at each
    sample and the samples where |t| > threshold in every set; the device
    fails the test if that list is not empty.
    Cost: Theta(s * n * T) for s sets of n traces in each group.
    """
    tvals: list[list[float]] = []
    for fixed, rand in sets:  # @line L1
        width = len(fixed[0])  # @line L2
        row = []
        for j in range(width):  # @line L3
            row.append(welch_t([t[j] for t in fixed], [t[j] for t in rand]))
        tvals.append(row)
    leaky = [j for j in range(len(tvals[0])) if all(abs(r[j]) > threshold for r in tvals)]  # @line L4
    return tvals, leaky  # @line L5
test_test_vector_leakage_assessment.py 92 lines
# SPDX-License-Identifier: MIT
# Part of https://algorithm.tamnd.com/test-vector-leakage-assessment/. The authors are listed in prov/89GDF4.jsonl.

import math
import random
import statistics

import pytest
from leakage_assessment import (
    PRESENT_SBOX,
    centred_products,
    collect,
    hamming_weight,
    tvla,
    welch_t,
)

KEY = 0xB
FIXED = 0x1  # S(1 xor B) = F, Hamming weight 4


def test_welch_t_against_statistics() -> None:
    rng = random.Random(20240507)
    for _ in range(500):
        x = [rng.gauss(rng.uniform(-1, 1), rng.uniform(0.1, 3)) for _ in range(rng.randrange(2, 40))]
        y = [rng.gauss(rng.uniform(-1, 1), rng.uniform(0.1, 3)) for _ in range(rng.randrange(2, 40))]
        se = math.sqrt(statistics.variance(x) / len(x) + statistics.variance(y) / len(y))
        want = (statistics.mean(x) - statistics.mean(y)) / se
        assert welch_t(x, y) == pytest.approx(want, rel=1e-9, abs=1e-12)
        assert welch_t(y, x) == pytest.approx(-want, rel=1e-9, abs=1e-12)


def test_welch_t_edges() -> None:
    assert welch_t([1.0, 1.0], [1.0, 1.0]) == 0.0
    assert welch_t([2.0, 2.0], [1.0, 1.0]) == math.inf
    assert welch_t([0.0, 0.0], [1.0, 1.0]) == -math.inf


def test_fixed_input_has_weight_four() -> None:
    assert hamming_weight(PRESENT_SBOX[FIXED ^ KEY]) == 4


def test_unprotected_device_fails() -> None:
    rng = random.Random(1)
    sets = [collect(rng, 50, FIXED, KEY, 4, 1.0, False) for _ in range(2)]
    tvals, leaky = tvla(sets)
    assert leaky == [0]
    assert all(abs(v) < 4.5 for row in tvals for v in row[1:])


def test_t_grows_as_the_root_of_n() -> None:
    # Expected t is 2 / sqrt(1/n + 2/n): fixed variance 1, random variance 1 + Var(HW) = 2.
    rng = random.Random(2)
    n = 200
    ts = [tvla([collect(rng, n, FIXED, KEY, 2, 1.0, False)])[0][0][0] for _ in range(20)]
    assert statistics.mean(ts) == pytest.approx(2 * math.sqrt(n / 3), rel=0.1)


def test_masked_device_first_and_second_order() -> None:
    rng = random.Random(3)
    sets = [collect(rng, 1000, FIXED, KEY, 4, 1.0, True) for _ in range(2)]
    assert tvla(sets)[1] == []
    second = [
        ([[v] for v in centred_products(f, 0, 1)], [[v] for v in centred_products(r, 0, 1)])
        for f, r in sets
    ]
    tvals, leaky = tvla(second)
    assert leaky == [0]
    # E[(HW(x xor m) - 2)(HW(m) - 2)] = 1 - HW(x)/2 = -1 for the fixed x = F, and 0 for random x.
    assert all(row[0] < 0 for row in tvals)


def test_second_order_expectation_exact() -> None:
    for x in range(16):
        e = sum((hamming_weight(x ^ m) - 2) * (hamming_weight(m) - 2) for m in range(16)) / 16
        assert e == 1 - hamming_weight(x) / 2
    assert sum(1 - hamming_weight(x) / 2 for x in range(16)) == 0


def test_no_false_alarms_on_noise() -> None:
    rng = random.Random(4)
    over2 = over45 = total = 0
    for _ in range(100):
        f = [[rng.gauss(0, 1) for _ in range(20)] for _ in range(30)]
        r = [[rng.gauss(0, 1) for _ in range(20)] for _ in range(30)]
        row = tvla([(f, r)])[0][0]
        total += len(row)
        over2 += sum(abs(v) > 2 for v in row)
        over45 += sum(abs(v) > 4.5 for v in row)
    assert over45 == 0
    # With 30 traces per group the t law has heavier tails than the normal law (0.0455).
    assert 0.03 < over2 / total < 0.08

Exercises

  1. In the unprotected example, compute the expected tt at sample 0 for n=200n = 200, and the nn at which it reaches 4.5.
  2. Show that for a uniform 4-bit mask mm, E[HW(x⊕m)]=2\mathrm{E}[\mathrm{HW}(x \oplus m)] = 2 for every xx, so the first-order test of a masked device has the same mean in both groups.
  3. Show that E[(HW(x⊕m)−2)(HW(m)−2)]=1−HW(x)/2\mathrm{E}[(\mathrm{HW}(x \oplus m) - 2)(\mathrm{HW}(m) - 2)] = 1 - \mathrm{HW}(x)/2. Which fixed values xx make the second-order test blind?
  4. A trace has 10610^6 samples, and one set is tested at C=4.5C = 4.5. How many false alarms do you expect with no leak? What threshold gives an expected 0.01 false alarms for one set?
Proof: The fixed versus random t-test has the stated false alarm rate for large groups and detects every difference of meansfull

Fix one sample jj and one set of traces. The fixed group x1,…,xnx_1, \ldots, x_n is independent and identically distributed with mean μx\mu_x and variance σx2∈(0,∞)\sigma_x^2 \in (0, \infty); the random group y1,…,yny_1, \ldots, y_n is independent of it and identically distributed with mean μy\mu_y and variance σy2∈(0,∞)\sigma_y^2 \in (0, \infty). Line L3 computes tn=(xˉ−yˉ)/(sx2+sy2)/nt_n = (\bar x - \bar y) / \sqrt{(s_x^2 + s_y^2)/n}, where xˉ\bar x and sx2s_x^2 are the sample mean and the unbiased sample variance, and the same for yy. The code computes exactly these sums, so we study tnt_n.

Lemma 1. sx2→σx2s_x^2 \to \sigma_x^2 and sy2→σy2s_y^2 \to \sigma_y^2 with probability 1.

Proof. sx2=nn−1(1n∑ixi2−xˉ2)s_x^2 = \frac{n}{n-1}\big(\frac1n \sum_i x_i^2 - \bar x^2\big). By the strong law of large numbers, 1n∑ixi2→σx2+μx2\frac1n\sum_i x_i^2 \to \sigma_x^2 + \mu_x^2 and xˉ→μx\bar x \to \mu_x, and nn−1→1\frac{n}{n-1} \to 1. □\square

Theorem 1 (false alarms). If μx=μy\mu_x = \mu_y, then tnt_n converges in distribution to the standard normal law, so for every C>0C > 0,

lim⁡n→∞Pr⁡[∣tn∣>C]=2(1−Φ(C)),\lim_{n \to \infty} \Pr[|t_n| > C] = 2(1 - \Phi(C)),

which is about 6.8×10−66.8 \times 10^{-6} for C=4.5C = 4.5. If the two sets of line L1 are independent, the probability that line L4 flags the sample tends to (2(1−Φ(C)))2(2(1 - \Phi(C)))^2, about 4.6×10−114.6 \times 10^{-11}.

Proof. The differences xi−yix_i - y_i are independent with mean 0 and variance σx2+σy2\sigma_x^2 + \sigma_y^2, so by the central limit theorem n(xˉ−yˉ)/σx2+σy2\sqrt{n}(\bar x - \bar y)/\sqrt{\sigma_x^2 + \sigma_y^2} converges in distribution to N(0,1)\mathcal{N}(0, 1). By Lemma 1, (σx2+σy2)/(sx2+sy2)→1\sqrt{(\sigma_x^2 + \sigma_y^2)/(s_x^2 + s_y^2)} \to 1 with probability 1. By Slutsky's lemma the product, which is tnt_n, converges to N(0,1)\mathcal{N}(0, 1) in distribution. The normal law has no atom at ±C\pm C, so the probabilities converge. The values of the two sets are independent, so the probability that both exceed CC is the product. □\square

Theorem 2 (detection). If μx≠μy\mu_x \ne \mu_y, then Pr⁡[∣tn∣>C]→1\Pr[|t_n| > C] \to 1 for every CC, and so the flag of line L4 has probability tending to 1.

Proof. tn=n(xˉ−yˉ)/sx2+sy2t_n = \sqrt{n} (\bar x - \bar y)/\sqrt{s_x^2 + s_y^2}. The ratio (xˉ−yˉ)/sx2+sy2(\bar x - \bar y)/\sqrt{s_x^2 + s_y^2} converges with probability 1 to (μx−μy)/σx2+σy2≠0(\mu_x - \mu_y)/\sqrt{\sigma_x^2 + \sigma_y^2} \ne 0, so ∣tn∣→∞|t_n| \to \infty with probability 1. □\square

So the test with large groups has the claimed rate of false alarms at each sample that does not leak at first order, and it finds every sample whose mean depends on the input class. The rate is a limit, not a bound for finite nn; for finite nn and Gaussian data, the law of tnt_n is close to a Student tt law with heavier tails.

Proposition 3 (first-order masking). In the masked model, ℓ[0]=HW(x⊕m)+N0\ell[0] = \mathrm{HW}(x \oplus m) + N_0 and ℓ[1]=HW(m)+N1\ell[1] = \mathrm{HW}(m) + N_1 with x=S(p⊕k)x = S(p \oplus k), a uniform 4-bit mask mm independent of pp, and independent centred noise. Then the mean of each sample is 2 for every input pp, so by Theorem 1 the first-order test has the false alarm rate of a device with no leak. The centred product has mean 1−HW(x)/21 - \mathrm{HW}(x)/2 given xx.

Proof. For a fixed xx, the map m↦x⊕mm \mapsto x \oplus m is a bijection of {0,…,15}\{0, \ldots, 15\}, so x⊕mx \oplus m is uniform, and E[HW(x⊕m)]=4⋅12=2\mathrm{E}[\mathrm{HW}(x \oplus m)] = 4 \cdot \frac12 = 2. Also E[HW(m)]=2\mathrm{E}[\mathrm{HW}(m)] = 2. Write HW(v)−2=∑q=03(vq−12)\mathrm{HW}(v) - 2 = \sum_{q=0}^{3} (v_q - \tfrac12) for the bits vqv_q of vv, and uq=mq−12u_q = m_q - \tfrac12, so that (x⊕m)q−12=(1−2xq)uq(x \oplus m)_q - \tfrac12 = (1 - 2x_q) u_q, because a bit of xx equal to 1 flips the bit of mm. Then

E[∑q(1−2xq)uq⋅∑rur]=∑q(1−2xq) E[uq2]=14∑q(1−2xq)=1−HW(x)2,\mathrm{E}\Big[\sum_q (1 - 2x_q) u_q \cdot \sum_r u_r\Big] = \sum_q (1 - 2x_q)\,\mathrm{E}[u_q^2] = \tfrac14 \sum_q (1 - 2x_q) = 1 - \tfrac{\mathrm{HW}(x)}{2},

because the uqu_q are independent with mean 0 and E[uq2]=14\mathrm{E}[u_q^2] = \tfrac14. The noise terms are independent of everything and centred, so they add nothing to the mean of the product. ■\blacksquare

With the population means in place of the group means, the second-order test is the first-order test of Theorems 1 and 2 applied to the product. For the fixed value x=Fx = \texttt{F} the mean is −1-1, and over a uniform xx it is 0, because the mean of HW(x)\mathrm{HW}(x) is 2. So by Theorem 2 the second-order test detects the masked device when nn grows. The code centres with the means of each group; those converge to the population means with probability 1, and the difference changes the product by terms that tend to 0, so the limits are the same.

References

  1. Gilbert Goodwill, Benjamin Jun, Josh Jaffe and Pankaj Rohatgi, A testing methodology for side-channel resistance validation, NIST Non-Invasive Attack Testing Workshop, 2011, Sections 2 and 3 (the fixed versus random and the specific tests, the Welch t statistic, the threshold 4.5, and the rule of two independent sets of traces)
  2. Tobias Schneider and Amir Moradi, Leakage assessment methodology, a clear roadmap for side-channel evaluations, CHES 2015, LNCS 9293, pages 495 to 513, the higher-order univariate and multivariate t-tests on centred and standardized moments, and the one-pass formulas for the moments
  3. Stefan Mangard, Elisabeth Oswald and Thomas Popp, Power Analysis Attacks, Springer, 2007, ISBN 978-0-387-30857-9, Chapter 4 (the statistics of power traces and the signal to noise ratio)
  4. Andrey Bogdanov and others, PRESENT, an ultra-lightweight block cipher, CHES 2007, LNCS 4727, the description of the substitution layer (the table of the 4-bit S-box used in the synthetic device of this page)

About this page

The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.

LadderLevelWhat the next level needs
Human proofH2 full proof
  • correctness: no review record reviews/89GDF4/proof-correctness.yaml
LeanL0 no Lean part
  • name a Lean module in the lean field (07)
Code (python)I0 not checked yet
  • the tests did not run in this build
VisualV0 none
  • add viz/scene.ts or a figure (10)
WritingW2 basic
  • three classic examples