(base) lilyana.g@Stefkas-MacBook-Pro new % caffeinate python3 rsa_key_audit_shareable.py \ --vpr-fips-files vpr_method_fips_2048_single.txt vpr_method_fips_2048_parallel.txt \ --vpr-bpsw-files vpr_method_bpsw_2048_single.txt vpr_method_bpsw_2048_parallel.txt \ --openssl-files openssl_2048_single.txt openssl_2048_parallel.txt \ --sidechannel ==================================================================================================== 0. Environment and scope ==================================================================================================== python=3.13.2; platform=macOS-14.7.6-x86_64-i386-64bit-Mach-O; cpus=8; gmpy2=2.2.1; cryptography=45.0.3; openssl=OpenSSL 3.6.5 29 Sep 2026 The audit is a smoke test: not detecting a defect is NOT proof of security. ==================================================================================================== 0a. Loading already generated keys from files (nothing is generated) ==================================================================================================== ✅ [L01] [VPR-FIPS] vpr_method_fips_2048_single.txt: loaded 3000 keys - all blocks intact ✅ [L01] [VPR-FIPS] vpr_method_fips_2048_parallel.txt: loaded 3000 keys - all blocks intact ✅ [L01] [VPR-BPSW] vpr_method_bpsw_2048_single.txt: loaded 3000 keys - all blocks intact ✅ [L01] [VPR-BPSW] vpr_method_bpsw_2048_parallel.txt: loaded 3000 keys - all blocks intact ✅ [L01] [OpenSSL] openssl_2048_single.txt: loaded 3000 keys - all blocks intact ✅ [L01] [OpenSSL] openssl_2048_parallel.txt: loaded 3000 keys - all blocks intact RSA-2048; keys: VPR-FIPS=6000, VPR-BPSW=6000, OpenSSL=6000; alpha=0.001; MR rounds=5 (FIPS 186-5 Table B.1) ==================================================================================================== 3. Source of randomness - static AST audit of the module (not proof) ==================================================================================================== ⏭️ [R01] static audit - no --vpr-module supplied ==================================================================================================== 1. [VPR-FIPS] Structural checks on 6000 keys (RSA-2048) ==================================================================================================== ✅ [K01] p != q - 6000/6000 ✅ [K02] n = p*q - 6000/6000 ✅ [K03] exact length: p,q = b bits; n = 2b bits - 6000/6000 ✅ [K04] p,q >= ceil(sqrt(2)*2^(b-1)) (FIPS 186 bound) - 6000/6000 ✅ [K05] |p-q| > 2^(nlen/2-100) and Fermat factorization fails - 6000/6000 ✅ [K06] p,q prime: GMP(50) + strong-BPSW + independent Miller-Rabin (FIPS rounds) - 6000/6000 ✅ [K07] e odd, 2^16 < e < 2^256, gcd(e,p-1)=gcd(e,q-1)=1 - 6000/6000 ✅ [K08] e*d = 1 (mod lambda(n)) and d > 2^(nlen/2) - 6000/6000 ✅ [K09] CRT parameters consistent (dP, dQ, qInv) - 6000/6000 ✅ [K10] round-trip (plain and CRT) incl. boundary values - 6000/6000 ✅ [K11] gcd(p-1,q-1) small (<= 64 bits) - 6000/6000 ✅ [K12] Pollard p-1 does not factor n - 6000/6000 ✅ [K13] no ROCA-like fingerprint - 6000/6000 ✅ [K14] independent validator (OpenSSL/cryptography) accepts the key - 6000/6000 ==================================================================================================== 2. [VPR-FIPS] Population tests on 6000 keys (12000 primes) ==================================================================================================== ✅ [P01] shared primes / duplicate moduli (pairwise gcd) - 17997000 pairs, none ✅ [P02] uniformity of p mod r (10 moduli, chi-square, Bonferroni) - min p=0.00261 (r=17), threshold 1.0e-04 ✅ [P03] monobit over middle bits (excluding first 8 and last) - p=0.108 ✅ [P04] per-position frequency: most extreme position (Bonferroni) and overall chi-square - min-p(Bonf)=1; chi2 p=0.918; single position detectable at deviation from 0.5 above ~0.022 (N=12000) ✅ [P05] runs test (NIST SP 800-22), aggregated calibrated (sum and dispersion of Z) - p=0.122 ✅ [T03] [VPR-FIPS:vpr_method_fips_2048_single.txt] correlation of generation time vs key characteristics (Spearman, Bonferroni) - strongest: HW(n) rho=-0.028 p=0.129; threshold 2.0e-04; detectable |rho| >~0.07 at N=3000 ✅ [T03] [VPR-FIPS:vpr_method_fips_2048_parallel.txt] correlation of generation time vs key characteristics (Spearman, Bonferroni) - strongest: HW(q) rho=+0.017 p=0.353; threshold 2.0e-04; detectable |rho| >~0.07 at N=3000 ✅ [R03] [VPR-FIPS] vpr_method_fips_2048_single.txt: 3000 keys - no duplicates and no shared factors - none ✅ [R03] [VPR-FIPS] vpr_method_fips_2048_parallel.txt: 3000 keys - no duplicates and no shared factors - none ==================================================================================================== 1. [VPR-BPSW] Structural checks on 6000 keys (RSA-2048) ==================================================================================================== ✅ [K01] p != q - 6000/6000 ✅ [K02] n = p*q - 6000/6000 ✅ [K03] exact length: p,q = b bits; n = 2b bits - 6000/6000 ✅ [K04] p,q >= ceil(sqrt(2)*2^(b-1)) (FIPS 186 bound) - 6000/6000 ✅ [K05] |p-q| > 2^(nlen/2-100) and Fermat factorization fails - 6000/6000 ✅ [K06] p,q prime: GMP(50) + strong-BPSW + independent Miller-Rabin (FIPS rounds) - 6000/6000 ✅ [K07] e odd, 2^16 < e < 2^256, gcd(e,p-1)=gcd(e,q-1)=1 - 6000/6000 ✅ [K08] e*d = 1 (mod lambda(n)) and d > 2^(nlen/2) - 6000/6000 ✅ [K09] CRT parameters consistent (dP, dQ, qInv) - 6000/6000 ✅ [K10] round-trip (plain and CRT) incl. boundary values - 6000/6000 ✅ [K11] gcd(p-1,q-1) small (<= 64 bits) - 6000/6000 ✅ [K12] Pollard p-1 does not factor n - 6000/6000 ✅ [K13] no ROCA-like fingerprint - 6000/6000 ✅ [K14] independent validator (OpenSSL/cryptography) accepts the key - 6000/6000 ==================================================================================================== 2. [VPR-BPSW] Population tests on 6000 keys (12000 primes) ==================================================================================================== ✅ [P01] shared primes / duplicate moduli (pairwise gcd) - 17997000 pairs, none ✅ [P02] uniformity of p mod r (10 moduli, chi-square, Bonferroni) - min p=0.0524 (r=7), threshold 1.0e-04 ✅ [P03] monobit over middle bits (excluding first 8 and last) - p=0.0369 ✅ [P04] per-position frequency: most extreme position (Bonferroni) and overall chi-square - min-p(Bonf)=0.0438; chi2 p=0.0537; single position detectable at deviation from 0.5 above ~0.022 (N=12000) ✅ [P05] runs test (NIST SP 800-22), aggregated calibrated (sum and dispersion of Z) - p=1 ✅ [T03] [VPR-BPSW:vpr_method_bpsw_2048_single.txt] correlation of generation time vs key characteristics (Spearman, Bonferroni) - strongest: q mod 2^16 rho=+0.023 p=0.217; threshold 2.0e-04; detectable |rho| >~0.07 at N=3000 ✅ [T03] [VPR-BPSW:vpr_method_bpsw_2048_parallel.txt] correlation of generation time vs key characteristics (Spearman, Bonferroni) - strongest: HW(p) rho=+0.028 p=0.12; threshold 2.0e-04; detectable |rho| >~0.07 at N=3000 ✅ [R03] [VPR-BPSW] vpr_method_bpsw_2048_single.txt: 3000 keys - no duplicates and no shared factors - none ✅ [R03] [VPR-BPSW] vpr_method_bpsw_2048_parallel.txt: 3000 keys - no duplicates and no shared factors - none ==================================================================================================== 1. [OpenSSL] Structural checks on 6000 keys (RSA-2048) ==================================================================================================== ✅ [K01] p != q - 6000/6000 ✅ [K02] n = p*q - 6000/6000 ✅ [K03] exact length: p,q = b bits; n = 2b bits - 6000/6000 ✅ [K04] p,q >= ceil(sqrt(2)*2^(b-1)) (FIPS 186 bound) - 6000/6000 ✅ [K05] |p-q| > 2^(nlen/2-100) and Fermat factorization fails - 6000/6000 ✅ [K06] p,q prime: GMP(50) + strong-BPSW + independent Miller-Rabin (FIPS rounds) - 6000/6000 ✅ [K07] e odd, 2^16 < e < 2^256, gcd(e,p-1)=gcd(e,q-1)=1 - 6000/6000 ✅ [K08] e*d = 1 (mod lambda(n)) and d > 2^(nlen/2) - 6000/6000 ✅ [K09] CRT parameters consistent (dP, dQ, qInv) - 6000/6000 ✅ [K10] round-trip (plain and CRT) incl. boundary values - 6000/6000 ✅ [K11] gcd(p-1,q-1) small (<= 64 bits) - 6000/6000 ✅ [K12] Pollard p-1 does not factor n - 6000/6000 ✅ [K13] no ROCA-like fingerprint - 6000/6000 ✅ [K14] independent validator (OpenSSL/cryptography) accepts the key - 6000/6000 ==================================================================================================== 2. [OpenSSL] Population tests on 6000 keys (12000 primes) ==================================================================================================== ✅ [P01] shared primes / duplicate moduli (pairwise gcd) - 17997000 pairs, none ✅ [P02] uniformity of p mod r (10 moduli, chi-square, Bonferroni) - min p=0.158 (r=23), threshold 1.0e-04 ✅ [P03] monobit over middle bits (excluding first 8 and last) - p=0.378 ✅ [P04] per-position frequency: most extreme position (Bonferroni) and overall chi-square - min-p(Bonf)=0.742; chi2 p=0.174; single position detectable at deviation from 0.5 above ~0.022 (N=12000) ✅ [P05] runs test (NIST SP 800-22), aggregated calibrated (sum and dispersion of Z) - p=1 ✅ [T03] [OpenSSL:openssl_2048_single.txt] correlation of generation time vs key characteristics (Spearman, Bonferroni) - strongest: HW(p) rho=+0.039 p=0.0315; threshold 2.0e-04; detectable |rho| >~0.07 at N=3000 ✅ [T03] [OpenSSL:openssl_2048_parallel.txt] correlation of generation time vs key characteristics (Spearman, Bonferroni) - strongest: HW(p) rho=+0.022 p=0.233; threshold 2.0e-04; detectable |rho| >~0.07 at N=3000 ✅ [R03] [OpenSSL] openssl_2048_single.txt: 3000 keys - no duplicates and no shared factors - none ✅ [R03] [OpenSSL] openssl_2048_parallel.txt: 3000 keys - no duplicates and no shared factors - none ==================================================================================================== 2a. Cross-check between generators ==================================================================================================== ✅ [P06] shared primes between keys of DIFFERENT generators - none ==================================================================================================== 2b. Bias in prime selection (distribution of the gap before the prime) ==================================================================================================== generating 400 reference uniform primes (1024 bits, MR rounds=5)... ✅ [B00] calibration: two independent halves of the reference (expected no difference) - KS p=0.793 ✅ [B01] [VPR-FIPS] mean gap before prime / reference - ratio 1.131 (95% CI 0.985-1.299); KS p=0.0935; MWU p=0.0503; N=400; minimum detectable effect ~±14% ✅ [B01] [VPR-BPSW] mean gap before prime / reference - ratio 1.139 (95% CI 1.000-1.305); KS p=0.00297; MWU p=0.00679; N=400; minimum detectable effect ~±14% ✅ [B01] [OpenSSL] mean gap before prime / reference - ratio 1.156 (95% CI 1.004-1.333); KS p=0.0299; MWU p=0.0365; N=400; minimum detectable effect ~±14% ==================================================================================================== 4. Measurement calibration (mandatory before trusting 4a) ==================================================================================================== ✅ [T00a] null control: identical distributions (should NOT be flagged) - max|t|=0.56; noise CV=7.5% ✅ [T00b] positive control: synthetic leak ~100% (should be flagged) - max|t|=143.33; diff +67.021% ==================================================================================================== 4a. [VPR-FIPS] Timing leak on private-key operations (dudect-style, 2000 measurements/pair) ==================================================================================================== ✅ [T01] gmpy2.powmod (plain, no CRT) | fixed vs random - raw t=1.34; crop max t=1.42; diff +0.973%; noise CV=16.3%; detectable effect >~3.29% ✅ [T01] CRT without blinding (gmpy2) | fixed vs random - raw t=0.59; crop max t=1.69; diff -0.318%; noise CV=12.1%; detectable effect >~2.46% ✅ [T01] CRT with blinding (gmpy2) | fixed vs random - raw t=0.22; crop max t=1.70; diff -0.163%; noise CV=16.6%; detectable effect >~3.40% ✅ [T01] gmpy2.powmod_sec (constant-time) | fixed vs random - raw t=0.04; crop max t=0.96; diff +0.061%; noise CV=31.4%; detectable effect >~6.36% ✅ [T01] OpenSSL sign PKCS1v15 (via cryptography) | fixed vs random - raw t=1.10; crop max t=1.41; diff +1.095%; noise CV=22.3%; detectable effect >~4.50% ℹ️ [T02] INTERPRETATION - PASS only means 'no leak detected at this sample size and noise'. Python/GMP are not constant-time by construction; small (~6.71% ✅ [T01] CRT without blinding (gmpy2) | fixed vs random - raw t=0.53; crop max t=1.38; diff +0.344%; noise CV=14.6%; detectable effect >~3.01% ✅ [T01] CRT with blinding (gmpy2) | fixed vs random - raw t=0.40; crop max t=1.00; diff +0.185%; noise CV=10.2%; detectable effect >~2.08% ✅ [T01] gmpy2.powmod_sec (constant-time) | fixed vs random - raw t=0.21; crop max t=1.28; diff +0.041%; noise CV=4.3%; detectable effect >~0.87% ✅ [T01] OpenSSL sign PKCS1v15 (via cryptography) | fixed vs random - raw t=0.83; crop max t=2.17; diff -0.530%; noise CV=14.3%; detectable effect >~2.89% ℹ️ [T02] INTERPRETATION - PASS only means 'no leak detected at this sample size and noise'. Python/GMP are not constant-time by construction; small (~1.12% ✅ [T01] CRT without blinding (gmpy2) | fixed vs random - raw t=3.06; crop max t=4.19; diff +1.076%; noise CV=7.9%; detectable effect >~1.59% ✅ [T01] CRT with blinding (gmpy2) | fixed vs random - raw t=0.32; crop max t=2.08; diff +0.116%; noise CV=8.1%; detectable effect >~1.67% ✅ [T01] gmpy2.powmod_sec (constant-time) | fixed vs random - raw t=0.20; crop max t=1.92; diff -0.043%; noise CV=4.8%; detectable effect >~0.98% ✅ [T01] OpenSSL sign PKCS1v15 (via cryptography) | fixed vs random - raw t=1.16; crop max t=2.21; diff -0.837%; noise CV=16.1%; detectable effect >~3.24% ℹ️ [T02] INTERPRETATION - PASS only means 'no leak detected at this sample size and noise'. Python/GMP are not constant-time by construction; small (= ceil(sqrt(2)*2^(b-1)) (FIPS 186 bound) - 600/600 ✅ [K05] |p-q| > 2^(nlen/2-100) and Fermat factorization fails - 600/600 ✅ [K06] p,q prime: GMP(50) + strong-BPSW + independent Miller-Rabin (FIPS rounds) - 600/600 ✅ [K07] e odd, 2^16 < e < 2^256, gcd(e,p-1)=gcd(e,q-1)=1 - 600/600 ✅ [K08] e*d = 1 (mod lambda(n)) and d > 2^(nlen/2) - 600/600 ✅ [K09] CRT parameters consistent (dP, dQ, qInv) - 600/600 ✅ [K10] round-trip (plain and CRT) incl. boundary values - 600/600 ✅ [K11] gcd(p-1,q-1) small (<= 64 bits) - 600/600 ✅ [K12] Pollard p-1 does not factor n - 600/600 ✅ [K13] no ROCA-like fingerprint - 600/600 ✅ [K14] independent validator (OpenSSL/cryptography) accepts the key - 600/600 ==================================================================================================== 2. [VPR-FIPS] Population tests on 600 keys (1200 primes) ==================================================================================================== ✅ [P01] shared primes / duplicate moduli (pairwise gcd) - 179700 pairs, none ✅ [P02] uniformity of p mod r (10 moduli, chi-square, Bonferroni) - min p=0.161 (r=23), threshold 1.0e-04 ✅ [P03] monobit over middle bits (excluding first 8 and last) - p=0.724 ✅ [P04] per-position frequency: most extreme position (Bonferroni) and overall chi-square - min-p(Bonf)=1; chi2 p=0.0513; single position detectable at deviation from 0.5 above ~0.073 (N=1200) ✅ [P05] runs test (NIST SP 800-22), aggregated calibrated (sum and dispersion of Z) - p=0.71 ✅ [T03] [VPR-FIPS:vpr_method_fips_4096_single.txt] correlation of generation time vs key characteristics (Spearman, Bonferroni) - strongest: HW(p) rho=+0.091 p=0.115; threshold 2.0e-04; detectable |rho| >~0.21 at N=300 ✅ [T03] [VPR-FIPS:vpr_method_fips_4096_parallel.txt] correlation of generation time vs key characteristics (Spearman, Bonferroni) - strongest: HW(p) rho=-0.071 p=0.223; threshold 2.0e-04; detectable |rho| >~0.21 at N=300 ✅ [R03] [VPR-FIPS] vpr_method_fips_4096_single.txt: 300 keys - no duplicates and no shared factors - none ✅ [R03] [VPR-FIPS] vpr_method_fips_4096_parallel.txt: 300 keys - no duplicates and no shared factors - none ==================================================================================================== 1. [VPR-BPSW] Structural checks on 600 keys (RSA-4096) ==================================================================================================== ✅ [K01] p != q - 600/600 ✅ [K02] n = p*q - 600/600 ✅ [K03] exact length: p,q = b bits; n = 2b bits - 600/600 ✅ [K04] p,q >= ceil(sqrt(2)*2^(b-1)) (FIPS 186 bound) - 600/600 ✅ [K05] |p-q| > 2^(nlen/2-100) and Fermat factorization fails - 600/600 ✅ [K06] p,q prime: GMP(50) + strong-BPSW + independent Miller-Rabin (FIPS rounds) - 600/600 ✅ [K07] e odd, 2^16 < e < 2^256, gcd(e,p-1)=gcd(e,q-1)=1 - 600/600 ✅ [K08] e*d = 1 (mod lambda(n)) and d > 2^(nlen/2) - 600/600 ✅ [K09] CRT parameters consistent (dP, dQ, qInv) - 600/600 ✅ [K10] round-trip (plain and CRT) incl. boundary values - 600/600 ✅ [K11] gcd(p-1,q-1) small (<= 64 bits) - 600/600 ✅ [K12] Pollard p-1 does not factor n - 600/600 ✅ [K13] no ROCA-like fingerprint - 600/600 ✅ [K14] independent validator (OpenSSL/cryptography) accepts the key - 600/600 ==================================================================================================== 2. [VPR-BPSW] Population tests on 600 keys (1200 primes) ==================================================================================================== ✅ [P01] shared primes / duplicate moduli (pairwise gcd) - 179700 pairs, none ✅ [P02] uniformity of p mod r (10 moduli, chi-square, Bonferroni) - min p=0.0194 (r=19), threshold 1.0e-04 ✅ [P03] monobit over middle bits (excluding first 8 and last) - p=0.476 ✅ [P04] per-position frequency: most extreme position (Bonferroni) and overall chi-square - min-p(Bonf)=0.702; chi2 p=0.0474; single position detectable at deviation from 0.5 above ~0.073 (N=1200) ✅ [P05] runs test (NIST SP 800-22), aggregated calibrated (sum and dispersion of Z) - p=0.659 ✅ [T03] [VPR-BPSW:vpr_method_bpsw_4096_single.txt] correlation of generation time vs key characteristics (Spearman, Bonferroni) - strongest: p mod 2^16 rho=-0.070 p=0.227; threshold 2.0e-04; detectable |rho| >~0.21 at N=300 ✅ [T03] [VPR-BPSW:vpr_method_bpsw_4096_parallel.txt] correlation of generation time vs key characteristics (Spearman, Bonferroni) - strongest: HW(p) rho=+0.095 p=0.101; threshold 2.0e-04; detectable |rho| >~0.21 at N=300 ✅ [R03] [VPR-BPSW] vpr_method_bpsw_4096_single.txt: 300 keys - no duplicates and no shared factors - none ✅ [R03] [VPR-BPSW] vpr_method_bpsw_4096_parallel.txt: 300 keys - no duplicates and no shared factors - none ==================================================================================================== 1. [OpenSSL] Structural checks on 600 keys (RSA-4096) ==================================================================================================== ✅ [K01] p != q - 600/600 ✅ [K02] n = p*q - 600/600 ✅ [K03] exact length: p,q = b bits; n = 2b bits - 600/600 ✅ [K04] p,q >= ceil(sqrt(2)*2^(b-1)) (FIPS 186 bound) - 600/600 ✅ [K05] |p-q| > 2^(nlen/2-100) and Fermat factorization fails - 600/600 ✅ [K06] p,q prime: GMP(50) + strong-BPSW + independent Miller-Rabin (FIPS rounds) - 600/600 ✅ [K07] e odd, 2^16 < e < 2^256, gcd(e,p-1)=gcd(e,q-1)=1 - 600/600 ✅ [K08] e*d = 1 (mod lambda(n)) and d > 2^(nlen/2) - 600/600 ✅ [K09] CRT parameters consistent (dP, dQ, qInv) - 600/600 ✅ [K10] round-trip (plain and CRT) incl. boundary values - 600/600 ✅ [K11] gcd(p-1,q-1) small (<= 64 bits) - 600/600 ✅ [K12] Pollard p-1 does not factor n - 600/600 ✅ [K13] no ROCA-like fingerprint - 600/600 ✅ [K14] independent validator (OpenSSL/cryptography) accepts the key - 600/600 ==================================================================================================== 2. [OpenSSL] Population tests on 600 keys (1200 primes) ==================================================================================================== ✅ [P01] shared primes / duplicate moduli (pairwise gcd) - 179700 pairs, none ✅ [P02] uniformity of p mod r (10 moduli, chi-square, Bonferroni) - min p=0.027 (r=13), threshold 1.0e-04 ✅ [P03] monobit over middle bits (excluding first 8 and last) - p=0.34 ✅ [P04] per-position frequency: most extreme position (Bonferroni) and overall chi-square - min-p(Bonf)=1; chi2 p=0.692; single position detectable at deviation from 0.5 above ~0.073 (N=1200) ✅ [P05] runs test (NIST SP 800-22), aggregated calibrated (sum and dispersion of Z) - p=0.1 ✅ [T03] [OpenSSL:openssl_4096_single.txt] correlation of generation time vs key characteristics (Spearman, Bonferroni) - strongest: p mod 2^16 rho=-0.120 p=0.0376; threshold 2.0e-04; detectable |rho| >~0.21 at N=300 ✅ [T03] [OpenSSL:openssl_4096_parallel.txt] correlation of generation time vs key characteristics (Spearman, Bonferroni) - strongest: HW(n) rho=-0.040 p=0.487; threshold 2.0e-04; detectable |rho| >~0.21 at N=300 ✅ [R03] [OpenSSL] openssl_4096_single.txt: 300 keys - no duplicates and no shared factors - none ✅ [R03] [OpenSSL] openssl_4096_parallel.txt: 300 keys - no duplicates and no shared factors - none ==================================================================================================== 2a. Cross-check between generators ==================================================================================================== ✅ [P06] shared primes between keys of DIFFERENT generators - none ==================================================================================================== 2b. Bias in prime selection (distribution of the gap before the prime) ==================================================================================================== generating 400 reference uniform primes (2048 bits, MR rounds=4)... ✅ [B00] calibration: two independent halves of the reference (expected no difference) - KS p=0.394 ✅ [B01] [VPR-FIPS] mean gap before prime / reference - ratio 1.050 (95% CI 0.923-1.186); KS p=0.468; MWU p=0.921; N=400; minimum detectable effect ~±14% ✅ [B01] [VPR-BPSW] mean gap before prime / reference - ratio 1.064 (95% CI 0.937-1.216); KS p=0.367; MWU p=0.777; N=400; minimum detectable effect ~±14% ✅ [B01] [OpenSSL] mean gap before prime / reference - ratio 0.976 (95% CI 0.858-1.105); KS p=0.468; MWU p=0.304; N=400; minimum detectable effect ~±14% ==================================================================================================== 4. Measurement calibration (mandatory before trusting 4a) ==================================================================================================== ✅ [T00a] null control: identical distributions (should NOT be flagged) - max|t|=1.31; noise CV=2.2% ✅ [T00b] positive control: synthetic leak ~100% (should be flagged) - max|t|=1019.04; diff +66.086% ==================================================================================================== 4a. [VPR-FIPS] Timing leak on private-key operations (dudect-style, 2000 measurements/pair) ==================================================================================================== ✅ [T01] gmpy2.powmod (plain, no CRT) | fixed vs random - raw t=0.42; crop max t=1.49; diff -0.213%; noise CV=11.4%; detectable effect >~2.30% ✅ [T01] CRT without blinding (gmpy2) | fixed vs random - raw t=0.27; crop max t=2.24; diff +0.036%; noise CV=3.0%; detectable effect >~0.61% ✅ [T01] CRT with blinding (gmpy2) | fixed vs random - raw t=0.98; crop max t=0.78; diff -0.222%; noise CV=5.1%; detectable effect >~1.02% ✅ [T01] gmpy2.powmod_sec (constant-time) | fixed vs random - raw t=0.76; crop max t=1.08; diff -0.071%; noise CV=2.1%; detectable effect >~0.42% ✅ [T01] OpenSSL sign PKCS1v15 (via cryptography) | fixed vs random - raw t=1.71; crop max t=1.79; diff +1.544%; noise CV=20.3%; detectable effect >~4.11% ℹ️ [T02] INTERPRETATION - PASS only means 'no leak detected at this sample size and noise'. Python/GMP are not constant-time by construction; small (~0.53% ✅ [T01] CRT without blinding (gmpy2) | fixed vs random - raw t=0.43; crop max t=0.56; diff -0.059%; noise CV=3.1%; detectable effect >~0.62% ✅ [T01] CRT with blinding (gmpy2) | fixed vs random - raw t=0.59; crop max t=2.31; diff -0.114%; noise CV=4.3%; detectable effect >~0.87% ✅ [T01] gmpy2.powmod_sec (constant-time) | fixed vs random - raw t=0.17; crop max t=2.66; diff -0.077%; noise CV=10.3%; detectable effect >~2.07% ✅ [T01] OpenSSL sign PKCS1v15 (via cryptography) | fixed vs random - raw t=1.18; crop max t=1.06; diff -0.329%; noise CV=6.2%; detectable effect >~1.28% ℹ️ [T02] INTERPRETATION - PASS only means 'no leak detected at this sample size and noise'. Python/GMP are not constant-time by construction; small (~1.29% ✅ [T01] CRT without blinding (gmpy2) | fixed vs random - raw t=0.08; crop max t=1.06; diff +0.012%; noise CV=3.4%; detectable effect >~0.68% ✅ [T01] CRT with blinding (gmpy2) | fixed vs random - raw t=0.27; crop max t=1.46; diff +0.133%; noise CV=11.0%; detectable effect >~2.24% ✅ [T01] gmpy2.powmod_sec (constant-time) | fixed vs random - raw t=0.19; crop max t=1.54; diff -0.018%; noise CV=2.2%; detectable effect >~0.44% ✅ [T01] OpenSSL sign PKCS1v15 (via cryptography) | fixed vs random - raw t=0.60; crop max t=0.95; diff +0.222%; noise CV=8.2%; detectable effect >~1.67% ℹ️ [T02] INTERPRETATION - PASS only means 'no leak detected at this sample size and noise'. Python/GMP are not constant-time by construction; small (