diff options
author | MarcoFalke <falke.marco@gmail.com> | 2021-02-15 13:07:57 +0100 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2021-02-15 14:39:08 +0100 |
commit | ffff84a9cb659562b3f560d3a489d4a62c71f793 (patch) | |
tree | cb60aaae7eb1ac1ee24774269201c08ee77f15de /src/test/fuzz/muhash.cpp | |
parent | 8d6994f93d3297cd8a84e73e8696bf21ff7da903 (diff) | |
download | bitcoin-ffff84a9cb659562b3f560d3a489d4a62c71f793.tar.xz |
fuzz: Remove expensive and redundant muhash from crypto fuzz target
Diffstat (limited to 'src/test/fuzz/muhash.cpp')
-rw-r--r-- | src/test/fuzz/muhash.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/test/fuzz/muhash.cpp b/src/test/fuzz/muhash.cpp index 8f843ca773..2d761cef15 100644 --- a/src/test/fuzz/muhash.cpp +++ b/src/test/fuzz/muhash.cpp @@ -41,6 +41,11 @@ FUZZ_TARGET(muhash) muhash.Finalize(out2); assert(out == out2); + MuHash3072 muhash3; + muhash3 *= muhash; + uint256 out3; + muhash3.Finalize(out3); + assert(out == out3); // Test that removing all added elements brings the object back to it's initial state muhash /= muhash; @@ -50,4 +55,9 @@ FUZZ_TARGET(muhash) muhash2.Finalize(out2); assert(out == out2); + + muhash3.Remove(data); + muhash3.Remove(data2); + muhash3.Finalize(out3); + assert(out == out3); } |