aboutsummaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Add some basic tests of Data_Store classJack Lloyd2018-01-011-0/+71
| | | | It's deprecated, but still exposed API and still used internally.
* Add a cast to avoid Sonar warningJack Lloyd2018-01-011-6/+3
|
* Fix hardcoded dateJack Lloyd2018-01-011-4/+3
| | | | Fixes GH #1380
* Merge GH #1379 Fix undefined behavior in Ed25519Jack Lloyd2017-12-314-287/+313
|\
| * Resolve undefined behavior in Ed25519 codeJack Lloyd2017-12-314-287/+313
| | | | | | | | Use multiplications instead of shifting directly.
* | Enable GCC inline asm under Sun Studio compilersJack Lloyd2017-12-311-1/+1
| | | | | | | | Fixes GH #848
* | Fix make clean targetJack Lloyd2017-12-311-7/+6
|/ | | | | If we removed the shared lib first, the symlinks were dangling and access() would return false. Instead always unlink.
* Add a test that update_granularity > minimum_final_sizeJack Lloyd2017-12-312-0/+8
| | | | FFI requires so this so make sure it's true. GH #1377
* Fix Ed25519 testsJack Lloyd2017-12-312-10/+4
| | | | Due to an error in the test data they ended up being skipped at runtime.
* Add version detection for XLC [ci skip]Jack Lloyd2017-12-311-0/+4
| | | | | We don't need it right now but may later and it avoids a scary warning when configuring the build.
* Avoid macros in Blake2b to workaround Visual C++ 2017 infinite loopJack Lloyd2017-12-301-39/+44
| | | | | Was fixed in 2017 SP1. Same bug hit Crypto++ - https://gihub.com/weidai11/cryptopp/issues/527
* Reorder fields of X509_Certificate_Data to reduce sizeJack Lloyd2017-12-301-8/+8
| | | | Just a few bytes but every bit helps.
* Change X509_Certificate to cache cert policies and name constraintsJack Lloyd2017-12-302-20/+20
|
* Deprecate X509_Certificate::policiesJack Lloyd2017-12-301-1/+1
| | | | In favor of the (new) function that returns the OIDs
* Remove BOTAN_FORCE_SEMICOLON macroJack Lloyd2017-12-303-10/+4
| | | | | | Only needed in two headers (cli.h and test.h) not in the main library. Just change those two uses to not use anonymous namespaces.
* Disable sockets on MinGWJack Lloyd2017-12-301-3/+3
| | | | | | Everything works ok on i686 when crosscompiled but it seems things are badly broken on x86-64 when compiling on Windows. Rather than fight their broken headers, just disable. No OCSP for you MinGW.
* Support regexes for OS aliasesJack Lloyd2017-12-301-1/+1
| | | | | Needed for mingw which has unames like mingw32_nt-6.3 and thus varies based on the underlying version. Might be useful elsewhere.
* Increase EAX update granularity to 128 bytes.Jack Lloyd2017-12-301-1/+5
| | | | | | | | | | Works around a performance problem with applications that use this as a buffer size. Longer term fix is to have two different functions, one for the minimum grain size and another for the optimium buffer size. GH #1377
* Fix lambda capture, MSVC didn't like thisJack Lloyd2017-12-291-1/+1
|
* Add some tests of ASN1_Pretty_PrinterJack Lloyd2017-12-2910-1/+79
| | | | | The output is not fixed and may change in the future, but changes should at least be noticed.
* Move utils for reading test data files up to Test:: from OCSPJack Lloyd2017-12-293-32/+48
|
* Check that Cipher_Mode::start with invalid nonce size throwsJack Lloyd2017-12-291-0/+6
|
* Test output_length of cipher modesJack Lloyd2017-12-291-0/+13
|
* Test AEAD provider stringsJack Lloyd2017-12-291-0/+7
|
* Add explicit int return type declarations on FFI lambdas.Jack Lloyd2017-12-2813-53/+53
| | | | | | Sun Studio gives a strange warning about this. This probably doesn't help actually compile under Sun Studio. But it doesn't hurt to be explicit.
* Hack for building on Cygwin (newlib)Jack Lloyd2017-12-281-0/+1
| | | | | | | Newlib hides system functions if __STRICT_ANSI__ is defined, as happens with -std=c++11. To get access to POSIX APIs you must use a -std=gnu variant. However doing that in the build is kind of painful, it's easier to selectively undefine the macro.
* Add a test of Skein using personalization stringJack Lloyd2017-12-281-0/+5
| | | | | Need to confirm this against another impl but at least this prevents regressions.
* Add a test for distinct master keys in a single PSK_DBJack Lloyd2017-12-281-0/+11
|
* Correct OpenSSL RC4 namingJack Lloyd2017-12-281-1/+1
|
* Add passhash9 tests for edge casesJack Lloyd2017-12-282-3/+20
| | | | And correct exception message which referred to bcrypt
* Deprecate CMAC::poly_doubleJack Lloyd2017-12-281-1/+7
| | | | We use the internal util API now
* Fix RC4 name in case of skipped bytesJack Lloyd2017-12-284-39/+19
| | | | | | | | | | Add a test to detect that. Add test that stream ciphers throw if they are asked to use a nonce of a size they don't support. Remove "In = 00...00" blocks since that's implicit in the stream cipher tests.
* Merge GH #1375 Refactor ASN1_Pretty_Printer to allow custom formattingJack Lloyd2017-12-284-145/+216
|\
| * Refactor ASN1_Pretty_PrinterJack Lloyd2017-12-284-145/+216
| | | | | | | | | | | | 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.
* | Add a comment about an unused enumJack Lloyd2017-12-281-0/+1
|/ | | | So I can find it and remove it in 3.x
* Add final annotation on Data_StoreJack Lloyd2017-12-281-1/+1
|
* Avoid prefixing siglongjmp or sigsetjmp with ::Jack Lloyd2017-12-281-2/+2
| | | | Apparently these are macros on Cygwin/newlib
* Merge GH #1374 Remove unneeded XMSS-WOTS operationsJack Lloyd2017-12-2711-397/+0
|\
| * Remove the unused XMSS-WOTS operationsJack Lloyd2017-12-2711-397/+0
| |
* | Change X509_Certificate::subject_public_key_bitstring_sha1 to return const refJack Lloyd2017-12-272-2/+3
|/
* In dist script set gzip header time to the tag timestampJack Lloyd2017-12-271-18/+19
| | | | Also use the tag time for the tar timestamps instead of arbitrary 6am
* Fix a couple Doxygen format errors [ci skip]Jack Lloyd2017-12-262-9/+11
|
* Avoid warnings about unused params in minimal builds [ci skip]Jack Lloyd2017-12-241-1/+5
|
* Fixes #1370 UBSan incompatible function ptr typeMatthias Gierlings2017-12-241-5/+35
| | | | | | Calls `Botan::redc_pXXX` directly inside non-capturing lambda function, which can be converted to `std::function<void (...)>`, instead of passing an incompatible `void(*)` to `NIST_Curve_Reduction_Tests::random_redc_test`.
* Avoid printing integers in decimal in ASN.1 printerJack Lloyd2017-12-231-11/+1
| | | | | Having the integers be sometimes hex and other times decimal made the output very hard to interpret correctly. Better to just pick one.
* Correctly handle ASN.1 data inside octet strings.Jack Lloyd2017-12-231-1/+6
| | | | | If we were able to successfully parse ASN.1 data embedded in an OCTET STRING, we ended up not reporting the OCTET STRING tagging.
* Add exceptions to mach_abi_linking groupsJack Lloyd2017-12-232-2/+2
| | | | | Allows avoiding -pthread on Haiku which doesn't support that flag. (Even though it has pthreads, go figure...)
* Build improvementsJack Lloyd2017-12-238-6/+4
| | | | | | | | | | Derive the fact that shared libs are not supported from the lack of information about shared object names. If soname_suffix and co are not set -> shared libs are disabled. Disable stack protector by default on OSes where it has proven a problem namely AIX and Haiku. Add --with-stack-protector option to force turning it on.
* Use a better name for the entropy source that reads the system RNGJack Lloyd2017-12-231-1/+1
| | | | Now the value round trips with Entropy_Source::create
* Enable additional Haiku featuresJack Lloyd2017-12-231-1/+3
|