-speed up invariant checks by using new GNUnet API
This commit is contained in:
parent
94012d011c
commit
dc4827ea20
@ -475,22 +475,14 @@ check_dk (void *cls,
|
|||||||
void *value)
|
void *value)
|
||||||
{
|
{
|
||||||
struct TEH_DenominationKey *dk = value;
|
struct TEH_DenominationKey *dk = value;
|
||||||
struct TALER_PlanchetSecretsP ps;
|
|
||||||
struct TALER_PlanchetDetail pd;
|
|
||||||
struct TALER_CoinPubHash c_hash;
|
|
||||||
|
|
||||||
(void) hc;
|
(void) hc;
|
||||||
(void) value;
|
(void) value;
|
||||||
GNUNET_assert (TALER_DENOMINATION_INVALID != dk->denom_pub.cipher);
|
GNUNET_assert (TALER_DENOMINATION_INVALID != dk->denom_pub.cipher);
|
||||||
memset (&ps,
|
if (TALER_DENOMINATION_RSA == dk->denom_pub.cipher)
|
||||||
42,
|
GNUNET_assert (GNUNET_CRYPTO_rsa_public_key_check (
|
||||||
sizeof (ps));
|
dk->denom_pub.details.rsa_public_key));
|
||||||
GNUNET_assert (GNUNET_OK ==
|
|
||||||
TALER_planchet_prepare (&dk->denom_pub,
|
|
||||||
&ps,
|
|
||||||
&c_hash,
|
|
||||||
&pd));
|
|
||||||
GNUNET_free (pd.coin_ev);
|
|
||||||
return GNUNET_OK;
|
return GNUNET_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user