MCPcopy Create free account
hub / github.com/ElementsProject/lightning / run

Function run

tests/fuzz/fuzz-sha256.c:54–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52}
53
54void run(const u8 *data, size_t size)
55{
56 struct sha256 expected;
57 u8 num_splits;
58
59 if (size < 1)
60 return;
61
62 num_splits = *data;
63 ++data;
64 --size;
65
66 sha256(&expected, data, size);
67
68 test_split_update(num_splits, &expected, data, size);
69 test_vs_openssl(&expected, data, size);
70}

Callers

nothing calls this directly

Calls 3

sha256Class · 0.70
test_split_updateFunction · 0.70
test_vs_opensslFunction · 0.70

Tested by

no test coverage detected