aboutsummaryrefslogtreecommitdiff
path: root/src/test/crypto_tests.cpp
diff options
context:
space:
mode:
authorPieter Wuille <pieter@wuille.net>2020-06-18 17:19:46 -0700
committerPieter Wuille <pieter@wuille.net>2020-07-30 13:57:54 -0700
commit02c4cc5c5ddf61f98ee366a4bea8abc26de492bd (patch)
tree71a25d64248ffeac24259ddbe328481e9125020d /src/test/crypto_tests.cpp
parent0ef97b1b103231db54e04a64bbdb5dcc3f34f482 (diff)
downloadbitcoin-02c4cc5c5ddf61f98ee366a4bea8abc26de492bd.tar.xz
Make CHash256/CHash160 output to Span
Diffstat (limited to 'src/test/crypto_tests.cpp')
-rw-r--r--src/test/crypto_tests.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/crypto_tests.cpp b/src/test/crypto_tests.cpp
index a3613db633..bf5c587774 100644
--- a/src/test/crypto_tests.cpp
+++ b/src/test/crypto_tests.cpp
@@ -743,7 +743,7 @@ BOOST_AUTO_TEST_CASE(sha256d64)
in[j] = InsecureRandBits(8);
}
for (int j = 0; j < i; ++j) {
- CHash256().Write({in + 64 * j, 64}).Finalize(out1 + 32 * j);
+ CHash256().Write({in + 64 * j, 64}).Finalize({out1 + 32 * j, 32});
}
SHA256D64(out2, in, i);
BOOST_CHECK(memcmp(out1, out2, 32 * i) == 0);