aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/pubkey/xmss/xmss_publickey.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/lib/pubkey/xmss/xmss_publickey.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/lib/pubkey/xmss/xmss_publickey.cpp')
-rw-r--r--src/lib/pubkey/xmss/xmss_publickey.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/pubkey/xmss/xmss_publickey.cpp b/src/lib/pubkey/xmss/xmss_publickey.cpp
index 9bf166779..73bcdb1cf 100644
--- a/src/lib/pubkey/xmss/xmss_publickey.cpp
+++ b/src/lib/pubkey/xmss/xmss_publickey.cpp
@@ -20,7 +20,7 @@
namespace Botan {
-XMSS_PublicKey::XMSS_PublicKey(const secure_vector<byte>& raw_key)
+XMSS_PublicKey::XMSS_PublicKey(const std::vector<byte>& raw_key)
: m_xmss_params(XMSS_PublicKey::deserialize_xmss_oid(raw_key)),
m_wots_params(m_xmss_params.ots_oid())
{
@@ -45,7 +45,7 @@ XMSS_PublicKey::XMSS_PublicKey(const secure_vector<byte>& raw_key)
}
XMSS_Parameters::xmss_algorithm_t
-XMSS_PublicKey::deserialize_xmss_oid(const secure_vector<byte>& raw_key)
+XMSS_PublicKey::deserialize_xmss_oid(const std::vector<byte>& raw_key)
{
if(raw_key.size() < 4)
{