Commit 3b9ffc4c authored by Michael Hamburg's avatar Michael Hamburg

separate Ed25519ph from Ed25519 with awful CRTP hack

parent 422cc78e
......@@ -298,7 +298,7 @@ doc: Doxyfile $(BUILD_OBJ)/timestamp $(HEADERS)
# (cd $(BATNAME)/.. && tar czf $(BATBASE).tgz $(BATBASE) )
# Finds todo items in .h and .c files
TODO_TYPES ?= HACK TODO FIXME BUG XXX PERF FUTURE REMOVE MAGIC UNIFY
TODO_TYPES ?= HACK TODO @todo FIXME BUG XXX PERF FUTURE REMOVE MAGIC UNIFY
TODO_LOCATIONS ?= src test Makefile Doxyfile
todo::
@(find $(TODO_LOCATIONS) -name '*.h' -or -name '*.c' -or -name '*.cxx' -or -name '*.hxx' -or -name '*.py') | xargs egrep --color=auto -w \
......
This diff is collapsed.
......@@ -491,7 +491,7 @@ static void test_cfrg_vectors() {
}
SecureBuffer sig;
if (priv.SUPPORTS_CONTEXTS) {
sig = priv.sign(eddsa_message[t],false,eddsa_context[t]);
sig = priv.sign(eddsa_message[t],eddsa_context[t]);
} else {
sig = priv.sign(eddsa_message[t]);
}
......@@ -546,10 +546,10 @@ static void test_eddsa() {
SecureBuffer context(priv.SUPPORTS_CONTEXTS ? i%256 : 0);
rng.read(message);
SecureBuffer sig = priv.sign(message,i%2,context);
SecureBuffer sig = priv.sign(message,context);
try {
pub.verify(sig,message,i%2,context);
pub.verify(sig,message,context);
} catch(CryptoException) {
test.fail();
printf(" Signature validation failed on sig %d\n", i);
......
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