Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Add some additional null pointer arg checks to FFI | Jack Lloyd | 2018-08-14 | 3 | -27/+61 | |
| | ||||||
* | Merge GH #1647 Add X.509 path validation to FFI | Jack Lloyd | 2018-08-14 | 2 | -2/+113 | |
|\ | ||||||
| * | Add path validation to FFI | Jack Lloyd | 2018-08-13 | 2 | -2/+113 | |
| | | ||||||
* | | Expose RDRAND RNG through FFI | Jack Lloyd | 2018-08-13 | 1 | -2/+13 | |
|/ | ||||||
* | De-inline ffi_guard_thunk | Jack Lloyd | 2018-08-13 | 3 | -34/+52 | |
| | | | | Saves about 300 Kb of code space in the FFI object files | |||||
* | Better error reporting for FFI | Jack Lloyd | 2018-08-12 | 3 | -6/+18 | |
| | | | | | Previously safe_get(x) where x was null would return an error about an exception being thrown, instead of a null pointer error. | |||||
* | Add function to return the size of a key agreement output | Jack Lloyd | 2018-08-12 | 2 | -0/+9 | |
| | | | | Very useful when using "Raw" DH/ECDH via the FFI API. | |||||
* | Better error checking in Python wrapper | Jack Lloyd | 2018-08-11 | 1 | -1/+1 | |
| | | | | | | Adopt APIs added in 2.8 Expose botan_error_description which was added in 2.5 but not exported! | |||||
* | Put bcrypt decls in ffi in same place | Jack Lloyd | 2018-08-11 | 1 | -22/+22 | |
| | ||||||
* | Add botan_cipher_get_keyspec | Jack Lloyd | 2018-08-11 | 4 | -13/+34 | |
| | | | | | | | 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 | 4 | -0/+55 | |
| | ||||||
* | Add a function to query output length of symmetric cipher | Jack Lloyd | 2018-08-10 | 4 | -1/+18 | |
| | ||||||
* | Add functions to get size of PK ciphertext,plaintext | Jack Lloyd | 2018-08-10 | 2 | -3/+23 | |
| | | | | Needed for https://github.com/strongswan/strongswan/pull/109 | |||||
* | Guard use of Serialized_RNG with thread macro check | Jack Lloyd | 2018-08-10 | 1 | -0/+2 | |
| | ||||||
* | Merge GH #1641 Add functions to get expected length of PK signature | Jack Lloyd | 2018-08-10 | 2 | -0/+7 | |
|\ | ||||||
| * | Add FFI function to get signature output length | Jack Lloyd | 2018-08-10 | 2 | -0/+7 | |
| | | ||||||
* | | Add a "user-threadsafe" option to botan_rng_init | Jack Lloyd | 2018-08-10 | 1 | -0/+10 | |
| | | ||||||
* | | Allow x509 module to be optional for FFI | Jack Lloyd | 2018-08-10 | 3 | -19/+103 | |
|/ | ||||||
* | Format nit | Jack Lloyd | 2018-08-02 | 1 | -1/+1 | |
| | ||||||
* | Clarify comment on botan_privkey_load | Jack Lloyd | 2018-08-02 | 1 | -1/+1 | |
| | ||||||
* | Merge GH #1637 Merge SM2 signature and ECIES key types | Jack Lloyd | 2018-08-02 | 1 | -31/+5 | |
|\ | ||||||
| * | Combine SM2 key types for signatures and encryption | Jack Lloyd | 2018-08-01 | 1 | -31/+5 | |
| | | | | | | | | | | | | 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. | |||||
* | | Avoid requirement to set rng in botan_privkey_load | Jack Lloyd | 2018-08-01 | 2 | -7/+9 | |
|/ | ||||||
* | Add include for getenv | Jack Lloyd | 2018-07-24 | 1 | -0/+1 | |
| | ||||||
* | Only print FFI exceptions to stdout if an env var is set | Jack Lloyd | 2018-07-24 | 1 | -1/+4 | |
| | | | | So debugging is possible but default is silent. | |||||
* | Add botan_mac_query_keylen | Jack Lloyd | 2018-07-24 | 2 | -1/+28 | |
| | ||||||
* | Add botan_block_cipher_query_keylen plus some new FFI error codes | Jack Lloyd | 2018-07-24 | 4 | -5/+49 | |
| | ||||||
* | Add FFI funcs to get algo name from cipher, MAC and hash objs | Jack Lloyd | 2018-07-19 | 6 | -10/+73 | |
| | ||||||
* | Bump the FFI version | Jack Lloyd | 2018-07-13 | 2 | -2/+6 | |
| | | | | New FFI features added in #1621 and #1625 | |||||
* | Add FPE1 to C API | Jack Lloyd | 2018-07-13 | 2 | -0/+112 | |
| | | | | GH #1612 | |||||
* | Small post-merge fixups of #1621 | Jack Lloyd | 2018-07-04 | 3 | -20/+20 | |
| | | | | | | | Formatting, and fix the API revision annotations Adds pem as explicit dependency to FFI; already pubkey pulls it in but good to be explicit. | |||||
* | Add RSA PKCS#1 key load and export functions to ffi | René Korthaus | 2018-07-04 | 2 | -0/+57 | |
| | ||||||
* | Add RAII versions of get_cipher_mode and get_aead | Jack Lloyd | 2018-04-07 | 1 | -1/+1 | |
| | | | | See also #1526 | |||||
* | Ensure exception types are exported from DLL | Jack Lloyd | 2018-03-06 | 1 | -1/+1 | |
| | | | | GH #983 | |||||
* | One comment fix and one formatting fix [ci skip] | René Korthaus | 2018-02-28 | 1 | -3/+4 | |
| | ||||||
* | Add functions to EC_Group for getting base point coordinates | Jack Lloyd | 2018-02-25 | 1 | -2/+2 | |
| | ||||||
* | Make FFI errors an enum, and add a function to translate to strings | Jack Lloyd | 2018-02-07 | 2 | -54/+71 | |
| | ||||||
* | Use shared representation of EC_Group | Jack Lloyd | 2018-01-31 | 1 | -4/+4 | |
| | | | | Hide CurveGFp with an eye for eventual removal | |||||
* | Add botan_x509_cert_hostname_match | Jack Lloyd | 2018-01-30 | 2 | -0/+15 | |
| | ||||||
* | Comments from code review | Krzysztof Kwiatkowski | 2018-01-22 | 2 | -6/+71 | |
| | ||||||
* | FFI function for Elgamal key generation | Krzysztof Kwiatkowski | 2018-01-21 | 2 | -0/+19 | |
| | | | | | 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 | 2 | -0/+19 | |
| | | | | | Adds function for DSA key generation that allows usage of 'p' and 'q' chosen by the caller. | |||||
* | Make stream, block, hash and cipher mode base classes optional | Jack Lloyd | 2018-01-12 | 1 | -0/+3 | |
| | ||||||
* | 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. | |||||
* | Avoid deprecated functions in FFI | Jack Lloyd | 2017-11-14 | 1 | -3/+3 | |
| | ||||||
* | Simplify ffi call overhead | Jack Lloyd | 2017-10-11 | 5 | -45/+22 | |
| | | | | Notable reductions in code size, stack size and function call overhead. | |||||
* | Add static_cast to avoid conversion warning | Jack Lloyd | 2017-10-03 | 1 | -1/+2 | |
| | | | | | I guess we're in trouble if we add any block ciphers with size >= 2^31 Probably fine. | |||||
* | Add wrappers for reinterpret_cast between char* and uint8_t* | Jack Lloyd | 2017-10-03 | 2 | -5/+6 | |
| | | | | | | | Generally speaking reinterpret_cast is sketchy stuff. But the special case of char*/uint8_t* is both common and safe. By isolating those, the remaining (likely sketchy) cases are easier to grep for. | |||||
* | Remove various unused variables | Jack Lloyd | 2017-10-02 | 1 | -1/+0 | |
| | | | | Sonar finds | |||||
* | Avoid using namespace in FFI headers | Jack Lloyd | 2017-10-02 | 5 | -7/+3 | |
| | | | | Internal only headers but Sonar doesn't know that |