From d5656ec46e47d49d16b21b5cbc1c34caf5ea4b83 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Mon, 23 Nov 2020 21:10:55 +0100 Subject: finish helper test cases --- src/util/taler-helper-crypto-rsa.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/util/taler-helper-crypto-rsa.c') diff --git a/src/util/taler-helper-crypto-rsa.c b/src/util/taler-helper-crypto-rsa.c index af9c76ef..140a0a8f 100644 --- a/src/util/taler-helper-crypto-rsa.c +++ b/src/util/taler-helper-crypto-rsa.c @@ -251,6 +251,11 @@ static int global_ret; */ static struct TALER_SecurityModulePrivateKeyP smpriv; +/** + * Public key of this security module. + */ +static struct TALER_SecurityModulePublicKeyP smpub; + /** * Number of worker threads to use. Default (0) is to use one per CPU core * available. @@ -735,6 +740,7 @@ notify_client_dk_add (struct Client *client, GNUNET_CRYPTO_eddsa_sign (&smpriv.eddsa_priv, &dka, &an->secm_sig.eddsa_signature); + an->secm_pub = smpub; p = (void *) &an[1]; memcpy (p, buf, @@ -1793,6 +1799,8 @@ run (void *cls, return; } GNUNET_free (pfn); + GNUNET_CRYPTO_eddsa_key_get_public (&smpriv.eddsa_priv, + &smpub.eddsa_pub); } if (GNUNET_OK != -- cgit v1.2.3