aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/ffi/ffi.h
Commit message (Collapse)AuthorAgeFilesLines
* Deprecate some more redundant ffi functionsJack Lloyd2019-08-191-10/+31
|
* Document that FFI destroy operations can failJack Lloyd2019-05-291-3/+37
|
* Correct documentation for botan_rng_initJack Lloyd2019-05-281-2/+5
| | | | Fixes #1984
* More Python API enhancements.Jack Lloyd2019-04-271-27/+46
| | | | Deprecate various redundant FFI functions
* Fix C function prototypes.JornVernee2019-04-211-6/+6
|
* Remove unimplemented function declJack Lloyd2019-04-191-3/+0
|
* Use script to generate Python FFI declsJack Lloyd2019-04-191-7/+0
| | | | Remove unimplemented declaration botan_x509_cert_gen_selfsigned
* Avoid C++ style comments in headers that may be parsed as CJack Lloyd2019-04-191-64/+6
| | | | | Also remove the TLS declarations from ffi.h for now since that isn't supported at all.
* Make exceptions easier to translate to error codesJack Lloyd2018-11-231-0/+12
| | | | | | | | | | | 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
* In FFI pwdhash functions, let len == 0 mean "call strlen"Jack Lloyd2018-09-131-0/+4
|
* Merge GH #1670 New password hashing interfaceJack Lloyd2018-09-131-2/+55
|\
| * Fix Doxygen commentsJack Lloyd2018-09-101-2/+4
| |
| * Add FFIJack Lloyd2018-09-101-2/+53
| | | | | | | | This is a contribution of Ribose Inc (@riboseinc)
* | Some document fixesJack Lloyd2018-09-131-8/+13
| | | | | | | | | | Downgrade min Sphinx to 1.2 again - I checked and while Sphinx 1.2 produce many warnings it does generate usable output.
* | Add FFI functions for creating and getting X25519 dataJack Lloyd2018-09-101-0/+16
|/ | | | See GH #1680
* Add botan_cipher_reset to FFIJack Lloyd2018-08-171-0/+10
|
* Add args for botan FFI cert verification for hostname and timeJack Lloyd2018-08-161-1/+3
|
* Add botan_x509_cert_dupJack Lloyd2018-08-161-2/+4
|
* Add TOTP to FFIJack Lloyd2018-08-161-0/+47
|
* Expose HOTP to FFIJack Lloyd2018-08-151-0/+36
|
* Update comments in FFI headerJack Lloyd2018-08-151-43/+138
| | | | | | Add/fix Doxygen comments. Remove warning which is not really true anymore.
* Remove support for 8 or 16 bit BigInt wordsJack Lloyd2018-08-151-0/+3
| | | | | | | | | | 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.
* Add path validation to FFIJack Lloyd2018-08-131-1/+33
|
* De-inline ffi_guard_thunkJack Lloyd2018-08-131-0/+1
| | | | Saves about 300 Kb of code space in the FFI object files
* Add function to return the size of a key agreement outputJack Lloyd2018-08-121-0/+2
| | | | 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-111-5/+11
| | | | | | | 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-101-0/+22
|
* Add a function to query output length of symmetric cipherJack Lloyd2018-08-101-0/+2
|
* Add functions to get size of PK ciphertext,plaintextJack Lloyd2018-08-101-3/+13
| | | | Needed for https://github.com/strongswan/strongswan/pull/109
* Add FFI function to get signature output lengthJack Lloyd2018-08-101-0/+2
|
* Clarify comment on botan_privkey_loadJack Lloyd2018-08-021-1/+1
|
* Avoid requirement to set rng in botan_privkey_loadJack Lloyd2018-08-011-3/+5
|
* Add botan_mac_query_keylenJack Lloyd2018-07-241-1/+13
|
* Add botan_block_cipher_query_keylen plus some new FFI error codesJack Lloyd2018-07-241-0/+14
|
* Add FFI funcs to get algo name from cipher, MAC and hash objsJack Lloyd2018-07-191-10/+44
|
* Add FPE1 to C APIJack Lloyd2018-07-131-0/+22
| | | | GH #1612
* Small post-merge fixups of #1621Jack Lloyd2018-07-041-8/+8
| | | | | | | 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-041-0/+8
|
* Make FFI errors an enum, and add a function to translate to stringsJack Lloyd2018-02-071-53/+27
|
* Add botan_x509_cert_hostname_matchJack Lloyd2018-01-301-0/+6
|
* Comments from code reviewKrzysztof Kwiatkowski2018-01-221-2/+50
|
* FFI function for Elgamal key generationKrzysztof Kwiatkowski2018-01-211-0/+1
| | | | | Adds function for Elgamal key generation that allows usage of 'p' chosen by the caller.
* FFI function for DSA key generationKrzysztof Kwiatkowski2018-01-211-0/+1
| | | | | Adds function for DSA key generation that allows usage of 'p' and 'q' chosen by the caller.
* Simplify ffi call overheadJack Lloyd2017-10-111-0/+1
| | | | Notable reductions in code size, stack size and function call overhead.
* Change header guard format to BOTAN_FOO_H_Jack Lloyd2017-09-201-2/+2
| | | | | | ISO C++ reserves names with double underscores in them Closes #512
* Complete the final annotation changesJack Lloyd2017-09-191-47/+47
|
* More annotationsJack Lloyd2017-09-191-275/+298
|
* Use constant_time_compare instead of same_memJack Lloyd2017-09-161-0/+5
| | | | New name, same great operation