fuzz: Remove expensive and redundant muhash from crypto fuzz target

This commit is contained in:
MarcoFalke
2021-02-15 13:07:57 +01:00
parent 8d6994f93d
commit ffff84a9cb
2 changed files with 10 additions and 13 deletions

View File

@@ -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);
}