aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/test_pubkey.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests/test_pubkey.h')
-rw-r--r--src/tests/test_pubkey.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/tests/test_pubkey.h b/src/tests/test_pubkey.h
index 086c0bea1..b5a79bf55 100644
--- a/src/tests/test_pubkey.h
+++ b/src/tests/test_pubkey.h
@@ -9,6 +9,8 @@
#include "tests.h"
+#include "test_rng.h"
+
#if defined(BOTAN_HAS_PUBLIC_KEY_CRYPTO)
#include <botan/pubkey.h>
@@ -30,6 +32,12 @@ class PK_Signature_Generation_Test : public Text_Based_Test
}
virtual std::unique_ptr<Botan::Private_Key> load_private_key(const VarMap& vars) = 0;
+
+ virtual Botan::RandomNumberGenerator* test_rng(const std::vector<uint8_t>& nonce) const
+ {
+ return new Fixed_Output_RNG(nonce);
+ }
+
private:
Test::Result run_one_test(const std::string&, const VarMap& vars) override;
};