aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/ffi/ffi.h
Commit message (Collapse)AuthorAgeFilesLines
* Merge GH #1189 Correct return value of botan_pk_op_verify_finishJack Lloyd2017-09-071-0/+2
|\
| * Correct return value of botan_pk_op_verify_finishJack Lloyd2017-09-061-0/+2
| | | | | | | | | | | | | | This function changed behavior in 0d403a3 see also GH #1187 Add new return code BOTAN_FFI_INVALID_VERIFIER and use it for both signature and bcrypt verification functions.
* | Add support for computing SM2 ZA field to FFIJack Lloyd2017-09-061-0/+6
|/ | | | This is a contribution from Ribose Inc.
* Add dh functions in ffiKonstantinos Kolelis2017-08-221-0/+36
|
* Change type of botan_scrub_mem from uint8_t* to void*Jack Lloyd2017-08-171-1/+1
| | | | | The underlying function already takes void* and it makes sense to pass non-byte buffers to this function.
* Add botan_hex_decode, botan_base64_encode, botan_base64_decode FFI funcsJack Lloyd2017-08-151-3/+20
|
* Add SM2 encryption to FFIJack Lloyd2017-08-041-0/+9
| | | | Also add hooks for keygen, etc
* Add test for FFI keywrap, and constify argsJack Lloyd2017-07-311-5/+5
|
* Split up ffi.cpp into several filesJack Lloyd2017-07-311-13/+10
| | | | | It was getting pretty big and would get worse over time, eg whenver I get around to adding TLS support.
* Merge GH #1128 Improve FFI exception safetyJack Lloyd2017-07-311-0/+8
|\
| * Better exception guarding in FFIJack Lloyd2017-07-251-0/+8
| | | | | | | | | | Based on PR #1097 but I wanted to decrease the verbosity of the resulting code.
* | Merge GH #1135 Add RFC 3394 keywrap to FFIJack Lloyd2017-07-311-0/+11
|\ \ | |/ |/|
| * Move declarations above TLS blockKrzysztof Kwiatkowski2017-07-301-11/+11
| |
| * FFI: Add interface for key wrapping with RFC 3394Krzysztof Kwiatkowski2017-06-291-0/+11
| |
* | Add SM2 signature schemeJack Lloyd2017-06-291-0/+9
|/ | | | | | From https://tools.ietf.org/html/draft-shen-sm2-ecdsa-02 This is a contribution from Ribose Inc (@riboseinc).
* FFI: Add functions specific to ECDSA and ECDHKrzysztof Kwiatkowski2017-06-101-4/+12
|
* FFI: Posibility to load EC pubkeyKrzysztof Kwiatkowski2017-06-101-0/+6
|
* FFI: Posibility to load EC privkeyKrzysztof Kwiatkowski2017-06-101-0/+7
|
* Merge GH #1066 Add Ed25519 signature schemeJack Lloyd2017-06-091-0/+16
|\
| * Ed25519 FFIJack Lloyd2017-06-081-0/+16
| |
* | fix doxygen build: hide method definitions with ifdefs where theZoltan Gyarmati2017-06-081-1/+1
|/ | | | | | | function declaration is already hidden, fix some param names in doxygen comments, fixes #1067 This work was sponsored by Ribose Inc (@riboseinc).
* Add FFI func botan_scrub_memJack Lloyd2017-05-291-0/+6
|
* Add botan_hash_copy_state FFI function.Daniel Wyatt2017-05-251-0/+8
|
* Add botan_pkcs_hash_id to FFIJack Lloyd2017-05-181-0/+2
| | | | | | Extend EMSA_PKCS1v15_Raw to optionally take a hash function for which the PKCS hash id is prefixed to the message as usual. This allows signing a message using PKCSv1.5 padding where the hash is provided externally.
* Fix botan_privkey_load_rsa misleading parameter names.Daniel Wyatt2017-05-131-1/+1
| | | | RSA_PrivateKey's constructor take p,q,e,d,n.
* Add FFI botan_hash_block_size.Daniel Wyatt2017-04-301-0/+8
|
* Support for ElGamal in FFI interfaceKrzysztof Kwiatkowski2017-04-141-1/+40
| | | | | | * Adds `botan_pubkey_load_elgamal' and `botan_privkey_load_elgamal' functions to FFI interface. * Adds test `ffi_test_elgamal'
* Small ffi fixesJack Lloyd2017-04-081-3/+5
| | | | | | | | | Constify arg to botan_pk_op_decrypt, and correct comment on botan_mp_is_positive, which returns true even for zero. Considered changing botan_mp_is_positive to match the comment, and return false for zero, but we already test that botan_mp_is_positive(0) == 1, so I left it as is and fixed the comment.
* Add block cipher interface to C APIJack Lloyd2017-04-041-0/+45
|
* Merge GH #964 Add various useful FFI functions for public key cryptoJack Lloyd2017-04-041-0/+32
|\
| * Add generic getters for PK parameters in C interfaceJack Lloyd2017-04-021-0/+32
| | | | | | | | Supporting RSA, DSA, and ECC. Add also DSA specific loading functions.
* | Add some more useful bigint functions to C interfaceJack Lloyd2017-03-311-23/+53
|/
* Merge GH #899 Add ability to specify iterations when encrypting a private keyJack Lloyd2017-03-291-0/+27
|\
| * Add ability to specify iterations when encrypting a private keyJack Lloyd2017-02-261-0/+27
| | | | | | | | GH #896
* | Expose BigInt API subset to C APIJack Lloyd2017-03-281-4/+116
| | | | | | | | Also adds RSA key constructors using BN
* | Expose PK::check_key functions in C interfaceJack Lloyd2017-03-271-1/+6
|/
* Document hash, rng, mac, pbkdf and kdf in ffi handbookRené Korthaus2017-02-191-34/+171
|
* Add more docs for ffiRené Korthaus2017-02-191-1/+31
|
* Add botan_ffi_supports_api functionJack Lloyd2017-01-041-0/+6
| | | | | | | | | | | | This lets us upgrade the FFI version over time and still allow applications to reliably detect if the current library binary supports their version. As an example, it would be useful to be able to add features to FFI sometime in 2.x. In that case, we would increase the value of the FFI API version, even though anything calling the old API would still work perfectly. Applications can verify at runtime the API they want to use is supported using this new call.
* Convert to using standard uintN_t integer typesJack Lloyd2016-12-181-3/+3
| | | | | | Renames a couple of functions for somewhat better name consistency, eg make_u32bit becomes make_uint32. The old typedefs remain for now since probably lots of application code uses them.
* 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
|