diff options
author | Paul Duncan <pabs@pablotron.org> | 2023-09-17 03:31:23 -0400 |
---|---|---|
committer | Paul Duncan <pabs@pablotron.org> | 2023-09-17 03:31:23 -0400 |
commit | 75b6d96e139c65ba457120d04767a3fc1b948372 (patch) | |
tree | 3b296da56495cad9bfe20f58f9293185200b8014 /tests/fuzz/fuzz.c | |
parent | 9dc538b3230c17671da35c8346a1f471aa6118f4 (diff) | |
download | sha3-75b6d96e139c65ba457120d04767a3fc1b948372.tar.bz2 sha3-75b6d96e139c65ba457120d04767a3fc1b948372.zip |
add tests/fuzz
Diffstat (limited to 'tests/fuzz/fuzz.c')
-rw-r--r-- | tests/fuzz/fuzz.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/fuzz/fuzz.c b/tests/fuzz/fuzz.c new file mode 100644 index 0000000..6045186 --- /dev/null +++ b/tests/fuzz/fuzz.c @@ -0,0 +1,7 @@ +#include "sha3.h" + +int LLVMFuzzerTestOneInput(const uint8_t *src, size_t len) { + uint8_t dst[128]; + shake128_xof_once(src, len, dst, sizeof(dst)); + return 0; +} |