aboutsummaryrefslogtreecommitdiff
path: root/src/util/crypto.c
diff options
context:
space:
mode:
authorGian Demarmels <gian@demarmels.org>2022-01-17 09:37:36 +0100
committerGian Demarmels <gian@demarmels.org>2022-02-04 15:37:33 +0100
commitbe50c084f89e8588dd2d4a4aa30c58002053ee31 (patch)
treee6651b08f663446f21c59b9428e57ca46b7b4bab /src/util/crypto.c
parentae5f082c75eb140167dc0254894dd4d57ba62a6d (diff)
downloadexchange-be50c084f89e8588dd2d4a4aa30c58002053ee31.tar.xz
fixed nonce check, renamed WithdrawNonce
Diffstat (limited to 'src/util/crypto.c')
-rw-r--r--src/util/crypto.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/util/crypto.c b/src/util/crypto.c
index 549ec8b1a..fd309c934 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)