-fix test_crypto ftbfs

This commit is contained in:
Christian Grothoff 2022-02-07 10:58:23 +01:00
parent 031e365814
commit 3ed39955b6
No known key found for this signature in database
GPG Key ID: 939E6BE1E29FC3CC

View File

@ -42,6 +42,10 @@ test_high_level (void)
union TALER_DenominationBlindingKeyP bks2; union TALER_DenominationBlindingKeyP bks2;
struct TALER_CoinSpendPrivateKeyP coin_priv1; struct TALER_CoinSpendPrivateKeyP coin_priv1;
struct TALER_CoinSpendPrivateKeyP coin_priv2; 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_create (&coin_priv.eddsa_priv);
GNUNET_CRYPTO_eddsa_key_get_public (&coin_priv.eddsa_priv, GNUNET_CRYPTO_eddsa_key_get_public (&coin_priv.eddsa_priv,
@ -66,12 +70,24 @@ test_high_level (void)
&secret2)); &secret2));
TALER_planchet_setup_refresh (&secret, TALER_planchet_setup_refresh (&secret,
0, 0,
&coin_priv1, &ps1);
&bks1); 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, TALER_planchet_setup_refresh (&secret,
1, 1,
&coin_priv2, &ps2);
&bks2); TALER_planchet_setup_coin_priv (&ps1,
&alg2,
&coin_priv2);
TALER_planchet_blinding_secret_create (&ps2,
&alg2,
&bks2);
GNUNET_assert (0 != GNUNET_assert (0 !=
GNUNET_memcmp (&coin_priv1, GNUNET_memcmp (&coin_priv1,
&coin_priv2)); &coin_priv2));