Unverified Commit a4c3db46 authored by Ola Bini's avatar Ola Bini
Browse files

Add rest of EdDSA RFC test vectors. Also test of EdDSA verify, of test vectors.

parent 8c78e379
......@@ -522,6 +522,15 @@ static void test_cfrg_vectors() {
for (unsigned i=0; i<sig.size(); i++) printf("%02x", sig[i]);
printf("\n");
}
try {
if (!eddsa_prehashed[t]) {
priv.pub().verify(eddsa_sig[t], eddsa_message[t], eddsa_context[t]);
}
} catch(CryptoException&) {
test.fail();
printf(" EdDSA Verify vector #%d disagree\n", t);
}
}
/* X448 */
......
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