From 6abadd2f2a3746944bcd21aa6829ad4f2188f3b0 Mon Sep 17 00:00:00 2001 From: toddouska Date: Tue, 9 Oct 2012 14:04:27 -0700 Subject: [PATCH] fix ecc warnings --- ctaocrypt/benchmark/benchmark.c | 4 ++-- ctaocrypt/test/test.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ctaocrypt/benchmark/benchmark.c b/ctaocrypt/benchmark/benchmark.c index d7ef9200d..8cd79ffe3 100644 --- a/ctaocrypt/benchmark/benchmark.c +++ b/ctaocrypt/benchmark/benchmark.c @@ -580,7 +580,7 @@ void bench_eccKeyGen(void) start = current_time(); for(i = 0; i < genTimes; i++) { - int ret = ecc_make_key(&rng, 32, &genKey); + ecc_make_key(&rng, 32, &genKey); ecc_free(&genKey); } @@ -622,7 +622,7 @@ void bench_eccKeyAgree(void) " iterations\n", milliEach, agreeTimes); /* make dummy digest */ - for (i = 0; i < sizeof(digest); i++) + for (i = 0; i < (int)sizeof(digest); i++) digest[i] = i; diff --git a/ctaocrypt/test/test.c b/ctaocrypt/test/test.c index d98635f7b..4f478a58f 100644 --- a/ctaocrypt/test/test.c +++ b/ctaocrypt/test/test.c @@ -2259,7 +2259,7 @@ int ecc_test(void) return -1010; /* test DSA sign hash */ - for (i = 0; i < sizeof(digest); i++) + for (i = 0; i < (int)sizeof(digest); i++) digest[i] = i; x = sizeof(sig);