aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/pubkey/ecc_key
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/ecc_key
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/ecc_key')
-rw-r--r--src/lib/pubkey/ecc_key/ecc_key.cpp2
-rw-r--r--src/lib/pubkey/ecc_key/ecc_key.h4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/pubkey/ecc_key/ecc_key.cpp b/src/lib/pubkey/ecc_key/ecc_key.cpp
index 195da0a63..00ddddda1 100644
--- a/src/lib/pubkey/ecc_key/ecc_key.cpp
+++ b/src/lib/pubkey/ecc_key/ecc_key.cpp
@@ -38,7 +38,7 @@ EC_PublicKey::EC_PublicKey(const EC_Group& dom_par,
}
EC_PublicKey::EC_PublicKey(const AlgorithmIdentifier& alg_id,
- const secure_vector<byte>& key_bits) :
+ const std::vector<byte>& key_bits) :
m_domain_params{EC_Group(alg_id.parameters)},
m_public_key{OS2ECP(key_bits, domain().get_curve())},
m_domain_encoding{EC_DOMPAR_ENC_EXPLICIT}
diff --git a/src/lib/pubkey/ecc_key/ecc_key.h b/src/lib/pubkey/ecc_key/ecc_key.h
index c2d1b057c..06f100c1c 100644
--- a/src/lib/pubkey/ecc_key/ecc_key.h
+++ b/src/lib/pubkey/ecc_key/ecc_key.h
@@ -40,10 +40,10 @@ class BOTAN_DLL EC_PublicKey : public virtual Public_Key
/**
* Load a public key.
* @param alg_id the X.509 algorithm identifier
- * @param key_bits PKCS #8 structure
+ * @param key_bits DER encoded public key bits
*/
EC_PublicKey(const AlgorithmIdentifier& alg_id,
- const secure_vector<byte>& key_bits);
+ const std::vector<byte>& key_bits);
/**
* Get the public point of this key.