update crypto test
This commit is contained in:
parent
f9f74fddd7
commit
4ecb428b28
@ -89,7 +89,6 @@ AS_IF([test $libgnunetutil != 1],
|
|||||||
# restore LIBS
|
# restore LIBS
|
||||||
LIBS=$SAVE_LIBS
|
LIBS=$SAVE_LIBS
|
||||||
|
|
||||||
|
|
||||||
# Adam shostack suggests the following for Windows:
|
# Adam shostack suggests the following for Windows:
|
||||||
# -D_FORTIFY_SOURCE=2 -fstack-protector-all
|
# -D_FORTIFY_SOURCE=2 -fstack-protector-all
|
||||||
AC_ARG_ENABLE(gcc-hardening,
|
AC_ARG_ENABLE(gcc-hardening,
|
||||||
|
@ -244,7 +244,7 @@ test_private_first_price ()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
CHECK (-1 != winner, "no winner detected");
|
CHECK (-1 != winner, "no winner detected");
|
||||||
fputs ("good: one winner detected", stderr);
|
fputs ("good: one winner detected\n", stderr);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -275,7 +275,7 @@ test_public_first_price ()
|
|||||||
wret = winner;
|
wret = winner;
|
||||||
CHECK (winner == wret, "different winners detected");
|
CHECK (winner == wret, "different winners detected");
|
||||||
}
|
}
|
||||||
fputs ("good: same winner detected", stderr);
|
fputs ("good: same winner detected\n", stderr);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -309,8 +309,8 @@ main (int argc, char *argv[])
|
|||||||
int repeat = 1;
|
int repeat = 1;
|
||||||
struct GNUNET_CRYPTO_EccDlogContext *edc;
|
struct GNUNET_CRYPTO_EccDlogContext *edc;
|
||||||
|
|
||||||
bidders = 2;
|
bidders = 3;
|
||||||
prizes = 2 * bidders;
|
prizes = 6;
|
||||||
|
|
||||||
edc = GNUNET_CRYPTO_ecc_dlog_prepare (1024, 16);
|
edc = GNUNET_CRYPTO_ecc_dlog_prepare (1024, 16);
|
||||||
BRANDT_init (edc);
|
BRANDT_init (edc);
|
||||||
|
Loading…
Reference in New Issue
Block a user