Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Implement cipher modes with OpenSSL. | Alexander Bluhm | 2017-04-25 | 4 | -5/+253 |
| | | | | | | Use the OpenSSL provider to implement AES CBC mode. Also pass down the provider to the encryption layer if there is no matching OpenSSL mode. Add a test with empty nonce. | ||||
* | 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. | ||||
* | Use 3 arg BOTAN_UNUSED in a codepath that is compiled often | Simon Warta | 2017-04-17 | 1 | -3/+1 |
| | | | | | just to verify the implementation works fine across platforms and compilers | ||||
* | Mark correct variables unused in FFI botan_{pub,priv}key_load_elgamal | Simon Warta | 2017-04-16 | 1 | -7/+2 |
| | | | | Closes #1011 | ||||
* | Improve unused handling in ffi methods | Simon Warta | 2017-04-16 | 1 | -16/+8 |
| | | | | | Make sure `key` is not touched when method is not implemented. Use one line UNUSED statements | ||||
* | Let BOTAN_UNUSED take between 1 and 9 arguments | Simon Warta | 2017-04-16 | 1 | -2/+26 |
| | |||||
* | Merge GH #1006 Fix FFI cipher interface (see also GH #1003) | Jack Lloyd | 2017-04-15 | 1 | -0/+2 |
|\ | |||||
| * | Fix FFI cipher interface | Jack Lloyd | 2017-04-14 | 1 | -0/+2 |
| | | | | | | | | | | | | Was totally broken, when not encrypting in one shot. (GH #1003) Enable the test, which had been commented out :( | ||||
* | | Guard include of ElGamal header | Jack Lloyd | 2017-04-15 | 1 | -1/+4 |
| | | |||||
* | | Support for ElGamal in FFI interface | Krzysztof Kwiatkowski | 2017-04-14 | 2 | -1/+92 |
|/ | | | | | | * Adds `botan_pubkey_load_elgamal' and `botan_privkey_load_elgamal' functions to FFI interface. * Adds test `ffi_test_elgamal' | ||||
* | Merge GH #989 Avoid recursion in BER_Decoder::get_next_object | Jack Lloyd | 2017-04-13 | 1 | -11/+16 |
|\ | |||||
| * | Avoid recursion in BER_Decoder::get_next_object | Jack Lloyd | 2017-04-09 | 1 | -11/+16 |
| | | |||||
* | | fix missing flush in DataSink_Stream::end_msg | Philippe Lieser | 2017-04-10 | 2 | -0/+12 |
|/ | |||||
* | Small ffi fixes | Jack Lloyd | 2017-04-08 | 2 | -4/+6 |
| | | | | | | | | | 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. | ||||
* | Merge GH #979 Doc fix [ci skip] | Jack Lloyd | 2017-04-05 | 1 | -1/+1 |
|\ | |||||
| * | Fix description of coprime parameter to random_prime() [ci skip] | René Korthaus | 2017-04-05 | 1 | -1/+1 |
| | | | | | | | | Found during a review by BSI | ||||
* | | Merge GH #966 Add SM3 hash function | Jack Lloyd | 2017-04-05 | 4 | -0/+334 |
|\ \ | |/ |/| | |||||
| * | Re-roll two loops in SM3 hash compression function that are causing test ↵ | Daniel Wyatt | 2017-04-04 | 1 | -94/+32 |
| | | | | | | | | failures for some compilers. | ||||
| * | Unroll loops in SM3 hash compress_n. | Daniel Wyatt | 2017-04-03 | 2 | -65/+241 |
| | | |||||
| * | Fix info.txt date and update to new format. | Daniel Wyatt | 2017-04-03 | 1 | -1/+3 |
| | | |||||
| * | Merge remote-tracking branch 'origin/master' into sm3 | Daniel Wyatt | 2017-04-03 | 177 | -191/+538 |
| |\ | |||||
| * | | Add SM3 hash function | Daniel Wyatt | 2017-04-03 | 4 | -0/+218 |
| | | | |||||
* | | | Merge GH #978 Fix bad read in X509 DN comparisons (CVE-2017-2801) | Jack Lloyd | 2017-04-04 | 1 | -0/+2 |
|\ \ \ | |||||
| * | | | Fix X509 DN comparisons | Jack Lloyd | 2017-04-04 | 1 | -0/+2 |
| | | | | | | | | | | | | | | | | CVE-2017-2801 | ||||
* | | | | Merge GH #900 Add ability to search by X509 DN hash | Jack Lloyd | 2017-04-04 | 8 | -39/+95 |
|\ \ \ \ | |||||
| * | | | | Add certificate store lookup by subject DN hash | Nuno Goncalves | 2017-04-03 | 4 | -0/+38 |
| | | | | | | | | | | | | | | | | | | | | Signed-off-by: Nuno Goncalves <[email protected]> | ||||
| * | | | | Add X509 issuer and subject DN hash methods | Nuno Goncalves | 2017-04-03 | 2 | -0/+24 |
| | | | | | | | | | | | | | | | | | | | | Signed-off-by: Nuno Goncalves <[email protected]> | ||||
| * | | | | Fix comments | Nuno Goncalves | 2017-04-03 | 1 | -2/+2 |
| | | | | | | | | | | | | | | | | | | | | Signed-off-by: Nuno Goncalves <[email protected]> | ||||
| * | | | | Throw exception for Not_Implemented | Nuno Goncalves | 2017-04-03 | 1 | -2/+1 |
| | | | | | | | | | | | | | | | | | | | | Signed-off-by: Nuno Goncalves <[email protected]> | ||||
| * | | | | Refactor find_cert_by_pubkey_sha1 to reuse hash object | Nuno Goncalves | 2017-04-03 | 1 | -2/+6 |
| | | | | | | | | | | | | | | | | | | | | Signed-off-by: Nuno Goncalves <[email protected]> | ||||
| * | | | | X509_CA: constantify X509_CA::sign_request | Nuno Goncalves | 2017-04-03 | 2 | -2/+2 |
| | | | | | | | | | | | | | | | | | | | | Signed-off-by: Nuno Goncalves <[email protected]> | ||||
| * | | | | Refactor and modernize files to be edited | Nuno Goncalves | 2017-04-03 | 1 | -33/+24 |
| | |_|/ | |/| | | | | | | | | | | Signed-off-by: Nuno Goncalves <[email protected]> | ||||
* | | | | Merge GH #977 Add block cipher interface to C API | Jack Lloyd | 2017-04-04 | 2 | -0/+122 |
|\ \ \ \ | |_|/ / |/| | | | |||||
| * | | | Add block cipher interface to C API | Jack Lloyd | 2017-04-04 | 2 | -0/+122 |
| | | | | |||||
* | | | | Merge GH #974 Add wrapper for make_unique | Jack Lloyd | 2017-04-04 | 2 | -0/+78 |
|\ \ \ \ | |/ / / |/| | | | |||||
| * | | | add Botan::make_unique | Tomasz Frydrych | 2017-04-04 | 2 | -0/+78 |
| |/ / | |||||
* | | | Remove stray semicolon | Jack Lloyd | 2017-04-04 | 1 | -1/+1 |
| | | | |||||
* | | | Merge GH #885 Change HMAC_DRBG::security_level to match NIST SP800-90A | Jack Lloyd | 2017-04-04 | 2 | -5/+21 |
|\ \ \ | |||||
| * | | | Follow NIST SP 800-57 for HMAC_DRBG security level | René Korthaus | 2017-04-03 | 1 | -3/+12 |
| | | | | |||||
| * | | | Change security_strength of HMAC_DRBG | René Korthaus | 2017-04-03 | 2 | -5/+12 |
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Looking into SP808-90A, it mentions that the max security strength is the security strength of the hash function for pre-image resistance. The current implementation however always only uses half of the output length, therefore only providing half of the security strength possible. However, SP800-90A supports only up to 256 bit security strength, so we fix it to this upper limit. In a second change, add_entropy() now also resets the reseed counter if enough entropy input provided. | ||||
* | | | Merge GH #965 Various code cleanups | Jack Lloyd | 2017-04-04 | 91 | -238/+223 |
|\ \ \ | |||||
| * | | | Content: | Tomasz Frydrych | 2017-04-03 | 91 | -238/+223 |
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | * fixes for deprecated constructions in c++11 and later (explicit rule of 3/5 or implicit rule of 0 and other violations) * `default` specifier instead of `{}` in some places(probably all) * removal of unreachable code (for example `return` after `throw`) * removal of compilation unit only visible, but not used functions * fix for `throw()` specifier - used instead `BOTAN_NOEXCEPT` * removed not needed semicolons | ||||
* | | | Merge GH #964 Add various useful FFI functions for public key crypto | Jack Lloyd | 2017-04-04 | 2 | -81/+307 |
|\ \ \ | |/ / |/| | | |||||
| * | | Implement botan_pubkey_load | Jack Lloyd | 2017-04-03 | 1 | -0/+24 |
| | | | | | | | | | | | | Declared in header, but was not defined. :( | ||||
| * | | Fix botan_privkey_create if the desired algorithm was not available in build | Jack Lloyd | 2017-04-03 | 1 | -8/+27 |
| | | | | | | | | | | | | | | | | | | 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 interface | Jack Lloyd | 2017-04-02 | 2 | -75/+258 |
| | | | | | | | | | | | | Supporting RSA, DSA, and ECC. Add also DSA specific loading functions. | ||||
* | | | Merge GH #962 More configure.py refactorings/improvements | Jack Lloyd | 2017-04-03 | 177 | -191/+538 |
|\ \ \ | |_|/ |/| | | |||||
| * | | Remove "Dirty hack" for multiple defines in lex_me_harder() | Simon Warta | 2017-04-02 | 177 | -191/+538 |
| |/ | |||||
* | | Merge GH #961 Add some more BigInt functions to C API | Jack Lloyd | 2017-04-02 | 2 | -47/+137 |
|\ \ | |/ |/| | |||||
| * | Add some more useful bigint functions to C interface | Jack Lloyd | 2017-03-31 | 2 | -47/+137 |
| | |