Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Remove tab chars | Jack Lloyd | 2019-07-10 | 1 | -5/+5 |
| | | | | Death to \t | ||||
* | More Python API enhancements. | Jack Lloyd | 2019-04-27 | 1 | -0/+2 |
| | | | | Deprecate various redundant FFI functions | ||||
* | Fix feature macro checks. | Jack Lloyd | 2019-04-26 | 1 | -3/+3 |
| | | | | Add a checker script. | ||||
* | Fix some build/test problems with minimized builds | Jack Lloyd | 2019-04-26 | 1 | -7/+13 |
| | |||||
* | Using preprocessor for the tests | David Carlier | 2019-04-12 | 1 | -8/+7 |
| | |||||
* | Fixes memory leak in FFI tests | Matthias Gierlings | 2019-04-08 | 1 | -0/+1 |
| | |||||
* | Fixes for minimized builds | Jack Lloyd | 2019-02-16 | 1 | -1/+7 |
| | | | | Various configurations would fail build or test, fix that. | ||||
* | Remove trailing whitespace | Jack Lloyd | 2019-01-13 | 1 | -2/+1 |
| | |||||
* | Fix some MSVC warnings | Jack Lloyd | 2018-12-10 | 1 | -2/+2 |
| | |||||
* | Fix a FFI test when threads are disabled | Jack Lloyd | 2018-12-03 | 1 | -1/+9 |
| | |||||
* | Make exceptions easier to translate to error codes | Jack Lloyd | 2018-11-23 | 1 | -2/+2 |
| | | | | | | | | | | | Avoid throwing base Botan::Exception type, as it is difficult to determine what the error is in that case. Add Exception::error_code and Exception::error_type which allows (for error code) more information about the error and (for error type) allows knowing the error type without requiring a sequence of catches. See GH #1742 | ||||
* | Avoid null pointer write in FFI | Jack Lloyd | 2018-09-28 | 1 | -0/+3 |
| | | | | | | | | If a function returning variable length output was called with a null output buffer but a non-zero output buffer length, FFI layer would call memset(nullptr, 0, buffer_len) and crash. Caught by Coverity. | ||||
* | Merge GH #1670 New password hashing interface | Jack Lloyd | 2018-09-13 | 1 | -3/+29 |
|\ | |||||
| * | Test Scrypt private key encryption | Jack Lloyd | 2018-09-10 | 1 | -3/+18 |
| | | |||||
| * | Add tests | Jack Lloyd | 2018-09-10 | 1 | -0/+11 |
| | | | | | | | | This is a contribution of Ribose Inc (@riboseinc) | ||||
* | | Add FFI functions for creating and getting X25519 data | Jack Lloyd | 2018-09-10 | 1 | -0/+58 |
|/ | | | | See GH #1680 | ||||
* | Add botan_cipher_reset to FFI | Jack Lloyd | 2018-08-17 | 1 | -0/+5 |
| | |||||
* | Add args for botan FFI cert verification for hostname and time | Jack Lloyd | 2018-08-16 | 1 | -4/+4 |
| | |||||
* | Add botan_x509_cert_dup | Jack Lloyd | 2018-08-16 | 1 | -0/+6 |
| | |||||
* | Fix bug introduced in 15e149ac | Jack Lloyd | 2018-08-16 | 1 | -0/+10 |
| | | | | | This caused get_field, when called with a non-existing field, to return success and set the field to a small negative integer. | ||||
* | Add TOTP to FFI | Jack Lloyd | 2018-08-16 | 1 | -1/+36 |
| | |||||
* | Expose HOTP to FFI | Jack Lloyd | 2018-08-15 | 1 | -1/+36 |
| | |||||
* | More FFI tests | Jack Lloyd | 2018-08-15 | 1 | -0/+54 |
| | |||||
* | Remove support for 8 or 16 bit BigInt words | Jack Lloyd | 2018-08-15 | 1 | -2/+4 |
| | | | | | | | | | | It turned out 8 bit was very broken (failed to compile, due to overload problems with functions taking uint8_t vs word). 16 bit words work aside from a test failure, but is really slow. Practically speaking we are not in a position to support 16-bit CPUs very well. And being able to assume sizeof(word) >= sizeof(uint32_t) allows simplifying some code. | ||||
* | Cleanup of BigInt encoding/decoding functions | Jack Lloyd | 2018-08-14 | 1 | -4/+16 |
| | | | | | | | | | | | | | Instigated by finding a bug where BigInt::encode with decimal output would often have a leading '0' char. Which is papered over in the IO operator, but was exposed by botan_mp_to_str which called BigInt::encode directly. Split BigInt::encode/decode into two versions, one taking the Base argument and the other using the (previously default) binary base. With a view of eventually deprecating the versions taking a base. Add BigInt::to_dec_string() and BigInt::to_hex_string() | ||||
* | Add some additional null pointer arg checks to FFI | Jack Lloyd | 2018-08-14 | 1 | -2/+5 |
| | |||||
* | Merge GH #1647 Add X.509 path validation to FFI | Jack Lloyd | 2018-08-14 | 1 | -1/+59 |
|\ | |||||
| * | Add path validation to FFI | Jack Lloyd | 2018-08-13 | 1 | -1/+59 |
| | | |||||
* | | Expose RDRAND RNG through FFI | Jack Lloyd | 2018-08-13 | 1 | -39/+56 |
|/ | |||||
* | Add botan_cipher_get_keyspec | Jack Lloyd | 2018-08-11 | 1 | -8/+14 |
| | | | | | | | botan_cipher_query_keylen doesn't return the modulus. Renames (recently added/unreleased) botan_{block_cipher,mac}_query_keylen to x_get_keyspec so the names are consistent. | ||||
* | Add some useful FFI functions | Jack Lloyd | 2018-08-10 | 1 | -7/+40 |
| | |||||
* | Fix FFI test | Jack Lloyd | 2018-08-10 | 1 | -1/+3 |
| | | | | This could fail if the random plaintext was of zero length | ||||
* | Add a function to query output length of symmetric cipher | Jack Lloyd | 2018-08-10 | 1 | -3/+10 |
| | |||||
* | Add functions to get size of PK ciphertext,plaintext | Jack Lloyd | 2018-08-10 | 1 | -13/+25 |
| | | | | Needed for https://github.com/strongswan/strongswan/pull/109 | ||||
* | Merge GH #1641 Add functions to get expected length of PK signature | Jack Lloyd | 2018-08-10 | 1 | -11/+25 |
|\ | |||||
| * | Add FFI function to get signature output length | Jack Lloyd | 2018-08-10 | 1 | -11/+25 |
| | | |||||
* | | Add a "user-threadsafe" option to botan_rng_init | Jack Lloyd | 2018-08-10 | 1 | -0/+7 |
| | | |||||
* | | Allow x509 module to be optional for FFI | Jack Lloyd | 2018-08-10 | 1 | -4/+22 |
|/ | |||||
* | Combine SM2 key types for signatures and encryption | Jack Lloyd | 2018-08-01 | 1 | -2/+2 |
| | | | | | | It seems in practice the same key may be end up used for both operations, so maintaining a distinction at the type level just complicates things. | ||||
* | Only print FFI exceptions to stdout if an env var is set | Jack Lloyd | 2018-07-24 | 1 | -0/+3 |
| | | | | So debugging is possible but default is silent. | ||||
* | Add botan_mac_query_keylen | Jack Lloyd | 2018-07-24 | 1 | -0/+10 |
| | |||||
* | Add botan_block_cipher_query_keylen plus some new FFI error codes | Jack Lloyd | 2018-07-24 | 1 | -0/+10 |
| | |||||
* | Add FFI funcs to get algo name from cipher, MAC and hash objs | Jack Lloyd | 2018-07-19 | 1 | -15/+49 |
| | |||||
* | Bump the FFI version | Jack Lloyd | 2018-07-13 | 1 | -0/+7 |
| | | | | New FFI features added in #1621 and #1625 | ||||
* | Add FPE1 to C API | Jack Lloyd | 2018-07-13 | 1 | -0/+41 |
| | | | | GH #1612 | ||||
* | Add RSA PKCS#1 key load and export functions to ffi | René Korthaus | 2018-07-04 | 1 | -0/+17 |
| | |||||
* | Prohibit empty nonces with GCM | Jack Lloyd | 2018-06-27 | 1 | -2/+4 |
| | | | | | This is mostly harmless but not allowed by the specification. See for example SP800-38D section 5.2.1.1 | ||||
* | Fix the botan-test --verbose flag, which did nothing | Jack Lloyd | 2018-04-11 | 1 | -1/+1 |
| | | | | It used to do something, then I broke it. | ||||
* | Moves UBSAN macros from test files to Test_Options | Matthias Gierlings | 2018-04-07 | 1 | -4/+0 |
| | | | | | | | | | | | | To keep the code more readable change the behavior of `Test_Options::no_avoid_undefined_behavior()`, instead of the conditionals inside the tests. `Test_Options::no_avoid_undefined_behavior()` will always return `true` if UBSAN is inactive. This way all tests, including those that cause undefined behaviour, will run. Once botan is compiled with UBSAN those tests will be automatically skipped unless the `--no-avoid-undefined` is passed to the test-bench. | ||||
* | Make tests pass by default in UBSAN mode | Matthias Gierlings | 2018-04-06 | 1 | -1/+5 |
| | | | | | | | | - Adds macros to check if botan was compiled with a certain sanitizers. - Automatically excludes the tests that are intended to provoke undefined behaviour from the test bench, when botan is compiled with UBSAN. - Changes option `--avoid-undefined` to `--no-avoid-undefined` so the failing tests can be explicitly activated when needed. |