Skip to content

FiniteGuards ​

What the finite-key path refuses, and the families that never reach it

5/5 passed in 0ms

TestWhat it doesResult
test_block_agreesA declared block differing from the sampled run size is refused.✅ pass
test_block_domainq.KeyBlock refuses a non-positive size, an epsilon outside the unit interval and a frame error rate outside it.✅ pass
test_cow_refusesCOW refuses a key block under q.SplittingAttack and q.PhaseBound, its phase error being an input, and q.PhaseBound's block defaults to None.✅ pass
test_share_domainbb84_eps refuses eps_sec outside (0, 1).✅ pass
test_sifting_domainA sifting factor below 1/2 (no key/test split) or of 1 (no test basis) is refused.✅ pass