Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Use constant_time_compare instead of same_mem | Jack Lloyd | 2017-09-16 | 2 | -1/+11 |
| | | | | New name, same great operation | ||||
* | Fix loading of plaintext PKCS#8 private keys | René Korthaus | 2017-09-08 | 1 | -5/+10 |
| | | | | | We fixed this in the C++ API in GH #381, but apparently not in ffi. Also adds the missing tests. | ||||
* | Fix invalid comparison, potential segfault on invalid type | Jack Lloyd | 2017-09-07 | 1 | -1/+2 |
| | | | | Found by Coverity | ||||
* | Merge GH #1189 Correct return value of botan_pk_op_verify_finish | Jack Lloyd | 2017-09-07 | 3 | -2/+4 |
|\ | |||||
| * | Correct return value of botan_pk_op_verify_finish | Jack Lloyd | 2017-09-06 | 3 | -2/+4 |
| | | | | | | | | | | | | | | 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 | 2 | -0/+42 |
|/ | | | | This is a contribution from Ribose Inc. | ||||
* | More MSVC warnings fixes | Jack Lloyd | 2017-08-31 | 1 | -1/+1 |
| | |||||
* | Fix various MSVC warnings | Jack Lloyd | 2017-08-31 | 2 | -2/+2 |
| | | | | Based on VC2017 output | ||||
* | Simplify botan_privkey_create_XXX | Jack Lloyd | 2017-08-22 | 1 | -87/+16 |
| | | | | All of these can just forward to botan_privkey_create | ||||
* | Add dh functions in ffi | Konstantinos Kolelis | 2017-08-22 | 2 | -0/+96 |
| | |||||
* | Change type of botan_scrub_mem from uint8_t* to void* | Jack Lloyd | 2017-08-17 | 2 | -2/+2 |
| | | | | | The underlying function already takes void* and it makes sense to pass non-byte buffers to this function. | ||||
* | Update FFI version | Jack Lloyd | 2017-08-15 | 2 | -5/+13 |
| | | | | | | | Also fix botan_ffi_supports_api to return true for any supported version (2.0, 2.1/2.2, and 2.3). Really 2.2 should have had its own FFI version code since there were already many FFI API additions in that release. | ||||
* | Add botan_hex_decode, botan_base64_encode, botan_base64_decode FFI funcs | Jack Lloyd | 2017-08-15 | 2 | -3/+52 |
| | |||||
* | Add SM2 encryption to FFI | Jack Lloyd | 2017-08-04 | 2 | -0/+50 |
| | | | | Also add hooks for keygen, etc | ||||
* | Add virtual destructor to FFI botan_struct | Jack Lloyd | 2017-08-03 | 1 | -1/+1 |
| | | | | | | As we do inherit from it, and delete through the base pointer. Found by Coverity scanner. | ||||
* | Fix some maintainer mode warnings | Jack Lloyd | 2017-08-03 | 1 | -6/+6 |
| | |||||
* | Add test for FFI keywrap, and constify args | Jack Lloyd | 2017-07-31 | 2 | -9/+9 |
| | |||||
* | Split up ffi.cpp into several files | Jack Lloyd | 2017-07-31 | 19 | -2314/+2552 |
| | | | | | 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 | 2 | -701/+355 |
|\ | |||||
| * | Add missing return in ffi_delete_object | Jack Lloyd | 2017-07-25 | 1 | -4/+5 |
| | | | | | | | | | | Somehow this still passed all the tests, downside of 0 as the success return I suppose. | ||||
| * | In FFI, check the object magic before deleting | Jack Lloyd | 2017-07-25 | 1 | -30/+42 |
| | | | | | | | | | | Previously any X_destroy function would just delete its arg regardless of whatever the application passed in. | ||||
| * | Better exception guarding in FFI | Jack Lloyd | 2017-07-25 | 2 | -671/+312 |
| | | | | | | | | | | 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 | 2 | -0/+57 |
|\ \ | |/ |/| | |||||
| * | 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 | 2 | -0/+57 |
| | | |||||
* | | Add SM2 signature scheme | Jack Lloyd | 2017-06-29 | 2 | -0/+65 |
| | | | | | | | | | | | | From https://tools.ietf.org/html/draft-shen-sm2-ecdsa-02 This is a contribution from Ribose Inc (@riboseinc). | ||||
* | | ffi: Catch exceptions in botan_mp_init | Daniel Wyatt | 2017-06-28 | 1 | -3/+23 |
|/ | |||||
* | FFI: Comments from code review #1074 | Krzysztof Kwiatkowski | 2017-06-12 | 1 | -28/+65 |
| | |||||
* | FFI: privkey_load_ec and pubkey_load_ec should be available only if ECDSA or ↵ | Krzysztof Kwiatkowski | 2017-06-10 | 1 | -2/+2 |
| | | | | ECDH is compiled | ||||
* | FFI: ECDSA an ECDH keys loading from mpi. Cleanup | Krzysztof Kwiatkowski | 2017-06-10 | 1 | -77/+90 |
| | | | | | * Be more C++ and use templates instead of string comparision * Move private functions to namespace at the top of the file | ||||
* | FFI: Add functions specific to ECDSA and ECDH | Krzysztof Kwiatkowski | 2017-06-10 | 2 | -13/+74 |
| | |||||
* | FFI: Posibility to load EC pubkey | Krzysztof Kwiatkowski | 2017-06-10 | 2 | -1/+33 |
| | |||||
* | FFI: Posibility to load EC privkey | Krzysztof Kwiatkowski | 2017-06-10 | 2 | -0/+31 |
| | |||||
* | Merge GH #1066 Add Ed25519 signature scheme | Jack Lloyd | 2017-06-09 | 2 | -0/+114 |
|\ | |||||
| * | Fix FFI build when Ed25519 disabled | Jack Lloyd | 2017-06-09 | 1 | -1/+11 |
| | | |||||
| * | Add FFI test and test data from PGP draft | Jack Lloyd | 2017-06-08 | 1 | -1/+1 |
| | | |||||
| * | Ed25519 FFI | Jack Lloyd | 2017-06-08 | 2 | -0/+104 |
| | | |||||
* | | Fix compile error in FFI when RSA disabled | Jack Lloyd | 2017-06-09 | 1 | -1/+1 |
| | | | | | | | | [ci skip] | ||||
* | | 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 | 2 | -0/+12 |
| | |||||
* | Add botan_hash_copy_state FFI function. | Daniel Wyatt | 2017-05-25 | 2 | -0/+14 |
| | |||||
* | Merge GH #1051 Extensions for PKCSv1.5 signature formatting | Jack Lloyd | 2017-05-19 | 2 | -0/+23 |
|\ | |||||
| * | Add botan_pkcs_hash_id to FFI | Jack Lloyd | 2017-05-18 | 2 | -0/+23 |
| | | | | | | | | | | | | 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. | ||||
* | | Maintainer mode fixes | Jack Lloyd | 2017-05-18 | 1 | -4/+4 |
|/ | |||||
* | Fix botan_privkey_load_rsa misleading parameter names. | Daniel Wyatt | 2017-05-13 | 2 | -4/+4 |
| | | | | RSA_PrivateKey's constructor take p,q,e,d,n. | ||||
* | Merge GH #1036 Add FFI botan_hash_block_size | Jack Lloyd | 2017-05-03 | 2 | -0/+13 |
|\ | |||||
| * | Add FFI botan_hash_block_size. | Daniel Wyatt | 2017-04-30 | 2 | -0/+13 |
| | | |||||
* | | Fix botan_bcrypt_is_valid return code. | Daniel Wyatt | 2017-04-29 | 1 | -2/+1 |
|/ | | | | | Currently it returns 0 on success and BOTAN_FFI_ERROR_EXCEPTION_THROWN otherwise, which is a bit inaccurate and not consistent with the rest of the FFI interface. | ||||
* | Add explicit return to FFI botan_mp_to_str. | Daniel Wyatt | 2017-04-26 | 1 | -1/+1 |
| | | | | This way we know if the buffer is insufficient. | ||||
* | Fix Clang warning in ffi | Jack Lloyd | 2017-04-19 | 1 | -121/+117 |
| | | | | | | | The do_get_field functions had C linkage but returned BigInt, which is a warning under Clang at least. Move these functions up outside of the extern "C" block, and rename them to not match the FFI function since these are not publically accessible APIs, just helper functions. |