clean up cs implementation
This commit is contained in:
parent
cf4fd36cc4
commit
75eff1524a
@ -262,11 +262,7 @@ TALER_planchet_setup_random (struct TALER_PlanchetSecretsP *ps,
|
||||
GNUNET_break (0);
|
||||
return;
|
||||
case TALER_DENOMINATION_RSA:
|
||||
// TODO: replace with call to TALER_blinding_secret_create
|
||||
GNUNET_CRYPTO_random_block (GNUNET_CRYPTO_QUALITY_STRONG,
|
||||
&ps->blinding_key.rsa_bks,
|
||||
sizeof (struct
|
||||
GNUNET_CRYPTO_RsaBlindingKeySecret));
|
||||
TALER_blinding_secret_create (&ps->blinding_key, cipher);
|
||||
return;
|
||||
case TALER_DENOMINATION_CS:
|
||||
// Will be set in a later stage for Clause Blind Schnorr Scheme
|
||||
@ -304,7 +300,6 @@ TALER_planchet_prepare (const struct TALER_DenominationPublicKey *dk,
|
||||
}
|
||||
break;
|
||||
case TALER_DENOMINATION_CS:
|
||||
{
|
||||
if (GNUNET_OK !=
|
||||
TALER_denom_blind (dk,
|
||||
&ps->blinding_key,
|
||||
@ -319,7 +314,6 @@ TALER_planchet_prepare (const struct TALER_DenominationPublicKey *dk,
|
||||
return GNUNET_SYSERR;
|
||||
}
|
||||
break;
|
||||
}
|
||||
default:
|
||||
GNUNET_break (0);
|
||||
return GNUNET_SYSERR;
|
||||
@ -355,7 +349,6 @@ TALER_planchet_to_coin (const struct TALER_DenominationPublicKey *dk,
|
||||
}
|
||||
break;
|
||||
case TALER_DENOMINATION_CS:
|
||||
{
|
||||
if (GNUNET_OK !=
|
||||
TALER_denom_sig_unblind (&sig,
|
||||
blind_sig,
|
||||
@ -366,7 +359,6 @@ TALER_planchet_to_coin (const struct TALER_DenominationPublicKey *dk,
|
||||
GNUNET_break_op (0);
|
||||
return GNUNET_SYSERR;
|
||||
}
|
||||
}
|
||||
break;
|
||||
default:
|
||||
GNUNET_break (0);
|
||||
|
Loading…
Reference in New Issue
Block a user