Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | 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 |
|\ \ | |/ |/| | |||||
| * | 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 |
| | |