summaryrefslogtreecommitdiffstats
path: root/src/protocols/ec25519_fhmqvc
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2016-03-19 14:51:30 +0100
committerMatthias Schiffer <mschiffer@universe-factory.net>2016-03-19 14:51:30 +0100
commitcefdc338d800ba057c6de45dc3d64ce83babe014 (patch)
tree4acd0b731416422d5998f9f25f0ff97a52f6992b /src/protocols/ec25519_fhmqvc
parentbc6650141cfa7970e4f6e5e94abe2618f84313da (diff)
downloadfastd-cefdc338d800ba057c6de45dc3d64ce83babe014.tar
fastd-cefdc338d800ba057c6de45dc3d64ce83babe014.zip
ec25519_fhmqvc: update to follow new libuecc recommendations
Diffstat (limited to 'src/protocols/ec25519_fhmqvc')
-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) {