rename: TALER_setup_planchet -> TALER_planchet_setup_refresh

This commit is contained in:
Christian Grothoff 2017-10-31 12:44:17 +01:00
parent a491a4709a
commit ec8146de92
No known key found for this signature in database
GPG Key ID: 939E6BE1E29FC3CC
6 changed files with 10 additions and 8 deletions

View File

@ -756,7 +756,7 @@ TALER_EXCHANGE_refresh_prepare (const struct TALER_CoinSpendPrivateKeyP *melt_pr
struct TALER_PlanchetSecretsP); struct TALER_PlanchetSecretsP);
for (j=0;j<fresh_pks_len;j++) for (j=0;j<fresh_pks_len;j++)
{ {
TALER_setup_planchet (&trans_sec[i], TALER_planchet_setup_refresh (&trans_sec[i],
j, j,
&md.fresh_coins[i][j]); &md.fresh_coins[i][j]);
} }

View File

@ -114,7 +114,7 @@ parse_refresh_link_coin (const struct TALER_EXCHANGE_RefreshLinkHandle *rlh,
TALER_link_recover_transfer_secret (trans_pub, TALER_link_recover_transfer_secret (trans_pub,
&rlh->coin_priv, &rlh->coin_priv,
&secret); &secret);
TALER_setup_planchet (&secret, TALER_planchet_setup_refresh (&secret,
coin_num, coin_num,
&fc); &fc);

View File

@ -177,7 +177,7 @@ check_commitment (struct MHD_Connection *connection,
char *buf; char *buf;
size_t buf_len; size_t buf_len;
TALER_setup_planchet (&transfer_secret, TALER_planchet_setup_refresh (&transfer_secret,
j, j,
&fc); &fc);
GNUNET_CRYPTO_eddsa_key_get_public (&fc.coin_priv.eddsa_priv, GNUNET_CRYPTO_eddsa_key_get_public (&fc.coin_priv.eddsa_priv,

View File

@ -503,7 +503,6 @@ TALER_link_reveal_transfer_secret (const struct TALER_TransferPrivateKeyP *trans
struct TALER_TransferSecretP *transfer_secret); struct TALER_TransferSecretP *transfer_secret);
/** /**
* Decrypt the shared @a secret from the information in the * Decrypt the shared @a secret from the information in the
* @a trans_priv and @a coin_pub. * @a trans_priv and @a coin_pub.
@ -517,6 +516,7 @@ TALER_link_recover_transfer_secret (const struct TALER_TransferPublicKeyP *trans
const struct TALER_CoinSpendPrivateKeyP *coin_priv, const struct TALER_CoinSpendPrivateKeyP *coin_priv,
struct TALER_TransferSecretP *transfer_secret); struct TALER_TransferSecretP *transfer_secret);
GNUNET_NETWORK_STRUCT_BEGIN
/** /**
* Header for serializations of coin-specific information about the * Header for serializations of coin-specific information about the
@ -537,6 +537,8 @@ struct TALER_PlanchetSecretsP
}; };
GNUNET_NETWORK_STRUCT_END
/** /**
* Setup information for a fresh coin, deriving the coin private key * Setup information for a fresh coin, deriving the coin private key
@ -548,7 +550,7 @@ struct TALER_PlanchetSecretsP
* @param[out] fc value to initialize * @param[out] fc value to initialize
*/ */
void void
TALER_setup_planchet (const struct TALER_TransferSecretP *secret_seed, TALER_planchet_setup_refresh (const struct TALER_TransferSecretP *secret_seed,
unsigned int coin_num_salt, unsigned int coin_num_salt,
struct TALER_PlanchetSecretsP *fc); struct TALER_PlanchetSecretsP *fc);

View File

@ -178,7 +178,7 @@ TALER_link_recover_transfer_secret (const struct TALER_TransferPublicKeyP *trans
* @param[out] fc value to initialize * @param[out] fc value to initialize
*/ */
void void
TALER_setup_planchet (const struct TALER_TransferSecretP *secret_seed, TALER_planchet_setup_refresh (const struct TALER_TransferSecretP *secret_seed,
unsigned int coin_num_salt, unsigned int coin_num_salt,
struct TALER_PlanchetSecretsP *fc) struct TALER_PlanchetSecretsP *fc)
{ {

View File

@ -70,10 +70,10 @@ test_high_level ()
memcmp (&secret, memcmp (&secret,
&secret2, &secret2,
sizeof (secret))); sizeof (secret)));
TALER_setup_planchet (&secret, TALER_planchet_setup_refresh (&secret,
0, 0,
&fc1); &fc1);
TALER_setup_planchet (&secret, TALER_planchet_setup_refresh (&secret,
1, 1,
&fc2); &fc2);
GNUNET_assert (0 != GNUNET_assert (0 !=