]> git.cryptolib.org Git - avr-crypto-lib.git/commitdiff
forgot to reactivate mongomery-speedup
authorbg <daniel.otte@rub.de>
Mon, 17 Feb 2014 14:52:31 +0000 (15:52 +0100)
committerbg <daniel.otte@rub.de>
Mon, 17 Feb 2014 14:52:31 +0000 (15:52 +0100)
bigint/bigint.c

index d868a498ddf7f23dc642c4fb35b2fa5ce47be87c..4209d956ad0a0755114a952f3fe3df361a7bad11 100644 (file)
@@ -1253,7 +1253,7 @@ void bigint_expmod_u(bigint_t *dest, const bigint_t *a, const bigint_t *exp, con
     printf("\n\tm: ");
     bigint_print_hex(r);
 #endif
-    if (0 &&  r->wordv[0] & 1) {
+    if (r->wordv[0] & 1) {
         bigint_expmod_u_mont_sam(dest, a, exp, r);
     } else {
         bigint_expmod_u_sam(dest, a, exp, r);