use GNUNET_CRYPTO_rsa_public_key_hash instead of re-implementing it
This commit is contained in:
parent
a16c7ae39f
commit
c7d4216274
@ -426,18 +426,12 @@ struct TALER_MINT_DenomKeyIssuePriv *
|
|||||||
TALER_MINT_get_denom_key (const struct MintKeyState *key_state,
|
TALER_MINT_get_denom_key (const struct MintKeyState *key_state,
|
||||||
const struct GNUNET_CRYPTO_rsa_PublicKey *denom_pub)
|
const struct GNUNET_CRYPTO_rsa_PublicKey *denom_pub)
|
||||||
{
|
{
|
||||||
struct GNUNET_HashCode hash;
|
struct GNUNET_HashCode hc;
|
||||||
char *buf;
|
|
||||||
size_t buf_len;
|
|
||||||
|
|
||||||
buf_len = GNUNET_CRYPTO_rsa_public_key_encode (denom_pub,
|
GNUNET_CRYPTO_rsa_public_key_hash (denom_pub,
|
||||||
&buf);
|
&hc);
|
||||||
GNUNET_CRYPTO_hash (buf,
|
|
||||||
buf_len,
|
|
||||||
&hash);
|
|
||||||
GNUNET_free (buf);
|
|
||||||
return GNUNET_CONTAINER_multihashmap_get (key_state->denomkey_map,
|
return GNUNET_CONTAINER_multihashmap_get (key_state->denomkey_map,
|
||||||
&hash);
|
&hc);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user