summaryrefslogtreecommitdiffstats
path: root/src/protocols
diff options
context:
space:
mode:
Diffstat (limited to 'src/protocols')
-rw-r--r--src/protocols/ec25519_fhmqvc/ec25519_fhmqvc.c2
-rw-r--r--src/protocols/ec25519_fhmqvc/state.c2
-rw-r--r--src/protocols/ec25519_fhmqvc/util.c2
3 files changed, 3 insertions, 3 deletions
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) {