Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Merge GH #1189 Correct return value of botan_pk_op_verify_finish | Jack Lloyd | 2017-09-07 | 1 | -0/+2 |
|\ | |||||
| * | Correct return value of botan_pk_op_verify_finish | Jack Lloyd | 2017-09-06 | 1 | -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 FFI | Jack Lloyd | 2017-09-06 | 1 | -0/+6 |
|/ | | | | This is a contribution from Ribose Inc. | ||||
* | Add dh functions in ffi | Konstantinos Kolelis | 2017-08-22 | 1 | -0/+36 |
| | |||||
* | Change type of botan_scrub_mem from uint8_t* to void* | Jack Lloyd | 2017-08-17 | 1 | -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 funcs | Jack Lloyd | 2017-08-15 | 1 | -3/+20 |
| | |||||
* | Add SM2 encryption to FFI | Jack Lloyd | 2017-08-04 | 1 | -0/+9 |
| | | | | Also add hooks for keygen, etc | ||||
* | Add test for FFI keywrap, and constify args | Jack Lloyd | 2017-07-31 | 1 | -5/+5 |
| | |||||
* | Split up ffi.cpp into several files | Jack Lloyd | 2017-07-31 | 1 | -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 safety | Jack Lloyd | 2017-07-31 | 1 | -0/+8 |
|\ | |||||
| * | Better exception guarding in FFI | Jack Lloyd | 2017-07-25 | 1 | -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 FFI | Jack Lloyd | 2017-07-31 | 1 | -0/+11 |
|\ \ | |/ |/| | |||||
| * | Move declarations above TLS block | Krzysztof Kwiatkowski | 2017-07-30 | 1 | -11/+11 |
| | | |||||
| * | FFI: Add interface for key wrapping with RFC 3394 | Krzysztof Kwiatkowski | 2017-06-29 | 1 | -0/+11 |
| | | |||||
* | | Add SM2 signature scheme | Jack Lloyd | 2017-06-29 | 1 | -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 ECDH | Krzysztof Kwiatkowski | 2017-06-10 | 1 | -4/+12 |
| | |||||
* | FFI: Posibility to load EC pubkey | Krzysztof Kwiatkowski | 2017-06-10 | 1 | -0/+6 |
| | |||||
* | FFI: Posibility to load EC privkey | Krzysztof Kwiatkowski | 2017-06-10 | 1 | -0/+7 |
| | |||||
* | Merge GH #1066 Add Ed25519 signature scheme | Jack Lloyd | 2017-06-09 | 1 | -0/+16 |
|\ | |||||
| * | Ed25519 FFI | Jack Lloyd | 2017-06-08 | 1 | -0/+16 |
| | | |||||
* | | fix doxygen build: hide method definitions with ifdefs where the | Zoltan Gyarmati | 2017-06-08 | 1 | -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_mem | Jack Lloyd | 2017-05-29 | 1 | -0/+6 |
| | |||||
* | Add botan_hash_copy_state FFI function. | Daniel Wyatt | 2017-05-25 | 1 | -0/+8 |
| | |||||
* | Add botan_pkcs_hash_id to FFI | Jack Lloyd | 2017-05-18 | 1 | -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 Wyatt | 2017-05-13 | 1 | -1/+1 |
| | | | | RSA_PrivateKey's constructor take p,q,e,d,n. | ||||
* | Add FFI botan_hash_block_size. | Daniel Wyatt | 2017-04-30 | 1 | -0/+8 |
| | |||||
* | Support for ElGamal in FFI interface | Krzysztof Kwiatkowski | 2017-04-14 | 1 | -1/+40 |
| | | | | | | * Adds `botan_pubkey_load_elgamal' and `botan_privkey_load_elgamal' functions to FFI interface. * Adds test `ffi_test_elgamal' | ||||
* | Small ffi fixes | Jack Lloyd | 2017-04-08 | 1 | -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 API | Jack Lloyd | 2017-04-04 | 1 | -0/+45 |
| | |||||
* | Merge GH #964 Add various useful FFI functions for public key crypto | Jack Lloyd | 2017-04-04 | 1 | -0/+32 |
|\ | |||||
| * | Add generic getters for PK parameters in C interface | Jack Lloyd | 2017-04-02 | 1 | -0/+32 |
| | | | | | | | | Supporting RSA, DSA, and ECC. Add also DSA specific loading functions. | ||||
* | | Add some more useful bigint functions to C interface | Jack Lloyd | 2017-03-31 | 1 | -23/+53 |
|/ | |||||
* | Merge GH #899 Add ability to specify iterations when encrypting a private key | Jack Lloyd | 2017-03-29 | 1 | -0/+27 |
|\ | |||||
| * | Add ability to specify iterations when encrypting a private key | Jack Lloyd | 2017-02-26 | 1 | -0/+27 |
| | | | | | | | | GH #896 | ||||
* | | Expose BigInt API subset to C API | Jack Lloyd | 2017-03-28 | 1 | -4/+116 |
| | | | | | | | | Also adds RSA key constructors using BN | ||||
* | | Expose PK::check_key functions in C interface | Jack Lloyd | 2017-03-27 | 1 | -1/+6 |
|/ | |||||
* | Document hash, rng, mac, pbkdf and kdf in ffi handbook | René Korthaus | 2017-02-19 | 1 | -34/+171 |
| | |||||
* | Add more docs for ffi | René Korthaus | 2017-02-19 | 1 | -1/+31 |
| | |||||
* | Add botan_ffi_supports_api function | Jack Lloyd | 2017-01-04 | 1 | -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 types | Jack Lloyd | 2016-12-18 | 1 | -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.h | Jack Lloyd | 2016-10-20 | 1 | -2/+5 |
| | |||||
* | add label parameter to KDF::derive_key | Kai Michaelis | 2016-05-19 | 1 | -1/+2 |
| | |||||
* | Update and consolidate the test framework. | Jack Lloyd | 2015-11-11 | 1 | -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 Python3 | Jack Lloyd | 2015-10-20 | 1 | -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 test | Jack Lloyd | 2015-10-03 | 1 | -1/+3 |
| | |||||
* | Add McEliece keygen and MCEIES to C89 API. Plus random fiddling | Jack Lloyd | 2015-10-01 | 1 | -24/+83 |
| | |||||
* | Export X.509 certificates to ffi and python | Jack Lloyd | 2015-10-01 | 1 | -11/+114 |
| | | | | Missing path validation, probably other things | ||||
* | Add OCaml binding for RNG and hash functions. Add hex_encode to FFI | Jack Lloyd | 2015-06-28 | 1 | -0/+47 |
| | |||||
* | Fix Python cipher update_granularity() and default_nonce_length() | lloyd | 2015-03-09 | 1 | -0/+1 |
| | | | | which were completely broken. Pointed out by Uri B on mailing list. | ||||
* | Fix decrypt in FFI/Python. Github issue 53 | lloyd | 2015-03-01 | 1 | -0/+4 |
| |