diff --git a/literature/2006_how_to_obtain_full_privacy_in_auctions.pdf b/literature/2006_how_to_obtain_full_privacy_in_auctions.pdf new file mode 100644 index 0000000..0391554 Binary files /dev/null and b/literature/2006_how_to_obtain_full_privacy_in_auctions.pdf differ diff --git a/smc.c b/smc.c index e065f8a..e3e90cf 100644 --- a/smc.c +++ b/smc.c @@ -24,12 +24,13 @@ GEN smc_hextodec (char *s) /* int */ { - long i, tmp; + unsigned int i, tmp; GEN ret = gen_0; /* int */ GEN v = gtovecsmall (strtoGENstr (s)); /* vecsmall */ for (i = 1; i < lg (v); ++i) { + ///TODO: scanf instead of if if ((v[i] >= '0') && (v[i] <= '9')) tmp = v[i] - '0'; else if ((v[i] >= 'a') && (v[i] <= 'f'))