aboutsummaryrefslogtreecommitdiff
path: root/src/curve25519.c
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2013-11-27 17:35:36 +0100
committerAndreas Schneider <asn@cryptomilk.org>2013-11-27 22:53:48 +0100
commit3e11cb807131d33ed529e1d9402f331676fa2926 (patch)
tree2438167d87a2be2044250b91784773747601cd19 /src/curve25519.c
parent78e78642e7d5a7b23b28624f0f595de760105f43 (diff)
downloadlibssh-3e11cb807131d33ed529e1d9402f331676fa2926.tar.gz
libssh-3e11cb807131d33ed529e1d9402f331676fa2926.tar.xz
libssh-3e11cb807131d33ed529e1d9402f331676fa2926.zip
ecdh: Use bignum_bin2bn.
Diffstat (limited to 'src/curve25519.c')
-rw-r--r--src/curve25519.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/curve25519.c b/src/curve25519.c
index 153fbcd9..3cee2032 100644
--- a/src/curve25519.c
+++ b/src/curve25519.c
@@ -90,7 +90,7 @@ static int ssh_curve25519_build_k(ssh_session session) {
crypto_scalarmult(k, session->next_crypto->curve25519_privkey,
session->next_crypto->curve25519_server_pubkey);
- BN_bin2bn(k, CURVE25519_PUBKEY_SIZE, session->next_crypto->k);
+ bignum_bin2bn(k, CURVE25519_PUBKEY_SIZE, session->next_crypto->k);
#ifdef DEBUG_CRYPTO
ssh_print_hexa("Session server cookie",