aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--literature/2006_how_to_obtain_full_privacy_in_auctions.pdfbin0 -> 281050 bytes
-rw-r--r--smc.c3
2 files changed, 2 insertions, 1 deletions
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
--- /dev/null
+++ b/literature/2006_how_to_obtain_full_privacy_in_auctions.pdf
Binary files 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'))