aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/test_ed25519.cpp
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2018-05-31 19:55:01 -0400
committerJack Lloyd <[email protected]>2018-05-31 20:17:22 -0400
commit2f08b493b3ad817673a8c49cebb017cff61b6eb3 (patch)
treeef4eb9b695b200eae00b370fccaf12438eb649ba /src/tests/test_ed25519.cpp
parent07386822ffecc6baf5cc5a69fb61d747fd4088b6 (diff)
Add EdDSA and X25519 tests from Wycheproof
Diffstat (limited to 'src/tests/test_ed25519.cpp')
-rw-r--r--src/tests/test_ed25519.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/tests/test_ed25519.cpp b/src/tests/test_ed25519.cpp
index 05a5ce30c..2aaed1c46 100644
--- a/src/tests/test_ed25519.cpp
+++ b/src/tests/test_ed25519.cpp
@@ -28,6 +28,11 @@ class Ed25519_Verification_Tests : public PK_Signature_Verification_Test
"pubkey/ed25519_verify.vec",
"Pubkey,Msg,Signature", "Valid") {}
+ bool clear_between_callbacks() const override
+ {
+ return false;
+ }
+
std::unique_ptr<Botan::Public_Key> load_public_key(const VarMap& vars) override
{
const std::vector<uint8_t> pubkey = vars.get_req_bin("Pubkey");
@@ -47,6 +52,11 @@ class Ed25519_Signature_Tests final : public PK_Signature_Generation_Test
"pubkey/ed25519.vec",
"Privkey,Pubkey,Msg,Signature") {}
+ bool clear_between_callbacks() const override
+ {
+ return false;
+ }
+
std::unique_ptr<Botan::Private_Key> load_private_key(const VarMap& vars) override
{
const std::vector<uint8_t> privkey = vars.get_req_bin("Privkey");