1
0
mirror of https://github.com/biergaizi/codecrypt synced 2024-06-30 02:43:06 +00:00

mce_qd: consistency check fix

This commit is contained in:
Mirek Kratochvil 2012-09-25 12:58:24 +02:00
parent 7c3f359c9c
commit 30f873c86b

@ -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]),