| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
|
|
|
|
| |
Currently OSS-Fuzz stops cold at receiving the certificate message
since the odds of libFuzzer forging an RSA signature are not high.
|
|
|
|
|
|
| |
Needed for OSS-Fuzz (OOMing a lot) and maybe very occasionally
useful in some weird application that has to deal with 100s of
different curves.
|
|
|
|
|
|
|
|
|
| |
Adds PointGFp::force_affine(), ::add_affine(), and ::is_affine()
Use a (very simple) technique for base point precomputations.
Stick with fixed window for variable point inputs.
Scalar blinding is now always enabled
|
|
|
|
|
| |
Now binary ext gcd algorithm has an exposed API so no need to
duplicate the code here.
|
|
|
|
| |
This runs into the same weird UbSan issue as in #1370
|
|
|
|
|
|
|
|
|
|
| |
OSS-Fuzz 6570 flagged an issue with slow modular exponentation.
It turned out the problem was not in the library version but the
simple square-and-multiply algorithm. Computing g^x % p with all
three integers being dense (high Hamming weight) numbers took about
1.5 seconds on a fast machine with almost all of the time taken
by the Barrett reductions. With these changes, same testcase
now takes only a tiny fraction of a second.
|
|
|
|
|
| |
Previously it used a hardcoded (random) prime, but accepting all
three inputs allows much better coverage of corner cases.
|
| |
|
| |
|
|
|
|
| |
No shared state
|
|
|
|
| |
Hide CurveGFp with an eye for eventual removal
|
| |
|
|
|
|
|
|
| |
Now the base class ASN1_Formatter parses the data and calls virtuals
to format. This allows custom formatting, or in the case of the fuzzer
skipping the overhead of formatting entirely.
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
ISO C++ reserves names with double underscores in them
Closes #512
|
|
|
|
|
| |
If we ever output something to the terminal it should be because
we are crashing.
|
|
|
|
|
|
| |
For the fuzzers, builds an object and then links in a second step,
because we need that to link the fuzzer binaries for LLVM. (Clang
will emit bitcode for us, but doesn't want to link it.)
|
|
|