diff options
author | Christian Grothoff <christian@grothoff.org> | 2022-02-07 12:35:00 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2022-02-07 12:35:00 +0100 |
commit | c7c0beedd59c96c18c11e6dd680e4c12fda2d5c8 (patch) | |
tree | 33958e67ba359f58824ba2b1413ee038345accc4 /src | |
parent | fb9ba5b1d2970e24643d179338b34c8915d2072d (diff) | |
download | exchange-c7c0beedd59c96c18c11e6dd680e4c12fda2d5c8.tar.xz |
-rename fest
Diffstat (limited to 'src')
-rw-r--r-- | src/util/test_crypto.c | 2 | ||||
-rw-r--r-- | src/util/test_helper_cs.c | 20 |
2 files changed, 11 insertions, 11 deletions
diff --git a/src/util/test_crypto.c b/src/util/test_crypto.c index 46ed2b92b..89955ac7e 100644 --- a/src/util/test_crypto.c +++ b/src/util/test_crypto.c @@ -213,7 +213,7 @@ test_planchets_cs (void) TALER_denom_cs_derive_r_public ( &pd.blinded_planchet.details.cs_blinded_planchet.nonce, &dk_priv, - &alg_values.details.cs_values.r_pub)); + &alg_values.details.cs_values.r_pub_pair)); TALER_planchet_setup_coin_priv (&ps, &alg_values, diff --git a/src/util/test_helper_cs.c b/src/util/test_helper_cs.c index 4f635d404..4a3208e8a 100644 --- a/src/util/test_helper_cs.c +++ b/src/util/test_helper_cs.c @@ -297,7 +297,7 @@ test_r_derive (struct TALER_CRYPTO_CsDenominationHelper *dh) "Requesting R derivation with key %s\n", GNUNET_h2s (&keys[i].h_cs.hash)); - alg_values.details.cs_values.r_pub + alg_values.details.cs_values.r_pub_pair = TALER_CRYPTO_helper_cs_r_derive (dh, &keys[i].h_cs, &pd.blinded_planchet. @@ -443,7 +443,7 @@ test_signing (struct TALER_CRYPTO_CsDenominationHelper *dh) TALER_cs_withdraw_nonce_derive (&ps, &pd.blinded_planchet.details. cs_blinded_planchet.nonce); - alg_values.details.cs_values.r_pub + alg_values.details.cs_values.r_pub_pair = TALER_CRYPTO_helper_cs_r_derive (dh, &keys[i].h_cs, &pd.blinded_planchet. @@ -602,12 +602,13 @@ perf_signing (struct TALER_CRYPTO_CsDenominationHelper *dh, GNUNET_CRYPTO_random_block (GNUNET_CRYPTO_QUALITY_STRONG, &ps, sizeof (ps)); - alg_values.cipher = TALER_DENOMINATION_CS; - - TALER_planchet_setup_coin_priv (&ps, &alg_values, &coin_priv); - TALER_planchet_blinding_secret_create (&ps, &alg_values, &bks); - + TALER_planchet_setup_coin_priv (&ps, + &alg_values, + &coin_priv); + TALER_planchet_blinding_secret_create (&ps, + &alg_values, + &bks); duration = GNUNET_TIME_UNIT_ZERO; TALER_CRYPTO_helper_cs_poll (dh); for (unsigned int j = 0; j<NUM_SIGN_PERFS;) @@ -629,14 +630,13 @@ perf_signing (struct TALER_CRYPTO_CsDenominationHelper *dh, { struct TALER_CoinPubHash c_hash; struct TALER_PlanchetDetail pd; - pd.blinded_planchet.cipher = TALER_DENOMINATION_CS; - + pd.blinded_planchet.cipher = TALER_DENOMINATION_CS; TALER_cs_withdraw_nonce_derive (&ps, &pd.blinded_planchet.details. cs_blinded_planchet.nonce); - alg_values.details.cs_values.r_pub + alg_values.details.cs_values.r_pub_pair = TALER_CRYPTO_helper_cs_r_derive (dh, &keys[i].h_cs, &pd.blinded_planchet. |