Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Merge GH #1769 Support TLS signature padding strings in PKCS11 mapping | Jack Lloyd | 2018-12-10 | 1 | -0/+10 |
|\ | |||||
| * | Remove EMSA1 encodings from p11 sign mechanisms map | Hannes Rantzsch | 2018-12-10 | 1 | -5/+0 |
| | | |||||
| * | Extend the SignMechanisms map for Signature_Scheme padding strings | Hannes Rantzsch | 2018-12-04 | 1 | -0/+15 |
| | | | | | | | | | | | | This addresses #730. The tls_sign_message callback was unable to handle emsa strings produced as padding strings for TLS::Signature_Scheme, due to inconsistent naming (mostly between EMSA3 and EMSA_PKCS1). | ||||
* | | Fix a memory leak in OpenSSL ECDH | Jack Lloyd | 2018-12-03 | 1 | -3/+5 |
|/ | |||||
* | Make exceptions easier to translate to error codes | Jack Lloyd | 2018-11-23 | 12 | -75/+92 |
| | | | | | | | | | | | Avoid throwing base Botan::Exception type, as it is difficult to determine what the error is in that case. Add Exception::error_code and Exception::error_type which allows (for error code) more information about the error and (for error type) allows knowing the error type without requiring a sequence of catches. See GH #1742 | ||||
* | Fix type error | Jack Lloyd | 2018-11-21 | 1 | -1/+1 |
| | | | | Closes #1747 | ||||
* | Add typecast_copy | Jack Lloyd | 2018-11-17 | 1 | -2/+2 |
| | | | | | Wraps memcpy in the cases where we really are doing a type conversion using memcpy | ||||
* | Avoid calling memset, memcpy within library code | Jack Lloyd | 2018-11-17 | 7 | -10/+10 |
| | | | | | | | | | Prefer using wrappers in mem_utils for this. Current exception is where memcpy is being used to convert between two different types, since copy_mem requires input and output pointers have the same type. There should be a new function to handle conversion-via-memcpy operation. | ||||
* | Switch LibreSSL provider to OpenSSL 1.1 API | Alexander Bluhm | 2018-11-07 | 3 | -6/+6 |
| | | | | | | | LibreSSL 2.7 has added parts of the OpenSSL 1.1 API. Remove the defined(LIBRESSL_VERSION_NUMBER) as it is not necessary anymore. Switch to the newer API unconditionally, older LibreSSL version are not supported. | ||||
* | move instead of copy | rumcajs | 2018-10-14 | 1 | -1/+1 |
| | |||||
* | Resolve a leak in OpenSSL ECDSA verification for old OpenSSL | Jack Lloyd | 2018-10-03 | 1 | -5/+13 |
| | | | | | | The code was using the 1.0 API incorrectly and causing a leak. https://github.com/riboseinc/rnp/issues/757 | ||||
* | Remove support for Visual C++ 2013 | Jack Lloyd | 2018-10-01 | 6 | -6/+6 |
| | | | | Closes GH #1557 | ||||
* | Fix more MSVC warnings | Jack Lloyd | 2018-10-01 | 1 | -7/+31 |
| | |||||
* | Fix more MSVC warnings | Jack Lloyd | 2018-10-01 | 3 | -16/+39 |
| | |||||
* | Move UUID to utils, test it, and fix bugs. | Jack Lloyd | 2018-09-30 | 2 | -106/+1 |
| | | | | Fixes #1695 | ||||
* | Refactor mode tests, and correct bugs found | Jack Lloyd | 2018-09-29 | 4 | -7/+30 |
| | | | | | | | | | | | | | | | | | | | Several problems in CBC found by adding tests - If you set a key, then set a nonce, then set a new key, you could encrypt without setting a new nonce. - It was possible to call CBC finish without setting a nonce, which would crash. - If you had an CBC decryption object, set a key, set a nonce, then reset message state, it should throw because no nonce is set. Instead it would carry on using an all-zero nonce. Disable CommonCrypto with PKCS7 padding as it seems to have some problem that I cannot figure out from the build logs. This work sponsored by Ribose Inc | ||||
* | Use new CAST-128 specific feature macro here | Jack Lloyd | 2018-09-15 | 1 | -1/+1 |
| | |||||
* | Add CommonCrypto block cipher support | Jose Pereira | 2018-09-10 | 5 | -3/+204 |
| | |||||
* | Merge GH #1674 Add CommonCrypto cipher modes | Jack Lloyd | 2018-09-10 | 5 | -5/+443 |
|\ | |||||
| * | Add CommonCrypto cipher modes support | Jose Pereira | 2018-09-09 | 5 | -5/+443 |
| | | |||||
* | | Add RandomNumberGenerator::accepts_input | Jack Lloyd | 2018-09-06 | 2 | -0/+5 |
|/ | |||||
* | Merge GH #1667 Add hashing with CommonCrypto | Jack Lloyd | 2018-09-04 | 3 | -0/+186 |
|\ | |||||
| * | Add commoncrypto OS feature so it cannot be enabled on other systems | Jack Lloyd | 2018-09-04 | 1 | -0/+4 |
| | | |||||
| * | Indent to match conventions. | Jack Lloyd | 2018-09-04 | 2 | -75/+73 |
| | | | | | | | | | | Move CommonCrypto.h out of our commoncrypto.h since that header is included around the library. | ||||
| * | Add support for hashing with CommonCrypto | Jose Pereira | 2018-09-03 | 3 | -0/+184 |
| | | |||||
* | | Remove use of OpenSSL IDEA | Jack Lloyd | 2018-09-04 | 1 | -5/+0 |
|/ | | | | | | | | | It appears at least some versions of Ubuntu 16.04 have OpenSSLs which don't define OPENSSL_NO_IDEA and include declarations for EVP_idea_ecb, but the function is not found at link time. Thus enabling OpenSSL engine fails. It is not worth a further fight here. | ||||
* | Add nonce-set checks for OpenSSL CBC mode impls | Jack Lloyd | 2018-08-17 | 1 | -1/+5 |
| | |||||
* | Fix for OpenSSL | Jack Lloyd | 2018-08-12 | 1 | -0/+4 |
| | |||||
* | Add function to return the size of a key agreement output | Jack Lloyd | 2018-08-12 | 1 | -0/+1 |
| | | | | Very useful when using "Raw" DH/ECDH via the FFI API. | ||||
* | Add functions to get size of PK ciphertext,plaintext | Jack Lloyd | 2018-08-10 | 3 | -1/+9 |
| | | | | Needed for https://github.com/strongswan/strongswan/pull/109 | ||||
* | Add PK_Signer::signature_length | Jack Lloyd | 2018-08-10 | 7 | -11/+29 |
| | |||||
* | Fix OpenSSL modes | Jack Lloyd | 2018-08-05 | 1 | -1/+12 |
| | |||||
* | Support calling Whirlpool in OpenSSL | Jack Lloyd | 2018-07-26 | 1 | -0/+5 |
| | | | | Available since 1.0.0, not sure how this was missed. | ||||
* | Handle another possible OpenSSL error only seen on non-x86_64 | Jack Lloyd | 2018-07-17 | 1 | -7/+16 |
| | | | | GH #1627 | ||||
* | Handle EC_R_BAD_SIGNATURE from OpenSSL | Jack Lloyd | 2018-05-31 | 2 | -0/+14 |
| | |||||
* | Fix problems with failure to build in various configurations | Jack Lloyd | 2018-03-31 | 1 | -0/+3 |
| | |||||
* | Add PointGFp::encode as replacement for EC2OSP | Jack Lloyd | 2018-03-10 | 4 | -6/+6 |
| | | | | | | Literally every single call to EC2OSP is converting the returned secure_vector to a std::vector. Which makes sense since private points are not really a thing in any protocol I know of. | ||||
* | Ensure exception types are exported from DLL | Jack Lloyd | 2018-03-06 | 3 | -4/+4 |
| | | | | GH #983 | ||||
* | Fix compliation problem in PKCS11 | Jack Lloyd | 2018-02-07 | 6 | -1/+6 |
| | | | | | | | | | ./configure.py --amal --mini --enable-modules=pkcs11 would fail to build because the guarded includes of pk_keys.h ended up hiding the declaration entirely. This is really a bug in how the amalgamation is generated but may be hard to fix in the general case. | ||||
* | Avoid deprecated functions in OpenSSL provider [ci skip] | Jack Lloyd | 2018-02-01 | 1 | -3/+3 |
| | |||||
* | Use shared representation of EC_Group | Jack Lloyd | 2018-01-31 | 1 | -5/+5 |
| | | | | Hide CurveGFp with an eye for eventual removal | ||||
* | Fix a leak in OpenSSL block ciphers | Jack Lloyd | 2018-01-28 | 1 | -0/+3 |
| | | | | Introduced when support for 1.1.0 API was added in #1056 | ||||
* | Correct OpenSSL RC4 naming | Jack Lloyd | 2017-12-28 | 1 | -1/+1 |
| | |||||
* | Fix seek test with OpenSSL RC4 | Jack Lloyd | 2017-11-14 | 1 | -1/+1 |
| | |||||
* | Remove duplicated include | Jack Lloyd | 2017-11-13 | 1 | -1/+0 |
| | |||||
* | Missing include: #include <cstdlib> is needed for std::free. | Yuri | 2017-11-11 | 1 | -0/+1 |
| | |||||
* | Add checks that keyed algorithms are actually keyed before use | Jack Lloyd | 2017-10-26 | 2 | -3/+17 |
| | | | | | Previously calling update or encrypt without calling set_key first would result in invalid outputs or else crashing. | ||||
* | Accept SHA-1, SHA1, or SHA-160 equally | Jack Lloyd | 2017-10-13 | 2 | -2/+2 |
| | | | | | | Fixes #1235 [ci skip] | ||||
* | Add limits.h header for INT_MAX | Alon Bar-Lev | 2017-10-13 | 1 | -0/+1 |
| | | | | | Gentoo-Bug: https://bugs.gentoo.org/633468 Signed-off-by: Alon Bar-Lev <[email protected]> | ||||
* | Remove needless mutable | Jack Lloyd | 2017-10-12 | 1 | -2/+2 |
| | | | | [ci skip] |