diff options
Diffstat (limited to 'src/lib/pubkey/xmss')
-rw-r--r-- | src/lib/pubkey/xmss/xmss_privatekey.cpp | 2 | ||||
-rw-r--r-- | src/lib/pubkey/xmss/xmss_publickey.cpp | 4 | ||||
-rw-r--r-- | src/lib/pubkey/xmss/xmss_publickey.h | 6 |
3 files changed, 6 insertions, 6 deletions
diff --git a/src/lib/pubkey/xmss/xmss_privatekey.cpp b/src/lib/pubkey/xmss/xmss_privatekey.cpp index 4e4ff73b7..b409789bf 100644 --- a/src/lib/pubkey/xmss/xmss_privatekey.cpp +++ b/src/lib/pubkey/xmss/xmss_privatekey.cpp @@ -21,7 +21,7 @@ namespace Botan { XMSS_PrivateKey::XMSS_PrivateKey(const secure_vector<byte>& raw_key) - : XMSS_PublicKey(raw_key), + : XMSS_PublicKey(unlock(raw_key)), XMSS_Common_Ops(XMSS_PublicKey::m_xmss_params.oid()), m_wots_priv_key(m_wots_params.oid(), m_public_seed), m_index_reg(XMSS_Index_Registry::get_instance()) 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) { diff --git a/src/lib/pubkey/xmss/xmss_publickey.h b/src/lib/pubkey/xmss/xmss_publickey.h index 23c8032c2..3cc98ff77 100644 --- a/src/lib/pubkey/xmss/xmss_publickey.h +++ b/src/lib/pubkey/xmss/xmss_publickey.h @@ -62,7 +62,7 @@ class BOTAN_DLL XMSS_PublicKey : public virtual Public_Key * Creates an XMSS public key from a byte sequence produced by * raw_private_key(). **/ - XMSS_PublicKey(const secure_vector<byte>& raw_key); + XMSS_PublicKey(const std::vector<byte>& raw_key); /** * Creates a new XMSS public key for a chosen XMSS signature method as @@ -137,7 +137,7 @@ class BOTAN_DLL XMSS_PublicKey : public virtual Public_Key /** * Retrieves the Winternitz One Time Signature (WOTS) parameters - * corrseponding to the chosen XMSS signature method. + * corresponding to the chosen XMSS signature method. * * @return XMSS WOTS signature method parameters. **/ @@ -254,7 +254,7 @@ class BOTAN_DLL XMSS_PublicKey : public virtual Public_Key private: XMSS_Parameters::xmss_algorithm_t deserialize_xmss_oid( - const secure_vector<byte>& raw_key); + const std::vector<byte>& raw_key); }; } |