diff options
Diffstat (limited to 'src/util/crypto_hash.c')
-rw-r--r-- | src/util/crypto_hash.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util/crypto_hash.c b/src/util/crypto_hash.c index 140448459..31824e72a 100644 --- a/src/util/crypto_hash.c +++ b/src/util/crypto_hash.c | |||
@@ -396,7 +396,7 @@ GNUNET_CRYPTO_hmac (const struct GNUNET_CRYPTO_AuthKey *key, | |||
396 | gcry_md_write (md, plaintext, plaintext_len); | 396 | gcry_md_write (md, plaintext, plaintext_len); |
397 | mc = gcry_md_read (md, GCRY_MD_SHA512); | 397 | mc = gcry_md_read (md, GCRY_MD_SHA512); |
398 | GNUNET_assert (NULL != mc); | 398 | GNUNET_assert (NULL != mc); |
399 | memcpy (hmac->bits, mc, sizeof (hmac->bits)); | 399 | GNUNET_memcpy (hmac->bits, mc, sizeof (hmac->bits)); |
400 | } | 400 | } |
401 | 401 | ||
402 | 402 | ||
@@ -461,7 +461,7 @@ GNUNET_CRYPTO_hash_context_finish (struct GNUNET_HashContext *hc, | |||
461 | 461 | ||
462 | GNUNET_assert (NULL != res); | 462 | GNUNET_assert (NULL != res); |
463 | if (NULL != r_hash) | 463 | if (NULL != r_hash) |
464 | memcpy (r_hash, | 464 | GNUNET_memcpy (r_hash, |
465 | res, | 465 | res, |
466 | sizeof (struct GNUNET_HashCode)); | 466 | sizeof (struct GNUNET_HashCode)); |
467 | GNUNET_CRYPTO_hash_context_abort (hc); | 467 | GNUNET_CRYPTO_hash_context_abort (hc); |