aboutsummaryrefslogtreecommitdiff
path: root/src/util/denom.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/denom.c')
-rw-r--r--src/util/denom.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/util/denom.c b/src/util/denom.c
index 90830260..a4965c05 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: