diff options
author | René Korthaus <[email protected]> | 2016-12-11 18:09:37 +0100 |
---|---|---|
committer | René Korthaus <[email protected]> | 2016-12-11 18:14:22 +0100 |
commit | 90298cbaf7f1136850fec1eae778247ad66e38ad (patch) | |
tree | bb1f01c9d2acf44b1d1f4a40ca0f6a7a326ec1bb /src/lib/pubkey/gost_3410 | |
parent | f5189fbe1efe75182f3aebfd923c9769e3a874d7 (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/gost_3410')
-rw-r--r-- | src/lib/pubkey/gost_3410/gost_3410.cpp | 2 | ||||
-rw-r--r-- | src/lib/pubkey/gost_3410/gost_3410.h | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/pubkey/gost_3410/gost_3410.cpp b/src/lib/pubkey/gost_3410/gost_3410.cpp index d10ad0575..e8923c71a 100644 --- a/src/lib/pubkey/gost_3410/gost_3410.cpp +++ b/src/lib/pubkey/gost_3410/gost_3410.cpp @@ -49,7 +49,7 @@ AlgorithmIdentifier GOST_3410_PublicKey::algorithm_identifier() const } GOST_3410_PublicKey::GOST_3410_PublicKey(const AlgorithmIdentifier& alg_id, - const secure_vector<byte>& key_bits) + const std::vector<byte>& key_bits) { OID ecc_param_id; diff --git a/src/lib/pubkey/gost_3410/gost_3410.h b/src/lib/pubkey/gost_3410/gost_3410.h index a80b41fc7..49f328d56 100644 --- a/src/lib/pubkey/gost_3410/gost_3410.h +++ b/src/lib/pubkey/gost_3410/gost_3410.h @@ -33,10 +33,10 @@ class BOTAN_DLL GOST_3410_PublicKey : public virtual EC_PublicKey /** * Load a public key. * @param alg_id the X.509 algorithm identifier - * @param key_bits X.509 subject public key info structure + * @param key_bits DER encoded public key bits */ GOST_3410_PublicKey(const AlgorithmIdentifier& alg_id, - const secure_vector<byte>& key_bits); + const std::vector<byte>& key_bits); /** * Get this keys algorithm name. |