ecdh: Use bignum_bin2bn.

This commit is contained in:
Andreas Schneider
2013-11-27 17:35:36 +01:00
parent 7b63fe2f22
commit 67a080874b
2 changed files with 2 additions and 2 deletions

View File

@@ -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",