Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Add a test of EAX via FFI | Jack Lloyd | 2018-01-04 | 1 | -3/+89 |
| | | | | Fixes #1377 | ||||
* | Add note on OAEP version implemented [ci skip] | René Korthaus | 2018-01-04 | 1 | -0/+1 |
| | |||||
* | Force codecov script back to earlier version | Jack Lloyd | 2018-01-03 | 1 | -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 printer | Jack Lloyd | 2018-01-03 | 9 | -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.h | Jack Lloyd | 2018-01-03 | 1 | -1/+1 |
| | | | | No need, forward decl is sufficient. | ||||
* | Merge GH #1381 Support caIssuers in AIA X509 extension | Jack Lloyd | 2018-01-03 | 9 | -4/+160 |
|\ | |||||
| * | add test case for X509_Certificate::ca_issuers() | René Meusel | 2018-01-03 | 3 | -0/+116 |
| | | |||||
| * | use range-based for loop instead of std::for_each | Patrik Fiedler | 2018-01-03 | 3 | -6/+5 |
| | | |||||
| * | add the detection for the ca issuers field(1.3.6.1.5.5.7.48.2) in x509 ↵ | Patrik Fiedler | 2018-01-03 | 5 | -3/+44 |
| | | | | | | | | certificates | ||||
* | | Use helper for char to uint8_t conversions. | Jack Lloyd | 2018-01-02 | 1 | -2/+2 |
| | | |||||
* | | Cleanup ECIES test | Jack Lloyd | 2018-01-02 | 2 | -18/+11 |
| | | | | | | | | And avoid warnings from Sonar about adding booleans | ||||
* | | Avoid a warning in Sonar | Jack Lloyd | 2018-01-02 | 1 | -1/+3 |
|/ | |||||
* | Avoid warning with old Clang | Jack Lloyd | 2018-01-01 | 1 | -1/+1 |
| | | | | Clang defines __GNUG__ so we ended up ignoring the Clang version. | ||||
* | Fix build on old Clang | Jack Lloyd | 2018-01-01 | 1 | -1/+2 |
| | | | | Clang 3.5 on mac didn't like this. | ||||
* | Fix bogus comparison [ci skip] | Jack Lloyd | 2018-01-01 | 1 | -1/+1 |
| | | | | Coverity | ||||
* | Fix function call accidentally removed in 903d8042a9 | Jack Lloyd | 2018-01-01 | 1 | -1/+3 |
| | |||||
* | Add some basic tests of Data_Store class | Jack Lloyd | 2018-01-01 | 1 | -0/+71 |
| | | | | It's deprecated, but still exposed API and still used internally. | ||||
* | Add a cast to avoid Sonar warning | Jack Lloyd | 2018-01-01 | 1 | -6/+3 |
| | |||||
* | Fix hardcoded date | Jack Lloyd | 2018-01-01 | 1 | -4/+3 |
| | | | | Fixes GH #1380 | ||||
* | Merge GH #1379 Fix undefined behavior in Ed25519 | Jack Lloyd | 2017-12-31 | 4 | -287/+313 |
|\ | |||||
| * | Resolve undefined behavior in Ed25519 code | Jack Lloyd | 2017-12-31 | 4 | -287/+313 |
| | | | | | | | | Use multiplications instead of shifting directly. | ||||
* | | Enable GCC inline asm under Sun Studio compilers | Jack Lloyd | 2017-12-31 | 1 | -1/+1 |
| | | | | | | | | Fixes GH #848 | ||||
* | | Fix make clean target | Jack Lloyd | 2017-12-31 | 1 | -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_size | Jack Lloyd | 2017-12-31 | 2 | -0/+8 |
| | | | | FFI requires so this so make sure it's true. GH #1377 | ||||
* | Fix Ed25519 tests | Jack Lloyd | 2017-12-31 | 2 | -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 Lloyd | 2017-12-31 | 1 | -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 loop | Jack Lloyd | 2017-12-30 | 1 | -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 size | Jack Lloyd | 2017-12-30 | 1 | -8/+8 |
| | | | | Just a few bytes but every bit helps. | ||||
* | Change X509_Certificate to cache cert policies and name constraints | Jack Lloyd | 2017-12-30 | 2 | -20/+20 |
| | |||||
* | Deprecate X509_Certificate::policies | Jack Lloyd | 2017-12-30 | 1 | -1/+1 |
| | | | | In favor of the (new) function that returns the OIDs | ||||
* | Remove BOTAN_FORCE_SEMICOLON macro | Jack Lloyd | 2017-12-30 | 3 | -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 MinGW | Jack Lloyd | 2017-12-30 | 1 | -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 aliases | Jack Lloyd | 2017-12-30 | 1 | -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 Lloyd | 2017-12-30 | 1 | -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 this | Jack Lloyd | 2017-12-29 | 1 | -1/+1 |
| | |||||
* | Add some tests of ASN1_Pretty_Printer | Jack Lloyd | 2017-12-29 | 10 | -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 OCSP | Jack Lloyd | 2017-12-29 | 3 | -32/+48 |
| | |||||
* | Check that Cipher_Mode::start with invalid nonce size throws | Jack Lloyd | 2017-12-29 | 1 | -0/+6 |
| | |||||
* | Test output_length of cipher modes | Jack Lloyd | 2017-12-29 | 1 | -0/+13 |
| | |||||
* | Test AEAD provider strings | Jack Lloyd | 2017-12-29 | 1 | -0/+7 |
| | |||||
* | Add explicit int return type declarations on FFI lambdas. | Jack Lloyd | 2017-12-28 | 13 | -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 Lloyd | 2017-12-28 | 1 | -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 string | Jack Lloyd | 2017-12-28 | 1 | -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_DB | Jack Lloyd | 2017-12-28 | 1 | -0/+11 |
| | |||||
* | Correct OpenSSL RC4 naming | Jack Lloyd | 2017-12-28 | 1 | -1/+1 |
| | |||||
* | Add passhash9 tests for edge cases | Jack Lloyd | 2017-12-28 | 2 | -3/+20 |
| | | | | And correct exception message which referred to bcrypt | ||||
* | Deprecate CMAC::poly_double | Jack Lloyd | 2017-12-28 | 1 | -1/+7 |
| | | | | We use the internal util API now | ||||
* | Fix RC4 name in case of skipped bytes | Jack Lloyd | 2017-12-28 | 4 | -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 formatting | Jack Lloyd | 2017-12-28 | 4 | -145/+216 |
|\ | |||||
| * | Refactor ASN1_Pretty_Printer | Jack Lloyd | 2017-12-28 | 4 | -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. |