diff options
author | Lucien Heuzeveldt <lucienclaude.heuzeveldt@students.bfh.ch> | 2022-01-04 17:46:36 +0100 |
---|---|---|
committer | Gian Demarmels <gian@demarmels.org> | 2022-02-04 15:33:14 +0100 |
commit | 36f551ff33ac0974788aff28d4b19390ca484f4b (patch) | |
tree | 399ecd848f129b73cc8302bdd8811f1c315e1879 /src/util/denom.c | |
parent | 106664ed0c50621bd20568c948ad30fccd0689ea (diff) | |
download | exchange-36f551ff33ac0974788aff28d4b19390ca484f4b.tar.xz |
set planchet detail cipher, add cipher checks
Diffstat (limited to 'src/util/denom.c')
-rw-r--r-- | src/util/denom.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/util/denom.c b/src/util/denom.c index 908302600..a4965c050 100644 --- a/src/util/denom.c +++ b/src/util/denom.c @@ -112,6 +112,13 @@ TALER_denom_sign_blinded (struct TALER_BlindedDenominationSignature *denom_sig, memset (denom_sig, 0, sizeof (*denom_sig)); + + if (blinded_planchet->cipher != denom_priv->cipher) + { + GNUNET_break (0); + return GNUNET_SYSERR; + } + switch (denom_priv->cipher) { case TALER_DENOMINATION_INVALID: @@ -394,6 +401,7 @@ TALER_denom_pub_verify (const struct TALER_DenominationPublicKey *denom_pub, GNUNET_break (0); return GNUNET_SYSERR; } + switch (denom_pub->cipher) { case TALER_DENOMINATION_INVALID: |