diff options
| author | Christian Grothoff <christian@grothoff.org> | 2015-03-15 17:10:15 +0100 | 
|---|---|---|
| committer | Christian Grothoff <christian@grothoff.org> | 2015-03-15 17:10:15 +0100 | 
| commit | c7d4216274f12314a06e8e79fa94fd5f9e33a70c (patch) | |
| tree | 82c38a946557170184f80076bf49129afd1c8b62 | |
| parent | a16c7ae39fd592edff7d65cd3e434cb269f9cb5d (diff) | |
use GNUNET_CRYPTO_rsa_public_key_hash instead of re-implementing it
| -rw-r--r-- | src/mint/taler-mint-httpd_keystate.c | 16 | 
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 b39ef3f8..3463143c 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);  } | 
