diff options
author | Nick Mathewson <nickm@torproject.org> | 2017-04-07 09:58:04 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2017-04-07 09:58:04 -0400 |
commit | f5cc8da7e0dc5ba52a1a6a7744e749f4f46c35bc (patch) | |
tree | 4072e350a40d31969cb713e8d3cd9697aba4d098 /src/ext | |
parent | f3e399c6cefa846d8512cc90f11214ca582ff8d1 (diff) | |
download | tor-f5cc8da7e0dc5ba52a1a6a7744e749f4f46c35bc.tar.gz tor-f5cc8da7e0dc5ba52a1a6a7744e749f4f46c35bc.zip |
Use DIGEST512_LEN macro in crypto_hash_sha512.h in ref10
Diffstat (limited to 'src/ext')
-rw-r--r-- | src/ext/ed25519/ref10/crypto_hash_sha512.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ext/ed25519/ref10/crypto_hash_sha512.h b/src/ext/ed25519/ref10/crypto_hash_sha512.h index e454c4e7ef..5dad935c79 100644 --- a/src/ext/ed25519/ref10/crypto_hash_sha512.h +++ b/src/ext/ed25519/ref10/crypto_hash_sha512.h @@ -13,7 +13,7 @@ sha_ctx_ = crypto_digest512_new(DIGEST_SHA512); \ crypto_digest_add_bytes(sha_ctx_, (const char *)(inp1), (len1)); \ crypto_digest_add_bytes(sha_ctx_, (const char *)(inp2), (len2)); \ - crypto_digest_get_digest(sha_ctx_, (char *)out, 64); \ + crypto_digest_get_digest(sha_ctx_, (char *)out, DIGEST512_LEN); \ crypto_digest_free(sha_ctx_); \ } while (0) @@ -27,6 +27,6 @@ crypto_digest_add_bytes(sha_ctx_, (const char *)(inp1), (len1)); \ crypto_digest_add_bytes(sha_ctx_, (const char *)(inp2), (len2)); \ crypto_digest_add_bytes(sha_ctx_, (const char *)(inp3), (len3)); \ - crypto_digest_get_digest(sha_ctx_, (char *)out, 64); \ + crypto_digest_get_digest(sha_ctx_, (char *)out, DIGEST512_LEN); \ crypto_digest_free(sha_ctx_); \ } while(0) |