diff options
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/crypto.c | 4 | ||||
-rw-r--r-- | src/util/test_crypto.c | 10 |
2 files changed, 7 insertions, 7 deletions
diff --git a/src/util/crypto.c b/src/util/crypto.c index ce5bfac82..527aecbf2 100644 --- a/src/util/crypto.c +++ b/src/util/crypto.c @@ -178,9 +178,9 @@ TALER_link_recover_transfer_secret (const struct TALER_TransferPublicKeyP *trans * @param[out] fc value to initialize */ void -TALER_setup_fresh_coin (const struct TALER_TransferSecretP *secret_seed, +TALER_setup_planchet (const struct TALER_TransferSecretP *secret_seed, unsigned int coin_num_salt, - struct TALER_FreshCoinP *fc) + struct TALER_PlanchetSecretsP *fc) { uint32_t be_salt = htonl (coin_num_salt); uint8_t *p; diff --git a/src/util/test_crypto.c b/src/util/test_crypto.c index f28ae8003..76ab5fd25 100644 --- a/src/util/test_crypto.c +++ b/src/util/test_crypto.c @@ -40,8 +40,8 @@ test_high_level () struct TALER_TransferPublicKeyP trans_pub; struct TALER_TransferSecretP secret; struct TALER_TransferSecretP secret2; - struct TALER_FreshCoinP fc1; - struct TALER_FreshCoinP fc2; + struct TALER_PlanchetSecretsP fc1; + struct TALER_PlanchetSecretsP fc2; pk = GNUNET_CRYPTO_eddsa_key_create (); coin_priv.eddsa_priv = *pk; @@ -70,16 +70,16 @@ test_high_level () memcmp (&secret, &secret2, sizeof (secret))); - TALER_setup_fresh_coin (&secret, + TALER_setup_planchet (&secret, 0, &fc1); - TALER_setup_fresh_coin (&secret, + TALER_setup_planchet (&secret, 1, &fc2); GNUNET_assert (0 != memcmp (&fc1, &fc2, - sizeof (struct TALER_FreshCoinP))); + sizeof (struct TALER_PlanchetSecretsP))); return 0; } |