Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Add RAII versions of get_cipher_mode and get_aead | Jack Lloyd | 2018-04-07 | 1 | -1/+1 |
| | | | | See also #1526 | ||||
* | Ensure exception types are exported from DLL | Jack Lloyd | 2018-03-06 | 1 | -1/+1 |
| | | | | GH #983 | ||||
* | One comment fix and one formatting fix [ci skip] | René Korthaus | 2018-02-28 | 1 | -3/+4 |
| | |||||
* | Add functions to EC_Group for getting base point coordinates | Jack Lloyd | 2018-02-25 | 1 | -2/+2 |
| | |||||
* | Make FFI errors an enum, and add a function to translate to strings | Jack Lloyd | 2018-02-07 | 2 | -54/+71 |
| | |||||
* | Use shared representation of EC_Group | Jack Lloyd | 2018-01-31 | 1 | -4/+4 |
| | | | | Hide CurveGFp with an eye for eventual removal | ||||
* | Add botan_x509_cert_hostname_match | Jack Lloyd | 2018-01-30 | 2 | -0/+15 |
| | |||||
* | Comments from code review | Krzysztof Kwiatkowski | 2018-01-22 | 2 | -6/+71 |
| | |||||
* | FFI function for Elgamal key generation | Krzysztof Kwiatkowski | 2018-01-21 | 2 | -0/+19 |
| | | | | | Adds function for Elgamal key generation that allows usage of 'p' chosen by the caller. | ||||
* | FFI function for DSA key generation | Krzysztof Kwiatkowski | 2018-01-21 | 2 | -0/+19 |
| | | | | | Adds function for DSA key generation that allows usage of 'p' and 'q' chosen by the caller. | ||||
* | Make stream, block, hash and cipher mode base classes optional | Jack Lloyd | 2018-01-12 | 1 | -0/+3 |
| | |||||
* | Add explicit int return type declarations on FFI lambdas. | Jack Lloyd | 2017-12-28 | 13 | -53/+53 |
| | | | | | | Sun Studio gives a strange warning about this. This probably doesn't help actually compile under Sun Studio. But it doesn't hurt to be explicit. | ||||
* | Avoid deprecated functions in FFI | Jack Lloyd | 2017-11-14 | 1 | -3/+3 |
| | |||||
* | Simplify ffi call overhead | Jack Lloyd | 2017-10-11 | 5 | -45/+22 |
| | | | | Notable reductions in code size, stack size and function call overhead. | ||||
* | Add static_cast to avoid conversion warning | Jack Lloyd | 2017-10-03 | 1 | -1/+2 |
| | | | | | I guess we're in trouble if we add any block ciphers with size >= 2^31 Probably fine. | ||||
* | Add wrappers for reinterpret_cast between char* and uint8_t* | Jack Lloyd | 2017-10-03 | 2 | -5/+6 |
| | | | | | | | Generally speaking reinterpret_cast is sketchy stuff. But the special case of char*/uint8_t* is both common and safe. By isolating those, the remaining (likely sketchy) cases are easier to grep for. | ||||
* | Remove various unused variables | Jack Lloyd | 2017-10-02 | 1 | -1/+0 |
| | | | | Sonar finds | ||||
* | Avoid using namespace in FFI headers | Jack Lloyd | 2017-10-02 | 5 | -7/+3 |
| | | | | Internal only headers but Sonar doesn't know that | ||||
* | Another FFI struct vs class fix | Jack Lloyd | 2017-09-30 | 1 | -1/+1 |
| | |||||
* | FFI objects have to be structs because we expose them to C | Jack Lloyd | 2017-09-30 | 2 | -5/+4 |
| | |||||
* | Use class instead of struct for objects with member functions | Jack Lloyd | 2017-09-30 | 2 | -5/+6 |
| | | | | Flagged by Sonar and quite reasonable | ||||
* | Further header cleanups | Jack Lloyd | 2017-09-28 | 1 | -1/+2 |
| | |||||
* | Apply final annotations to the library also | Jack Lloyd | 2017-09-22 | 2 | -3/+3 |
| | | | | | Done by a perl script which converted all classes to final, followed by selective reversion where it caused compilation failures. | ||||
* | More include header cleanups | Jack Lloyd | 2017-09-21 | 1 | -0/+1 |
| | |||||
* | Change header guard format to BOTAN_FOO_H_ | Jack Lloyd | 2017-09-20 | 5 | -10/+10 |
| | | | | | | ISO C++ reserves names with double underscores in them Closes #512 | ||||
* | Complete the final annotation changes | Jack Lloyd | 2017-09-19 | 1 | -47/+47 |
| | |||||
* | More annotations | Jack Lloyd | 2017-09-19 | 1 | -275/+298 |
| | |||||
* | 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 |
|\ \ | |/ |/| |