aboutsummaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Add a test of EAX via FFIJack Lloyd2018-01-041-3/+89
| | | | Fixes #1377
* Add note on OAEP version implemented [ci skip]René Korthaus2018-01-041-0/+1
|
* Force codecov script back to earlier versionJack Lloyd2018-01-031-1/+1
| | | | | Latest version fails with a Python exception. Already contacted support but falling back until a fix is available.
* Improve output of the ASN1 printerJack Lloyd2018-01-039-69/+238
| | | | | | | | | | The output was pretty much wrong for application-tagged types. Instead the type was printed as if it was a universal tag. Add a hack in the ASN1 printer for GeneralNames. These are a commonly used implicitly tagged type. Basically if it is a context specific field, and it looks like it might be a printable URI or DNS GeneralName, treat it as a string.
* Avoid including x509_ext.h in pkcs10.hJack Lloyd2018-01-031-1/+1
| | | | No need, forward decl is sufficient.
* Merge GH #1381 Support caIssuers in AIA X509 extensionJack Lloyd2018-01-039-4/+160
|\
| * add test case for X509_Certificate::ca_issuers()René Meusel2018-01-033-0/+116
| |
| * use range-based for loop instead of std::for_eachPatrik Fiedler2018-01-033-6/+5
| |
| * add the detection for the ca issuers field(1.3.6.1.5.5.7.48.2) in x509 ↵Patrik Fiedler2018-01-035-3/+44
| | | | | | | | certificates
* | Use helper for char to uint8_t conversions.Jack Lloyd2018-01-021-2/+2
| |
* | Cleanup ECIES testJack Lloyd2018-01-022-18/+11
| | | | | | | | And avoid warnings from Sonar about adding booleans
* | Avoid a warning in SonarJack Lloyd2018-01-021-1/+3
|/
* Avoid warning with old ClangJack Lloyd2018-01-011-1/+1
| | | | Clang defines __GNUG__ so we ended up ignoring the Clang version.
* Fix build on old ClangJack Lloyd2018-01-011-1/+2
| | | | Clang 3.5 on mac didn't like this.
* Fix bogus comparison [ci skip]Jack Lloyd2018-01-011-1/+1
| | | | Coverity
* Fix function call accidentally removed in 903d8042a9Jack Lloyd2018-01-011-1/+3
|
* 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.