mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-11 22:50:59 +01:00
Add <Hasher>::OUTPUT_SIZE
This commit is contained in:
committed by
Pieter Wuille
parent
4791b99e2d
commit
a0495bb68c
@@ -16,6 +16,7 @@ BOOST_AUTO_TEST_SUITE(crypto_tests)
|
||||
template<typename Hasher, typename In, typename Out>
|
||||
void TestVector(const Hasher &h, const In &in, const Out &out) {
|
||||
Out hash;
|
||||
BOOST_CHECK(out.size() == h.OUTPUT_SIZE);
|
||||
hash.resize(out.size());
|
||||
{
|
||||
// Test that writing the whole input string at once works.
|
||||
|
||||
Reference in New Issue
Block a user