diff options
author | Christian Grothoff <christian@grothoff.org> | 2021-11-06 16:04:26 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2021-11-06 16:04:26 +0100 |
commit | 938e2ce39c56ae5afc6c12f15be8f49c7edbf2fd (patch) | |
tree | 65d2ecc77a77b603fe0801704c7c089329e79d65 /src/benchmark | |
parent | f01ab79015e1425a9c0cdede4bce0825d4c8c65b (diff) |
more RSA cleanup
Diffstat (limited to 'src/benchmark')
-rw-r--r-- | src/benchmark/taler-aggregator-benchmark.c | 33 |
1 files changed, 27 insertions, 6 deletions
diff --git a/src/benchmark/taler-aggregator-benchmark.c b/src/benchmark/taler-aggregator-benchmark.c index 35d6af6fe..c49f84737 100644 --- a/src/benchmark/taler-aggregator-benchmark.c +++ b/src/benchmark/taler-aggregator-benchmark.c @@ -480,10 +480,14 @@ run (void *cls, GNUNET_TIME_UNIT_YEARS)); { struct TALER_DenominationPrivateKey pk; - struct GNUNET_HashCode hc; struct TALER_DenominationPublicKey denom_pub; + struct TALER_CoinPubHash c_hash; + struct TALER_PlanchetDetail pd; + struct TALER_BlindedDenominationSignature bds; + union TALER_DenominationBlindingKeyP bks; + struct TALER_CoinSpendPublicKeyP coin_pub; - RANDOMIZE (&hc); + RANDOMIZE (&coin_pub); GNUNET_assert (GNUNET_OK == TALER_denom_priv_create (&pk, &denom_pub, @@ -507,10 +511,27 @@ run (void *cls, global_ret = EXIT_FAILURE; return; } - denom_sig.cipher = TALER_DENOMINATION_RSA; - denom_sig.details.rsa_signature - = GNUNET_CRYPTO_rsa_sign_fdh (pk.details.rsa_private_key, - &hc); + + TALER_blinding_secret_create (&bks); + GNUNET_assert (GNUNET_OK == + TALER_denom_blind (&denom_pub, + &bks, + &coin_pub, + &c_hash, + &pd.coin_ev, + &pd.coin_ev_size)); + GNUNET_assert (GNUNET_OK == + TALER_denom_sign_blinded (&bds, + &pk, + pd.coin_ev, + pd.coin_ev_size)); + GNUNET_free (pd.coin_ev); + GNUNET_assert (GNUNET_OK == + TALER_denom_sig_unblind (&denom_sig, + &bds, + &bks, + &denom_pub)); + TALER_blinded_denom_sig_free (&bds); TALER_denom_pub_free (&denom_pub); TALER_denom_priv_free (&pk); } |