1
0
mirror of https://github.com/biergaizi/codecrypt synced 2024-06-25 16:28:15 +00:00

mce_qcmdpc: code cleaniness

This commit is contained in:
Mirek Kratochvil 2015-11-17 17:07:05 +01:00
parent aaa8c9ae9d
commit bad79f05a0

@ -107,7 +107,6 @@ int mce_qcmdpc::generate (pubkey&pub, privkey&priv, prng&rng,
//save it to G
pub.G[i] = Hb;
pub.G[i].resize (block_size, 0);
//for (j = 0; j < block_size; ++j) pub.G[i][j] = Hb[j];
}
//save the target params
@ -283,8 +282,10 @@ int privkey::decrypt (const bvector & in_orig, bvector & out, bvector & errors)
bool increase = !syndrome[hpos % bs];
for (uint b2 = 0; b2 < blocks; ++b2)
for (uint h2 : Hsp[b2]) {
unsigned&ref = unsat[b2 * bs +
(hpos + bs - h2) % bs];
unsigned&
ref = unsat
[b2 * bs
+ (hpos + bs - h2) % bs];
if (increase) ++ref;
else --ref;
}