summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2015-03-15 17:10:15 +0100
committerChristian Grothoff <christian@grothoff.org>2015-03-15 17:10:15 +0100
commitc7d4216274f12314a06e8e79fa94fd5f9e33a70c (patch)
tree82c38a946557170184f80076bf49129afd1c8b62
parenta16c7ae39fd592edff7d65cd3e434cb269f9cb5d (diff)
downloadexchange-c7d4216274f12314a06e8e79fa94fd5f9e33a70c.tar.gz
exchange-c7d4216274f12314a06e8e79fa94fd5f9e33a70c.tar.bz2
exchange-c7d4216274f12314a06e8e79fa94fd5f9e33a70c.zip
use GNUNET_CRYPTO_rsa_public_key_hash instead of re-implementing it
-rw-r--r--src/mint/taler-mint-httpd_keystate.c16
1 files changed, 5 insertions, 11 deletions
diff --git a/src/mint/taler-mint-httpd_keystate.c b/src/mint/taler-mint-httpd_keystate.c
index b39ef3f8d..3463143c5 100644
--- a/src/mint/taler-mint-httpd_keystate.c
+++ b/src/mint/taler-mint-httpd_keystate.c
@@ -426,18 +426,12 @@ struct TALER_MINT_DenomKeyIssuePriv *
TALER_MINT_get_denom_key (const struct MintKeyState *key_state,
const struct GNUNET_CRYPTO_rsa_PublicKey *denom_pub)
{
- struct GNUNET_HashCode hash;
- char *buf;
- size_t buf_len;
-
- buf_len = GNUNET_CRYPTO_rsa_public_key_encode (denom_pub,
- &buf);
- GNUNET_CRYPTO_hash (buf,
- buf_len,
- &hash);
- GNUNET_free (buf);
+ struct GNUNET_HashCode hc;
+
+ GNUNET_CRYPTO_rsa_public_key_hash (denom_pub,
+ &hc);
return GNUNET_CONTAINER_multihashmap_get (key_state->denomkey_map,
- &hash);
+ &hc);
}