From 8170e1e9abaf00b9c27c8758998c4df37d77e757 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sat, 5 Dec 2020 19:47:54 +0100 Subject: move all TALER_SIGNATURE_SM_-operations to secmod_signatures.c --- src/util/taler-helper-crypto-eddsa.c | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) (limited to 'src/util/taler-helper-crypto-eddsa.c') diff --git a/src/util/taler-helper-crypto-eddsa.c b/src/util/taler-helper-crypto-eddsa.c index e5147b2b6..af1cc24d6 100644 --- a/src/util/taler-helper-crypto-eddsa.c +++ b/src/util/taler-helper-crypto-eddsa.c @@ -606,13 +606,6 @@ static int notify_client_key_add (struct Client *client, const struct Key *key) { - struct TALER_SigningKeyAnnouncementPS ska = { - .purpose.purpose = htonl (TALER_SIGNATURE_SM_SIGNING_KEY), - .purpose.size = htonl (sizeof (ska)), - .exchange_pub = key->exchange_pub, - .anchor_time = GNUNET_TIME_absolute_hton (key->anchor), - .duration = GNUNET_TIME_relative_hton (duration) - }; struct TALER_CRYPTO_EddsaKeyAvailableNotification an = { .header.size = htons (sizeof (an)), .header.type = htons (TALER_HELPER_EDDSA_MT_AVAIL), @@ -622,9 +615,11 @@ notify_client_key_add (struct Client *client, .secm_pub = smpub }; - GNUNET_CRYPTO_eddsa_sign (&smpriv.eddsa_priv, - &ska, - &an.secm_sig.eddsa_signature); + TALER_exchange_secmod_eddsa_sign (&key->exchange_pub, + key->anchor, + duration, + &smpriv, + &an.secm_sig); if (GNUNET_OK != transmit (&client->addr, client->addr_size, -- cgit v1.2.3