aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/ffi
Commit message (Collapse)AuthorAgeFilesLines
...
* Add some additional null pointer arg checks to FFIJack Lloyd2018-08-143-27/+61
|
* Merge GH #1647 Add X.509 path validation to FFIJack Lloyd2018-08-142-2/+113
|\
| * Add path validation to FFIJack Lloyd2018-08-132-2/+113
| |
* | Expose RDRAND RNG through FFIJack Lloyd2018-08-131-2/+13
|/
* De-inline ffi_guard_thunkJack Lloyd2018-08-133-34/+52
| | | | Saves about 300 Kb of code space in the FFI object files
* Better error reporting for FFIJack Lloyd2018-08-123-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 outputJack Lloyd2018-08-122-0/+9
| | | | Very useful when using "Raw" DH/ECDH via the FFI API.
* Better error checking in Python wrapperJack Lloyd2018-08-111-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 placeJack Lloyd2018-08-111-22/+22
|
* Add botan_cipher_get_keyspecJack Lloyd2018-08-114-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 functionsJack Lloyd2018-08-104-0/+55
|
* Add a function to query output length of symmetric cipherJack Lloyd2018-08-104-1/+18
|
* Add functions to get size of PK ciphertext,plaintextJack Lloyd2018-08-102-3/+23
| | | | Needed for https://github.com/strongswan/strongswan/pull/109
* Guard use of Serialized_RNG with thread macro checkJack Lloyd2018-08-101-0/+2
|
* Merge GH #1641 Add functions to get expected length of PK signatureJack Lloyd2018-08-102-0/+7
|\
| * Add FFI function to get signature output lengthJack Lloyd2018-08-102-0/+7
| |
* | Add a "user-threadsafe" option to botan_rng_initJack Lloyd2018-08-101-0/+10
| |
* | Allow x509 module to be optional for FFIJack Lloyd2018-08-103-19/+103
|/
* Format nitJack Lloyd2018-08-021-1/+1
|
* Clarify comment on botan_privkey_loadJack Lloyd2018-08-021-1/+1
|
* Merge GH #1637 Merge SM2 signature and ECIES key typesJack Lloyd2018-08-021-31/+5
|\
| * Combine SM2 key types for signatures and encryptionJack Lloyd2018-08-011-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_loadJack Lloyd2018-08-012-7/+9
|/
* Add include for getenvJack Lloyd2018-07-241-0/+1
|
* Only print FFI exceptions to stdout if an env var is setJack Lloyd2018-07-241-1/+4
| | | | So debugging is possible but default is silent.
* Add botan_mac_query_keylenJack Lloyd2018-07-242-1/+28
|
* Add botan_block_cipher_query_keylen plus some new FFI error codesJack Lloyd2018-07-244-5/+49
|
* Add FFI funcs to get algo name from cipher, MAC and hash objsJack Lloyd2018-07-196-10/+73
|
* Bump the FFI versionJack Lloyd2018-07-132-2/+6
| | | | New FFI features added in #1621 and #1625
* Add FPE1 to C APIJack Lloyd2018-07-132-0/+112
| | | | GH #1612
* Small post-merge fixups of #1621Jack Lloyd2018-07-043-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 ffiRené Korthaus2018-07-042-0/+57
|
* Add RAII versions of get_cipher_mode and get_aeadJack Lloyd2018-04-071-1/+1
| | | | See also #1526
* Ensure exception types are exported from DLLJack Lloyd2018-03-061-1/+1
| | | | GH #983
* One comment fix and one formatting fix [ci skip]René Korthaus2018-02-281-3/+4
|
* Add functions to EC_Group for getting base point coordinatesJack Lloyd2018-02-251-2/+2
|
* Make FFI errors an enum, and add a function to translate to stringsJack Lloyd2018-02-072-54/+71
|
* Use shared representation of EC_GroupJack Lloyd2018-01-311-4/+4
| | | | Hide CurveGFp with an eye for eventual removal
* Add botan_x509_cert_hostname_matchJack Lloyd2018-01-302-0/+15
|
* Comments from code reviewKrzysztof Kwiatkowski2018-01-222-6/+71
|
* FFI function for Elgamal key generationKrzysztof Kwiatkowski2018-01-212-0/+19
| | | | | Adds function for Elgamal key generation that allows usage of 'p' chosen by the caller.
* FFI function for DSA key generationKrzysztof Kwiatkowski2018-01-212-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 optionalJack Lloyd2018-01-121-0/+3
|
* 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.
* Avoid deprecated functions in FFIJack Lloyd2017-11-141-3/+3
|
* Simplify ffi call overheadJack Lloyd2017-10-115-45/+22
| | | | Notable reductions in code size, stack size and function call overhead.
* Add static_cast to avoid conversion warningJack Lloyd2017-10-031-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 Lloyd2017-10-032-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 variablesJack Lloyd2017-10-021-1/+0
| | | | Sonar finds
* Avoid using namespace in FFI headersJack Lloyd2017-10-025-7/+3
| | | | Internal only headers but Sonar doesn't know that