From ebbc250f8b86de14a5684addade285cb5d1ad9ac Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Fri, 5 Nov 2021 21:37:46 +0100 Subject: [PATCH] -brks --- src/include/taler_crypto_lib.h | 2 ++ src/util/test_helper_rsa.c | 39 ++++++++++++---------------------- 2 files changed, 16 insertions(+), 25 deletions(-) diff --git a/src/include/taler_crypto_lib.h b/src/include/taler_crypto_lib.h index 06247689f..a948d98e9 100644 --- a/src/include/taler_crypto_lib.h +++ b/src/include/taler_crypto_lib.h @@ -326,6 +326,7 @@ struct TALER_CoinSpendSignatureP */ struct TALER_DenominationBlindingKeyP { + // FIXME: RSA migration! /** * Taler uses RSA for blind signatures. */ @@ -986,6 +987,7 @@ struct TALER_PlanchetSecretsP * The blinding key. */ struct TALER_DenominationBlindingKeyP blinding_key; + // FIXME: RSA migration on generation! }; diff --git a/src/util/test_helper_rsa.c b/src/util/test_helper_rsa.c index 5dedf8f78..87e58bd3f 100644 --- a/src/util/test_helper_rsa.c +++ b/src/util/test_helper_rsa.c @@ -238,39 +238,32 @@ test_signing (struct TALER_CRYPTO_DenominationHelper *dh) struct TALER_BlindedDenominationSignature ds; enum TALER_ErrorCode ec; bool success = false; - struct TALER_CoinPubHash m_hash; - struct TALER_BlindingSecret bks; + struct TALER_PlanchetSecretsP ps; + struct TALER_CoinPubHash c_hash; - GNUNET_assert (GNUNET_OK == - TALER_blinding_secret_create (&bks, - TALER_DENOMINATION_RSA)); - GNUNET_CRYPTO_hash ("Hello", - strlen ("Hello"), - &m_hash.hash); + TALER_planchet_setup_random (&ps); for (unsigned int i = 0; i