1
0
mirror of https://github.com/biergaizi/codecrypt synced 2024-06-24 07:48:13 +00:00

cleaned-up version bump

This commit is contained in:
Mirek Kratochvil 2015-11-15 20:43:30 +01:00
parent de4ee8aa39
commit aaa8c9ae9d
3 changed files with 8 additions and 3 deletions

@ -1,6 +1,11 @@
Codecrypt ChangeLog
1.7.1
- rewrite QC-MDPC decoding for speed (still around O(wi^2))
- fix the padding broken on non-byte-aligned numbers
1.7
- add QC-MDPC McEliece variant

@ -1,6 +1,6 @@
AC_PREREQ(2.6)
AC_INIT([codecrypt], [1.7])
AC_INIT([codecrypt], [1.7.1])
AC_CONFIG_AUX_DIR(.) # because of libtoolize
AC_CONFIG_MACRO_DIR([m4])

@ -258,7 +258,7 @@ int privkey::decrypt (const bvector & in_orig, bvector & out, bvector & errors)
for (i = 0; i < cs; ++i)
if (unsat[i] > max_unsat) max_unsat = unsat[i];
if (!max_unsat) break;
if (max_unsat > bs) err ("mce_qcmdpc: weird decryption error, expect failures");
if (max_unsat > bs) return 3;
//TODO do something about possible timing attacks
uint threshold = 0;
@ -298,7 +298,7 @@ int privkey::decrypt (const bvector & in_orig, bvector & out, bvector & errors)
}
}
if (round == rounds) return 3; //we simply failed, haha.
if (round == rounds) return 4; //we simply failed, haha.
errors = in_orig;
errors.add (in); //get the difference