From 90298cbaf7f1136850fec1eae778247ad66e38ad Mon Sep 17 00:00:00 2001 From: René Korthaus Date: Sun, 11 Dec 2016 18:09:37 +0100 Subject: Public_Key derived class ctors take an std::vector 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) --- src/lib/pubkey/curve25519/curve25519.cpp | 2 +- src/lib/pubkey/curve25519/curve25519.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/lib/pubkey/curve25519') diff --git a/src/lib/pubkey/curve25519/curve25519.cpp b/src/lib/pubkey/curve25519/curve25519.cpp index bad961b40..7c3dea0f3 100644 --- a/src/lib/pubkey/curve25519/curve25519.cpp +++ b/src/lib/pubkey/curve25519/curve25519.cpp @@ -47,7 +47,7 @@ bool Curve25519_PublicKey::check_key(RandomNumberGenerator&, bool) const } Curve25519_PublicKey::Curve25519_PublicKey(const AlgorithmIdentifier&, - const secure_vector& key_bits) + const std::vector& key_bits) { BER_Decoder(key_bits) .start_cons(SEQUENCE) diff --git a/src/lib/pubkey/curve25519/curve25519.h b/src/lib/pubkey/curve25519/curve25519.h index 41f32c931..68f3cb387 100644 --- a/src/lib/pubkey/curve25519/curve25519.h +++ b/src/lib/pubkey/curve25519/curve25519.h @@ -32,10 +32,10 @@ class BOTAN_DLL Curve25519_PublicKey : public virtual Public_Key /** * Create a Curve25519 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 */ Curve25519_PublicKey(const AlgorithmIdentifier& alg_id, - const secure_vector& key_bits); + const std::vector& key_bits); /** * Create a Curve25519 Public Key. -- cgit v1.2.3