aboutsummaryrefslogtreecommitdiffstats
path: root/src/pubkey
diff options
context:
space:
mode:
Diffstat (limited to 'src/pubkey')
-rw-r--r--src/pubkey/ecdh/ecdh.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/pubkey/ecdh/ecdh.cpp b/src/pubkey/ecdh/ecdh.cpp
index 7577a8569..7ecc40ae4 100644
--- a/src/pubkey/ecdh/ecdh.cpp
+++ b/src/pubkey/ecdh/ecdh.cpp
@@ -17,9 +17,7 @@ namespace Botan {
SecureVector<byte> ECDH_PrivateKey::derive_key(const byte key[],
u32bit key_len) const
{
- MemoryVector<byte> key_x(key, key_len); // FIXME: nasty/slow
- PointGFp point = OS2ECP(key_x, public_point().get_curve());
-
+ PointGFp point = OS2ECP(key, key_len, public_point().get_curve());
return derive_key(point);
}