diff options
author | Christian Grothoff <christian@grothoff.org> | 2022-02-07 10:58:23 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2022-02-07 10:58:23 +0100 |
commit | 3ed39955b60b75e93652ebf233f3f73ddc5d145d (patch) | |
tree | 0700f31f341de3225ef8a903f1cccbab6f4f78f4 /src/util | |
parent | 031e365814edd8bde4e4216c83f435a6915a06ab (diff) |
-fix test_crypto ftbfs
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/test_crypto.c | 24 |
1 files changed, 20 insertions, 4 deletions
diff --git a/src/util/test_crypto.c b/src/util/test_crypto.c index 218b593a5..d930b7739 100644 --- a/src/util/test_crypto.c +++ b/src/util/test_crypto.c @@ -42,6 +42,10 @@ test_high_level (void) union TALER_DenominationBlindingKeyP bks2; struct TALER_CoinSpendPrivateKeyP coin_priv1; struct TALER_CoinSpendPrivateKeyP coin_priv2; + struct TALER_PlanchetSecretsP ps1; + struct TALER_PlanchetSecretsP ps2; + struct TALER_ExchangeWithdrawValues alg1; + struct TALER_ExchangeWithdrawValues alg2; GNUNET_CRYPTO_eddsa_key_create (&coin_priv.eddsa_priv); GNUNET_CRYPTO_eddsa_key_get_public (&coin_priv.eddsa_priv, @@ -66,12 +70,24 @@ test_high_level (void) &secret2)); TALER_planchet_setup_refresh (&secret, 0, - &coin_priv1, - &bks1); + &ps1); + alg1.cipher = TALER_DENOMINATION_RSA; + TALER_planchet_setup_coin_priv (&ps1, + &alg1, + &coin_priv1); + TALER_planchet_blinding_secret_create (&ps1, + &alg1, + &bks1); + alg2.cipher = TALER_DENOMINATION_RSA; TALER_planchet_setup_refresh (&secret, 1, - &coin_priv2, - &bks2); + &ps2); + TALER_planchet_setup_coin_priv (&ps1, + &alg2, + &coin_priv2); + TALER_planchet_blinding_secret_create (&ps2, + &alg2, + &bks2); GNUNET_assert (0 != GNUNET_memcmp (&coin_priv1, &coin_priv2)); |