From cefdc338d800ba057c6de45dc3d64ce83babe014 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Sat, 19 Mar 2016 14:51:30 +0100 Subject: ec25519_fhmqvc: update to follow new libuecc recommendations --- src/protocols/ec25519_fhmqvc/ec25519_fhmqvc.c | 2 +- src/protocols/ec25519_fhmqvc/state.c | 2 +- src/protocols/ec25519_fhmqvc/util.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/protocols/ec25519_fhmqvc/ec25519_fhmqvc.c b/src/protocols/ec25519_fhmqvc/ec25519_fhmqvc.c index 1af2c47..a80021a 100644 --- a/src/protocols/ec25519_fhmqvc/ec25519_fhmqvc.c +++ b/src/protocols/ec25519_fhmqvc/ec25519_fhmqvc.c @@ -68,7 +68,7 @@ static fastd_protocol_config_t * protocol_init(void) { exit_error("invalid secret key"); ecc_25519_work_t work; - ecc_25519_scalarmult(&work, &protocol_config->key.secret, &ecc_25519_work_base_legacy); + ecc_25519_scalarmult_base(&work, &protocol_config->key.secret); ecc_25519_store_packed_legacy(&protocol_config->key.public.int256, &work); if (!divide_key(&protocol_config->key.secret)) diff --git a/src/protocols/ec25519_fhmqvc/state.c b/src/protocols/ec25519_fhmqvc/state.c index fc55276..3147a78 100644 --- a/src/protocols/ec25519_fhmqvc/state.c +++ b/src/protocols/ec25519_fhmqvc/state.c @@ -50,7 +50,7 @@ static void new_handshake_key(keypair_t *key) { ecc_25519_gf_sanitize_secret(&key->secret, &key->secret); ecc_25519_work_t work; - ecc_25519_scalarmult(&work, &key->secret, &ecc_25519_work_base_legacy); + ecc_25519_scalarmult_base(&work, &key->secret); ecc_25519_store_packed_legacy(&key->public.int256, &work); if (!divide_key(&key->secret)) diff --git a/src/protocols/ec25519_fhmqvc/util.c b/src/protocols/ec25519_fhmqvc/util.c index aaa963b..a7571e3 100644 --- a/src/protocols/ec25519_fhmqvc/util.c +++ b/src/protocols/ec25519_fhmqvc/util.c @@ -53,7 +53,7 @@ void fastd_protocol_ec25519_fhmqvc_generate_key(void) { ecc_25519_gf_sanitize_secret(&secret_key, &secret_key); ecc_25519_work_t work; - ecc_25519_scalarmult(&work, &secret_key, &ecc_25519_work_base_legacy); + ecc_25519_scalarmult_base(&work, &secret_key); ecc_25519_store_packed_legacy(&public_key, &work); if (conf.machine_readable) { -- cgit v1.2.3