From fc82f572c2e3c9660243f7becad8bb02b966438e Mon Sep 17 00:00:00 2001 From: sowle Date: Sun, 11 Apr 2021 00:18:42 +0300 Subject: [PATCH] crypto: gcc fixup --- src/crypto/crypto-ops.h | 2 ++ tests/functional_tests/crypto_tests.cpp | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/crypto/crypto-ops.h b/src/crypto/crypto-ops.h index a77450ac..b1dc2f88 100644 --- a/src/crypto/crypto-ops.h +++ b/src/crypto/crypto-ops.h @@ -1,8 +1,10 @@ +// Copyright (c) 2018-2021 Zano Project // Copyright (c) 2012-2013 The Cryptonote developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once +#include // size_t /* From fe.h */ diff --git a/tests/functional_tests/crypto_tests.cpp b/tests/functional_tests/crypto_tests.cpp index eaef3fad..4dca1123 100644 --- a/tests/functional_tests/crypto_tests.cpp +++ b/tests/functional_tests/crypto_tests.cpp @@ -765,7 +765,7 @@ struct hash_helper_t point_t result; crypto::public_key pk = p.to_public_key(); - ge_bytes_hash_to_ec(&result.m_p3, (const unsigned char*)&pk); + ge_bytes_hash_to_ec_32(&result.m_p3, (const unsigned char*)&pk); return result; } @@ -773,7 +773,7 @@ struct hash_helper_t static point_t hp(const crypto::public_key& p) { point_t result; - ge_bytes_hash_to_ec(&result.m_p3, (const unsigned char*)&p); + ge_bytes_hash_to_ec_32(&result.m_p3, (const unsigned char*)&p); return result; } };