aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/test_xmss.cpp
diff options
context:
space:
mode:
authorRenĂ© Korthaus <[email protected]>2016-12-11 18:09:37 +0100
committerRenĂ© Korthaus <[email protected]>2016-12-11 18:14:22 +0100
commit90298cbaf7f1136850fec1eae778247ad66e38ad (patch)
treebb1f01c9d2acf44b1d1f4a40ca0f6a7a326ec1bb /src/tests/test_xmss.cpp
parentf5189fbe1efe75182f3aebfd923c9769e3a874d7 (diff)
Public_Key derived class ctors take an std::vector<byte>
Changes all the Public_Key derived classes ctors to take a std::vector instead of a secure_vector for the DER encoded public key bits. There is no point in transporting a public key in secure storage. (GH #768)
Diffstat (limited to 'src/tests/test_xmss.cpp')
-rw-r--r--src/tests/test_xmss.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/tests/test_xmss.cpp b/src/tests/test_xmss.cpp
index eb75daa38..8cec72186 100644
--- a/src/tests/test_xmss.cpp
+++ b/src/tests/test_xmss.cpp
@@ -61,9 +61,7 @@ class XMSS_Signature_Verify_Tests : public PK_Signature_Verification_Test
std::unique_ptr<Botan::Public_Key> load_public_key(const VarMap& vars) override
{
const std::vector<byte> raw_key = get_req_bin(vars, "PublicKey");
- const Botan::secure_vector<byte> sec_key(raw_key.begin(), raw_key.end());
-
- std::unique_ptr<Botan::Public_Key> key(new Botan::XMSS_PublicKey(sec_key));
+ std::unique_ptr<Botan::Public_Key> key(new Botan::XMSS_PublicKey(raw_key));
return key;
}
};