Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | 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. | ||||
* | Add --avoid-undefined option | Jack Lloyd | 2018-03-31 | 1 | -5/+8 |
| | | | | GH #1518 | ||||
* | Add functions to EC_Group for getting base point coordinates | Jack Lloyd | 2018-02-25 | 1 | -6/+6 |
| | |||||
* | Move FFI tests to sub-functions | Jack Lloyd | 2018-01-30 | 1 | -235/+292 |
| | | | | Add a test for hostname match function | ||||
* | Comments from code review | Krzysztof Kwiatkowski | 2018-01-22 | 1 | -1/+2 |
| | |||||
* | FFI function for Elgamal key generation | Krzysztof Kwiatkowski | 2018-01-21 | 1 | -48/+62 |
| | | | | | Adds function for Elgamal key generation that allows usage of 'p' chosen by the caller. | ||||
* | FFI function for DSA key generation | Krzysztof Kwiatkowski | 2018-01-21 | 1 | -7/+16 |
| | | | | | Adds function for DSA key generation that allows usage of 'p' and 'q' chosen by the caller. | ||||
* | Add a test of EAX via FFI | Jack Lloyd | 2018-01-04 | 1 | -3/+89 |
| | | | | Fixes #1377 | ||||
* | Move all the various X509 test data files under src/tests/data/x509 | Jack Lloyd | 2017-11-16 | 1 | -1/+1 |
| | |||||
* | Update test for new error return | Jack Lloyd | 2017-10-11 | 1 | -1/+1 |
| | |||||
* | Fix test error if mceies disabled | Jack Lloyd | 2017-09-29 | 1 | -3/+5 |
| | | | | [ci skip] | ||||
* | Further header cleanups | Jack Lloyd | 2017-09-28 | 1 | -0/+1 |
| |