diff options
author | Christian Grothoff <christian@grothoff.org> | 2022-02-20 21:51:41 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2022-02-20 21:51:46 +0100 |
commit | 19624fd776f28812354f7e2b50b26e984ff077ab (patch) | |
tree | 625d0019650cb88d42bbf7f5ac0c1ef51fabac70 /src/util/denom.c | |
parent | dbc5adba7f22fb9568be29479ac9cf19463d471f (diff) | |
download | exchange-19624fd776f28812354f7e2b50b26e984ff077ab.tar.xz |
-ensure different HKDF is used in melt vs. withdraw
Diffstat (limited to 'src/util/denom.c')
-rw-r--r-- | src/util/denom.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/util/denom.c b/src/util/denom.c index 7afc7f408..86c83d7cf 100644 --- a/src/util/denom.c +++ b/src/util/denom.c @@ -85,6 +85,7 @@ TALER_denom_priv_create (struct TALER_DenominationPrivateKey *denom_priv, enum GNUNET_GenericReturnValue TALER_denom_sign_blinded (struct TALER_BlindedDenominationSignature *denom_sig, const struct TALER_DenominationPrivateKey *denom_priv, + bool for_melt, const struct TALER_BlindedPlanchet *blinded_planchet) { memset (denom_sig, @@ -119,6 +120,7 @@ TALER_denom_sign_blinded (struct TALER_BlindedDenominationSignature *denom_sig, GNUNET_CRYPTO_cs_r_derive ( &blinded_planchet->details.cs_blinded_planchet.nonce.nonce, + for_melt ? "rm" : "rw", &denom_priv->details.cs_private_key, r); denom_sig->details.blinded_cs_answer.b = |