From bad79f05a0d5c6d954b7ef4fe5061b48505bce1b Mon Sep 17 00:00:00 2001 From: Mirek Kratochvil Date: Tue, 17 Nov 2015 17:07:05 +0100 Subject: [PATCH] mce_qcmdpc: code cleaniness --- src/mce_qcmdpc.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/mce_qcmdpc.cpp b/src/mce_qcmdpc.cpp index ff55d55..f464bc8 100644 --- a/src/mce_qcmdpc.cpp +++ b/src/mce_qcmdpc.cpp @@ -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; }