diff options
author | Christian Grothoff <grothoff@gnunet.org> | 2021-11-05 14:00:10 +0100 |
---|---|---|
committer | Christian Grothoff <grothoff@gnunet.org> | 2021-11-05 14:00:10 +0100 |
commit | 32da809fd665f1ac19210bf48952f1988f417fb8 (patch) | |
tree | eebd61cf482dddf83c1ce530f3aca0c045a33591 /src/exchangedb | |
parent | 766922f7e9bd5570fd12b663e61f8bd622e51c78 (diff) |
abstract denomination keys a bit more
Diffstat (limited to 'src/exchangedb')
-rw-r--r-- | src/exchangedb/test_exchangedb.c | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/src/exchangedb/test_exchangedb.c b/src/exchangedb/test_exchangedb.c index 44ae56803..76a83a1b4 100644 --- a/src/exchangedb/test_exchangedb.c +++ b/src/exchangedb/test_exchangedb.c @@ -225,14 +225,11 @@ create_denom_key_pair (unsigned int size, struct TALER_EXCHANGEDB_DenominationKeyInformationP issue2; dkp = GNUNET_new (struct DenomKeyPair); - dkp->priv.cipher = TALER_DENOMINATION_RSA; - dkp->priv.details.rsa_private_key = GNUNET_CRYPTO_rsa_private_key_create ( - size); - GNUNET_assert (NULL != dkp->priv.details.rsa_private_key); - TALER_denom_priv_to_pub (&dkp->priv, - 0, /* age mask */ - &dkp->pub); - + GNUNET_assert (GNUNET_OK == + TALER_denom_priv_create (&dkp->priv, + &dkp->pub, + TALER_DENOMINATION_RSA, + size)); /* Using memset() as fields like master key and signature are not properly initialized for this test. */ memset (&dki, |