diff options
author | Christian Grothoff <grothoff@gnunet.org> | 2021-11-05 17:19:47 +0100 |
---|---|---|
committer | Christian Grothoff <grothoff@gnunet.org> | 2021-11-05 17:19:47 +0100 |
commit | 2549fb6dc7b08c03196ef40d8326d10e661a5379 (patch) | |
tree | 91f9232216b0ec03b1f1b8393d16f47e82270d3b /src/util/test_crypto.c | |
parent | 9668e2e4fb36a0258ac4bcc18cba63be72e1e11c (diff) | |
download | exchange-2549fb6dc7b08c03196ef40d8326d10e661a5379.tar.xz |
more RSA abstraction work
Diffstat (limited to 'src/util/test_crypto.c')
-rw-r--r-- | src/util/test_crypto.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/util/test_crypto.c b/src/util/test_crypto.c index 416ca5e2d..5ee06487b 100644 --- a/src/util/test_crypto.c +++ b/src/util/test_crypto.c @@ -103,12 +103,11 @@ test_planchets (void) &ps, &c_hash, &pd)); - blind_sig.cipher = TALER_DENOMINATION_RSA; - blind_sig.details.blinded_rsa_signature - = GNUNET_CRYPTO_rsa_sign_blinded (dk_priv.details.rsa_private_key, - pd.coin_ev, - pd.coin_ev_size); - GNUNET_assert (NULL != blind_sig.details.blinded_rsa_signature); + GNUNET_assert (GNUNET_OK == + TALER_denom_sign_blinded (&blind_sig, + &dk_priv, + pd.coin_ev, + pd.coin_ev_size)); GNUNET_assert (GNUNET_OK == TALER_planchet_to_coin (&dk_pub, &blind_sig, |