diff options
author | Christian Grothoff <christian@grothoff.org> | 2015-01-09 17:26:02 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2015-01-09 17:26:02 +0100 |
commit | f5e49d926ad1dddcfc87b5fb6671a1934aef7b3c (patch) | |
tree | 191f36ec6395dd8f5b580591423a1e2c1b89ba89 /src/util/util.c | |
parent | 09ecea9ea3f51a54693cb9faa1fc2b7993b2d4ba (diff) | |
download | exchange-f5e49d926ad1dddcfc87b5fb6671a1934aef7b3c.tar.xz |
moving TALER_hash_context API to GNUnet, using slightly cleaner API as well
Diffstat (limited to 'src/util/util.c')
-rw-r--r-- | src/util/util.c | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/src/util/util.c b/src/util/util.c index ac3cd1428..80f8fc5f0 100644 --- a/src/util/util.c +++ b/src/util/util.c @@ -462,30 +462,6 @@ TALER_refresh_encrypt (const void *input, size_t input_size, const struct GNUNET } -void -TALER_hash_context_start (struct TALER_HashContext *hc) -{ - GNUNET_assert (0 == gcry_md_open (&hc->hd, GCRY_MD_SHA512, 0)); -} - - -void -TALER_hash_context_read (struct TALER_HashContext *hc, void *buf, size_t size) -{ - gcry_md_write (hc->hd, buf, size); -} - - -void -TALER_hash_context_finish (struct TALER_HashContext *hc, - struct GNUNET_HashCode *r_hash) -{ - void *res = gcry_md_read (hc->hd, 0); - GNUNET_assert (NULL != res); - if (NULL != r_hash) - memcpy (r_hash, res, sizeof (struct GNUNET_HashCode)); - gcry_md_close (hc->hd); -} /* end of util.c */ |