aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/test_ffi.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Update test for new error returnJack Lloyd2017-10-111-1/+1
|
* Fix test error if mceies disabledJack Lloyd2017-09-291-3/+5
| | | | [ci skip]
* Further header cleanupsJack Lloyd2017-09-281-0/+1
|
* Further build/test fixes for restricted configurationsJack Lloyd2017-09-241-0/+4
|
* Add final annotations as appropriate in the test codeJack Lloyd2017-09-221-1/+1
|
* Fix the SM2 FFI testJack Lloyd2017-09-211-3/+4
|
* Fix leaks in FFI testsJack Lloyd2017-09-201-0/+6
|
* Fix bogus ffi testJack Lloyd2017-09-101-1/+1
| | | | Caught by a warning from VC
* Fix loading of plaintext PKCS#8 private keysRené Korthaus2017-09-081-3/+10
| | | | | We fixed this in the C++ API in GH #381, but apparently not in ffi. Also adds the missing tests.
* Merge GH #1189 Correct return value of botan_pk_op_verify_finishJack Lloyd2017-09-071-9/+9
|\
| * Correct return value of botan_pk_op_verify_finishJack Lloyd2017-09-061-9/+9
| | | | | | | | | | | | | | 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/+8
|/ | | | This is a contribution from Ribose Inc.
* More MSVC warnings fixesJack Lloyd2017-08-311-2/+2
|
* Simplify botan_privkey_create_XXXJack Lloyd2017-08-221-2/+2
| | | | All of these can just forward to botan_privkey_create
* Add dh functions in ffiKonstantinos Kolelis2017-08-221-7/+128
|
* Add botan_hex_decode, botan_base64_encode, botan_base64_decode FFI funcsJack Lloyd2017-08-151-0/+30
|
* FFI test must search test data relative to data dir.Alexander Bluhm2017-08-131-1/+1
| | | | | | | The Test::data_file() method adds the current data dir prefix to the test data path so that it can be overwritten with the --data-dir option. This was missing in the ffi test and could result in a botan_x509_cert_load_file exception.
* A few more FFI testsJack Lloyd2017-08-071-1/+39
|
* Add SM2 encryption to FFIJack Lloyd2017-08-041-1/+72
| | | | Also add hooks for keygen, etc
* Add test for FFI keywrap, and constify argsJack Lloyd2017-07-311-0/+37
|
* Change arbitrary privkey size to a smaller arbitrary number.Jack Lloyd2017-07-241-1/+1
| | | | | | GH #1122 [ci skip]
* Add SM2 signature schemeJack Lloyd2017-06-291-0/+92
| | | | | | From https://tools.ietf.org/html/draft-shen-sm2-ecdsa-02 This is a contribution from Ribose Inc (@riboseinc).
* FFI: ECDSA an ECDH keys loading from mpi. CleanupKrzysztof Kwiatkowski2017-06-101-6/+26
| | | | | * 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 ECDHKrzysztof Kwiatkowski2017-06-101-2/+2
|
* FFI: Posibility to load EC pubkeyKrzysztof Kwiatkowski2017-06-101-7/+17
|
* FFI: Posibility to load EC privkeyKrzysztof Kwiatkowski2017-06-101-47/+53
|
* Add FFI test and test data from PGP draftJack Lloyd2017-06-081-0/+68
|
* Add FFI func botan_scrub_memJack Lloyd2017-05-291-0/+4
|
* Add botan_hash_copy_state FFI function.Daniel Wyatt2017-05-251-0/+20
|
* Add botan_pkcs_hash_id to FFIJack Lloyd2017-05-181-0/+27
| | | | | | 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.
* Merge GH #1036 Add FFI botan_hash_block_sizeJack Lloyd2017-05-031-0/+5
|\
| * Add FFI botan_hash_block_size.Daniel Wyatt2017-04-301-0/+5
| |
* | Fix some ugly line breaks from #980 in test_ffiJack Lloyd2017-05-031-25/+26
| |
* | Reformat code with astyle + fix code styleTomasz Frydrych2017-05-011-86/+111
|/
* Add explicit return to FFI botan_mp_to_str.Daniel Wyatt2017-04-261-0/+3
| | | | This way we know if the buffer is insufficient.
* Merge GH #1006 Fix FFI cipher interface (see also GH #1003)Jack Lloyd2017-04-151-65/+205
|\
| * Add tests of GCM and CTR modeJack Lloyd2017-04-141-64/+205
| |
| * Fix FFI cipher interfaceJack Lloyd2017-04-141-11/+10
| | | | | | | | | | | | Was totally broken, when not encrypting in one shot. (GH #1003) Enable the test, which had been commented out :(
* | Support for ElGamal in FFI interfaceKrzysztof Kwiatkowski2017-04-141-0/+76
|/ | | | | | * Adds `botan_pubkey_load_elgamal' and `botan_privkey_load_elgamal' functions to FFI interface. * Adds test `ffi_test_elgamal'
* Add block cipher interface to C APIJack Lloyd2017-04-041-0/+37
|
* Merge GH #964 Add various useful FFI functions for public key cryptoJack Lloyd2017-04-041-0/+128
|\
| * Implement botan_pubkey_loadJack Lloyd2017-04-031-1/+6
| | | | | | | | Declared in header, but was not defined. :(
| * Fix botan_privkey_create if the desired algorithm was not available in buildJack Lloyd2017-04-031-1/+18
| | | | | | | | | | | | If DSA was disabled, caused memory corruption/crashes due to combination of uninitialized object and the tests not checking return values as carefully as they should.
| * Add generic getters for PK parameters in C interfaceJack Lloyd2017-04-021-0/+106
| | | | | | | | Supporting RSA, DSA, and ECC. Add also DSA specific loading functions.
* | Add some more useful bigint functions to C interfaceJack Lloyd2017-03-311-0/+50
|/
* Merge GH #899 Add ability to specify iterations when encrypting a private keyJack Lloyd2017-03-291-20/+8
|\
| * Add ability to specify iterations when encrypting a private keyJack Lloyd2017-02-261-20/+8
| | | | | | | | GH #896
* | Expose BigInt API subset to C APIJack Lloyd2017-03-281-7/+226
| | | | | | | | Also adds RSA key constructors using BN
* | Expose PK::check_key functions in C interfaceJack Lloyd2017-03-271-0/+3
|/