diff options
author | Jack Lloyd <[email protected]> | 2016-10-30 23:39:21 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2016-10-30 23:39:21 -0400 |
commit | 6582fe8638ab6c37551691a6a0196b22977a6e2e (patch) | |
tree | 152f0e76e76349f916b17c900bb7b39b5fcecb8f /src/extra_tests/fuzzers/jigs/ecc_p521.cpp | |
parent | 76a0cff3b0200660ef678bbdaf3762e45c27bccd (diff) |
Import fuzzer drivers
Originally from https://github.com/randombit/botan-fuzzers but
merging to the main tree (without the corpus files, since I suspect
the corpus files in that repo are not useful anymore)
Adds --unsafe-fuzzer-mode which can be used to selectively disable
cryptographic checks which get in the way of fuzzer testing. This
setting is reflected in build.h and in the version string. Right
now it doesn't actually disable anything.
Diffstat (limited to 'src/extra_tests/fuzzers/jigs/ecc_p521.cpp')
-rw-r--r-- | src/extra_tests/fuzzers/jigs/ecc_p521.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/extra_tests/fuzzers/jigs/ecc_p521.cpp b/src/extra_tests/fuzzers/jigs/ecc_p521.cpp new file mode 100644 index 000000000..cc998137c --- /dev/null +++ b/src/extra_tests/fuzzers/jigs/ecc_p521.cpp @@ -0,0 +1,13 @@ +/* +* (C) 2015,2016 Jack Lloyd +* +* Botan is released under the Simplified BSD License (see license.txt) +*/ +#include "driver.h" +#include "ecc_helper.h" + +void fuzz(const uint8_t in[], size_t len) + { + static EC_Group p521("secp521r1"); + return check_ecc_math(p521, in, len); + } |