aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/ffi/ffi.h
Commit message (Collapse)AuthorAgeFilesLines
* Add create_private_key, expose key loading functions in pk_algs.hJack Lloyd2016-10-201-2/+5
|
* add label parameter to KDF::derive_keyKai Michaelis2016-05-191-1/+2
|
* Update and consolidate the test framework.Jack Lloyd2015-11-111-1/+1
| | | | | | | | | | | The tests previously had used 4 to 6 different schemes internally (the vec file reader framework, Catch, the old InSiTo Boost.Test tests, the PK/BigInt tests which escaped the rewrite in 1.11.7, plus a number of one-offs). Converge on a design that works everywhere, and update all the things. Fix also a few bugs found by the test changes: SHA-512-256 name incorrect, OpenSSL RC4 name incorrect, signature of FFI function botan_pubkey_destroy was wrong.
* Fix botan.py for Python3Jack Lloyd2015-10-201-0/+4
| | | | | | | | | Remove any need for callers to do version checks or encode values specially to handle Python2 vs Python3 ctypes differences. API users shouldn't have to care about that - encapsulate the differences in a few functions for handling the conversions. Add botan_cipher_query_keylen to ffi
* Fix bcrypt testJack Lloyd2015-10-031-1/+3
|
* Add McEliece keygen and MCEIES to C89 API. Plus random fiddlingJack Lloyd2015-10-011-24/+83
|
* Export X.509 certificates to ffi and pythonJack Lloyd2015-10-011-11/+114
| | | | Missing path validation, probably other things
* Add OCaml binding for RNG and hash functions. Add hex_encode to FFIJack Lloyd2015-06-281-0/+47
|
* Fix Python cipher update_granularity() and default_nonce_length()lloyd2015-03-091-0/+1
| | | | which were completely broken. Pointed out by Uri B on mailing list.
* Fix decrypt in FFI/Python. Github issue 53lloyd2015-03-011-0/+4
|
* FFI header cleanup, small Python additionslloyd2015-02-241-10/+16
|
* FFI cleanupslloyd2015-02-191-22/+22
|
* Python: docs, key agreement, fix bcrypt trailing null byte.lloyd2015-02-161-2/+11
| | | | Initial very incomplete pass at error return value sanity.
* Add new module `ffi` which provides a plain C interface, plus a newlloyd2015-02-161-0/+342
ctypes Python wrapper that uses it. The API is intentionally designed to have a very simple ABI (extern "C", all structs are opaque, no memory ownership passing the FFI boundary, limited set of simple types as args) so the ctypes wrapper is quite simple. Currently ffi provides ciphers, hashes, MACs, RNGs, PBKDF, KDF, bcrypt, and most public key operations. Remove the old boost.python wrapper and all the build code for it.