diff options
Diffstat (limited to 'src/util/crypto.c')
-rw-r--r-- | src/util/crypto.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/util/crypto.c b/src/util/crypto.c index 549ec8b1..fd309c93 100644 --- a/src/util/crypto.c +++ b/src/util/crypto.c @@ -191,7 +191,7 @@ cs_blinding_seed_derive (const struct void TALER_cs_withdraw_nonce_derive (const struct TALER_CoinSpendPrivateKeyP *coin_priv, - struct TALER_WithdrawNonce *nonce) + struct TALER_CsNonce *nonce) { GNUNET_assert (GNUNET_YES == GNUNET_CRYPTO_hkdf (nonce, @@ -208,6 +208,15 @@ TALER_cs_withdraw_nonce_derive (const struct void +TALER_cs_withdraw_nonce_generate (struct TALER_CsNonce *nonce) +{ + GNUNET_CRYPTO_random_block (GNUNET_CRYPTO_QUALITY_STRONG, + nonce, + sizeof (*nonce)); +} + + +void TALER_planchet_blinding_secret_create (struct TALER_PlanchetSecretsP *ps, const struct TALER_ExchangeWithdrawValues *alg_values) |