aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/test_pubkey.h
blob: e1197a61bc6fcca8d129bf2a87d78f65e3e0d6f3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/*
* (C) 2014,2015 Jack Lloyd
*
* Botan is released under the Simplified BSD License (see license.txt)
*/

#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& 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,
                          const std::string& input,
                          RandomNumberGenerator& rng,
                          const std::string& exp);

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 keylen);

#endif