Skip to content

EurLength ​

The composable finite-key length, its corrections and its asymptotic limit

7/7 passed in 0ms

TestWhat it doesResult
test_asymptotic_limitWith Shannon-limit leakage the length per round approaches the collective-attack rate.✅ pass
test_entropy_saturatesA tolerated error past 1/2 saturates at one bit rather than letting h2 turn back.✅ pass
test_length_belowEvery correction shortens the key, so the length stays under n q.✅ pass
test_length_formThe key length reproduces TLGR Eq. (2) with every correction subtracted.✅ pass
test_serfling_aboveSampling without replacement is wider than the with-replacement Hoeffding half-width.✅ pass
test_serfling_fallsThe correction falls as the sample grows and rises as the failure probability shrinks.✅ pass
test_serfling_formThe statistical correction reproduces TLGR Eq. (2) term for term.✅ pass