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.h31
1 files changed, 25 insertions, 6 deletions
diff --git a/src/tests/test_pubkey.h b/src/tests/test_pubkey.h
index 729e703cd..fd9394fa6 100644
--- a/src/tests/test_pubkey.h
+++ b/src/tests/test_pubkey.h
@@ -1,22 +1,41 @@
+#ifndef BOTAN_TEST_PUBKEY_H__
+#define BOTAN_TEST_PUBKEY_H__
+
#include <botan/pubkey.h>
using namespace Botan;
size_t validate_encryption(Botan::PK_Encryptor& e, Botan::PK_Decryptor& d,
- const std::string& algo, const std::string& input,
- const std::string& random, const std::string& exp);
+ const std::string& algo,
+ const std::string& input,
+ const std::string& random,
+ const std::string& expected);
+
+size_t validate_signature(PK_Verifier& v, PK_Signer& s,
+ const std::string& algo,
+ const std::string& input,
+ RandomNumberGenerator& signer_rng,
+ RandomNumberGenerator& test_rng,
+ const std::string& exp);
-size_t validate_signature(PK_Verifier& v, PK_Signer& s, const std::string& algo,
+size_t validate_signature(PK_Verifier& v, PK_Signer& s,
+ const std::string& algo,
const std::string& input,
RandomNumberGenerator& rng,
const std::string& exp);
-size_t validate_signature(PK_Verifier& v, PK_Signer& s, const std::string& algo,
+size_t validate_signature(PK_Verifier& v, PK_Signer& s,
+ const std::string& algo,
const std::string& input,
+ RandomNumberGenerator& rng,
const std::string& random,
const std::string& exp);
-size_t validate_kas(PK_Key_Agreement& kas, const std::string& algo,
- const std::vector<byte>& pubkey, const std::string& output,
+size_t validate_kas(PK_Key_Agreement& kas,
+ const std::string& algo,
+ const std::vector<byte>& pubkey,
+ const std::string& output,
size_t keylen);
+
+#endif