| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
A few older APIs use as_string where everywhere else uses to_string.
Add to_string's where missing, and deprecate X::as_string.
|
| |
|
|
|
|
| |
Refactor areas where data was being shared
|
|
|
|
| |
Add tests for is_power_of_2
|
|
|
|
|
| |
Unused outside of the test code and not really useful there either.
Header is internal so no API breakage.
|
| |
|
|
|
|
| |
Printing the output key makes it easier to find the offending test.
|
| |
|
|
|
|
| |
This was trying to test for issue in #1723 but was incorrect.
|
| |
|
| |
|
| |
|
|
|
|
| |
It used to do something, then I broke it.
|
| |
|
| |
|
|
|
|
| |
GH #1518
|
|
|
|
|
| |
Calls std::abort the first time a test fails. Not for general
consumption but sometimes very useful when tracking down a tricky bug.
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
Not cryptographically secure, but fast! Cuts several seconds off
the test suite even on a very fast machine. Probably even more
effective for 32-bit systems since the default for HMAC_DRBG is
SHA-384. Also it means deterministic tests are used regardless
of build configuration which is nice.
Improve output for --test-runs which was useful for me when
debugging SM2 encryption issue.
|
| |
|
|
|
|
| |
This allows --test-runs= to work as expected
|
| |
|
| |
|
|
|
|
| |
Some help from include-what-you-use
|
|\ |
|
| |
| |
| |
| |
| |
| |
| | |
Allows PSS-signing a raw hash while also still specifying the salt
length.
GH #1211
|
| |
| |
| |
| | |
Remove CT::min and CT::max which were unused and it turns out, broken.
|
|\ \
| |/
|/| |
|
| |
| |
| |
| |
| | |
Ted Krovetz confirmed there were bugs in the reference code for
blocks > 128 bits so these values should be the correct ones.
|
|/ |
|
|
|
|
| |
Based on patch from Jeffrey Walton in GH #841
|
|
|
|
| |
Based on GH #807 and #808
|
|\ |
|
| |
| |
| |
| |
| | |
Implement RSA private key generation with RSA_generate_key_ex().
Make PK_Key_Generation_Test iterate over all providers.
|
|/ |
|
|
|
|
|
|
|
| |
Curious test failure, HMAC(MD5) failing with "invalid IV length"
(HMAC doesn't support an IV), it turned out to be the IV was left
around from the previously run GMAC test. Just clear out all vars
if a new [algo] header is seen in the file.
|
|
|
|
|
|
|
|
| |
The tests for block, hash, stream, pubkey, and mac loop over all
possible crypto providers. If a specific provider is given on the
botan-test command line, use only this one. If the provider to be
tested is restricted, skip text based tests that do not have a
possible provider.
|
|
|
|
|
|
|
|
| |
Currently botan runs the tests for all crypto providers it can find.
Add a --provider option for botan-test to specify exactly one
provider. This allows to see which parts of a specific implementation
have been tested. Pass down the given provider to a specific test
class.
|
| |
|
|
|
|
| |
Tested on qemu-aarch64
|
|
|
|
| |
Instead just let the individual tests that need the RNG fail.
|
| |
|
|
|
|
|
|
|
| |
Fix a bug in Pipe::check_available that must date back 15 years...
Add destructors to compression filter so unique_ptr destructor runs
without user having to include an extra header for the owned type.
|
| |
|
|
|
|
|
|
| |
Previously longer tests were hidden behind higher 'soak levels'
but these arbitrary cutoffs are confusing compared to a simple
short tests/long tests split.
|
|
|
|
|
|
| |
Turns out astyle has some bugs wrt C++11 initialize lists. Rather
than having astyle mangle all of the tests, convert to using a string
which is split once at the start instead of a vector of keys.
|
|
|
|
|
|
|
|
|
|
|
|
| |
When the code was changed in b8966d0f89e, the offset was not changed,
so it would reject ciphertexts with exactly 8 bytes of random padding
(the required minimum).
Found by pkcs1 fuzzer which also had problems due to not having been
updated at the same time.
Add a test suite for decoding of PK decryption padding to cover the
problem cases.
|
|
|
|
|
|
|
| |
AEAD::output_length)
Fix a bug in CCM, GCM, and OCB decryption which caused `output_length(tag_size())`
to fail even though empty plaintexts are certainly defined for all three modes.
|
|
|
|
| |
Tests touching network are gated by --run-online-tests flag.
|
|
|
|
| |
Document that create_*_op is public but not for public consumption.
|