Commit e5512f32 authored by Niels Möller's avatar Niels Möller

New program hogweed-benchmark.

parent bf913c73
2013-02-20 Niels Möller <nisse@lysator.liu.se>
* examples/Makefile.in (HOGWEED_TARGETS): Added
hogweed-benchmark$(EXEEXT).
(SOURCES): Added hogweed-benchmark.c.
(hogweed-benchmark$(EXEEXT)): New target.
* examples/hogweed-benchmark.c: New file.
* ecdsa-keygen.c (ecdsa_generate_keypair): New file and function.
* Makefile.in (hogweed_SOURCES): Added ecdsa-keygen.c.
* testsuite/ecdsa-keygen-test.c: New testcase.
......
......@@ -6,6 +6,7 @@
/base64enc
/ecc-benchmark
/eratosthenes
/hogweed-benchmark
/nettle-benchmark
/next-prime
/random-prime
......
......@@ -15,14 +15,15 @@ BENCH_LIBS = @BENCH_LIBS@ -lm
HOGWEED_TARGETS = rsa-keygen$(EXEEXT) rsa-sign$(EXEEXT) \
rsa-verify$(EXEEXT) rsa-encrypt$(EXEEXT) rsa-decrypt$(EXEEXT) \
next-prime$(EXEEXT) random-prime$(EXEEXT) ecc-benchmark$(EXEEXT)
next-prime$(EXEEXT) random-prime$(EXEEXT) \
hogweed-benchmark$(EXEEXT) ecc-benchmark$(EXEEXT)
ENC_TARGETS = base16enc$(EXEEXT) base16dec$(EXEEXT) \
base64enc$(EXEEXT) base64dec$(EXEEXT)
TARGETS = nettle-benchmark$(EXEEXT) eratosthenes$(EXEEXT) \
$(ENC_TARGETS) @IF_HOGWEED@ $(HOGWEED_TARGETS)
SOURCES = nettle-benchmark.c ecc-benchmark.c \
SOURCES = nettle-benchmark.c hogweed-benchmark.c ecc-benchmark.c \
eratosthenes.c next-prime.c random-prime.c \
nettle-openssl.c \
io.c read_rsa_key.c \
......@@ -109,6 +110,11 @@ ecc-benchmark$(EXEEXT): ecc-benchmark.$(OBJEXT)
$(LINK) ecc-benchmark.$(OBJEXT) -lhogweed -lnettle $(BENCH_LIBS) $(LIBS) \
-o ecc-benchmark$(EXEEXT)
hogweed-benchmark$(EXEEXT): hogweed-benchmark.$(OBJEXT)
$(LINK) hogweed-benchmark.$(OBJEXT) \
-lhogweed -lnettle $(BENCH_LIBS) $(LIBS) $(OPENSSL_LIBFLAGS) \
-o hogweed-benchmark$(EXEEXT)
$(TARGETS) : io.$(OBJEXT) ../libnettle.a
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment