diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-11-23 21:10:55 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-11-23 21:10:55 +0100 |
commit | d5656ec46e47d49d16b21b5cbc1c34caf5ea4b83 (patch) | |
tree | d2c6cecb321e6468ba4ce97f51f4cfddda1769c7 /src/util/taler-helper-crypto-rsa.c | |
parent | 77dbb8327618ada8fd112209e54a7bf05d2958f0 (diff) | |
download | exchange-d5656ec46e47d49d16b21b5cbc1c34caf5ea4b83.tar.xz |
finish helper test cases
Diffstat (limited to 'src/util/taler-helper-crypto-rsa.c')
-rw-r--r-- | src/util/taler-helper-crypto-rsa.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/util/taler-helper-crypto-rsa.c b/src/util/taler-helper-crypto-rsa.c index af9c76ef2..140a0a8fc 100644 --- a/src/util/taler-helper-crypto-rsa.c +++ b/src/util/taler-helper-crypto-rsa.c @@ -252,6 +252,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. * Length of the #workers array. @@ -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 != |