diff options
author | Jack Lloyd <[email protected]> | 2018-03-21 06:45:06 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2018-03-21 06:45:06 -0400 |
commit | 29bbabad6e833a2b0047a41fe8bed8960b8e1116 (patch) | |
tree | 915e973afebf76890333ed8c2f1a04c90f70b987 /src/tests/test_pubkey.h | |
parent | e7689444a0ef4ab5c252235968d84acf6685819a (diff) |
Support "mixed" OAEP hashes
Test vectors from pyca/cryptography
Fixes GH #109
Diffstat (limited to 'src/tests/test_pubkey.h')
-rw-r--r-- | src/tests/test_pubkey.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/tests/test_pubkey.h b/src/tests/test_pubkey.h index d43909f14..2fde5de3c 100644 --- a/src/tests/test_pubkey.h +++ b/src/tests/test_pubkey.h @@ -125,6 +125,26 @@ class PK_Encryption_Decryption_Test : public PK_Test Test::Result run_one_test(const std::string& header, const VarMap& vars) override final; }; +class PK_Decryption_Test : public PK_Test + { + public: + PK_Decryption_Test(const std::string& algo, + const std::string& test_src, + const std::string& required_keys, + const std::string& optional_keys = "") + : PK_Test(algo, test_src, required_keys, optional_keys) {} + + virtual std::unique_ptr<Botan::Private_Key> load_private_key(const VarMap& vars) = 0; + + std::string default_padding(const VarMap&) const override + { + return "Raw"; + } + + private: + Test::Result run_one_test(const std::string& header, const VarMap& vars) override final; + }; + class PK_Key_Agreement_Test : public PK_Test { public: |