From 30f873c86bb3e5bb121a38952781d3ecdb7363c9 Mon Sep 17 00:00:00 2001 From: Mirek Kratochvil Date: Tue, 25 Sep 2012 12:58:24 +0200 Subject: [PATCH] mce_qd: consistency check fix --- lib/mce_qd.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/mce_qd.cpp b/lib/mce_qd.cpp index 74b6da1..9662ac4 100644 --- a/lib/mce_qd.cpp +++ b/lib/mce_qd.cpp @@ -90,6 +90,7 @@ int mce_qd::generate (pubkey&pub, privkey&priv, prng&rng, //compute the support, retry if it has two equal elements. used.clear(); bool consistent = true; + used.insert (0); //zero is forbidden for (uint i = 0; i < fld.n / 2; ++i) { support[i] = fld.add ( fld.inv (Hsig[i]),