Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Add CommonCrypto cipher modes support | Jose Pereira | 2018-09-09 | 6 | -6/+461 |
| | |||||
* | Remove Darwin SecRandomCopyBytes | Jack Lloyd | 2018-09-04 | 4 | -85/+0 |
| | | | | | It is the same RNG as arc4random and /dev/urandom. And arc4random seems to be working well for iOS and macOS. | ||||
* | Merge GH #1667 Add hashing with CommonCrypto | Jack Lloyd | 2018-09-04 | 4 | -3/+203 |
|\ | |||||
| * | 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 | 4 | -3/+201 |
| | | |||||
* | | Remove unneeded load_on auto | Jack Lloyd | 2018-09-04 | 9 | -18/+0 |
| | | | | | | | | It is the default... | ||||
* | | 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. | ||||
* | Use a literal date for this API version | Jack Lloyd | 2018-09-02 | 1 | -5/+4 |
| | | | | | It avoids having to rewrite existing logic when a new API version is introduced. | ||||
* | Check PSS salt length during verification | Jack Lloyd | 2018-08-30 | 3 | -36/+94 |
| | | | | Fixes #1665 | ||||
* | Remove unused variable | Jack Lloyd | 2018-08-26 | 1 | -1/+0 |
| | |||||
* | Merge GH #1662 Add AVX2 ChaCha | Jack Lloyd | 2018-08-26 | 4 | -12/+304 |
|\ | |||||
| * | Add AVX2 version of ChaCha | Jack Lloyd | 2018-08-26 | 4 | -12/+304 |
| | | |||||
* | | Simplify code for SIMD_4x32::rho | Jack Lloyd | 2018-08-26 | 1 | -49/+4 |
|/ | |||||
* | Move AVX2 wrapper to utils | Jack Lloyd | 2018-08-24 | 4 | -259/+218 |
| | |||||
* | AVX2 | Jack Lloyd | 2018-08-24 | 1 | -56/+62 |
| | |||||
* | Serpent 8x decrypt | Jack Lloyd | 2018-08-24 | 2 | -88/+118 |
| | |||||
* | WIP for Serpent AVX2 | Jack Lloyd | 2018-08-24 | 4 | -7/+415 |
| | |||||
* | Merge GH #1659 Report correct size for XMSS signatures | Jack Lloyd | 2018-08-24 | 1 | -2/+4 |
|\ | |||||
| * | Implements correct XMSS signature size calculation | Matthias Gierlings | 2018-08-24 | 1 | -2/+4 |
| | | | | | | | | Implements the correct signature size calculation for XMSS, required by #1641. | ||||
* | | Allow SIV for PBES2 private key encryption | Jack Lloyd | 2018-08-23 | 1 | -2/+7 |
| | | |||||
* | | Add OIDs for SIV and OCB mode ciphers | Jack Lloyd | 2018-08-23 | 1 | -0/+26 |
|/ | |||||
* | Merge GH #1656 Add operator*(BigInt,word) | Jack Lloyd | 2018-08-23 | 2 | -0/+21 |
|\ | |||||
| * | Add operator*(BigInt, word) | Jack Lloyd | 2018-08-23 | 2 | -0/+21 |
| | | | | | | | | | | Gets hit about 2 million times in the test suite, avoids creating a temp BigInt (with alloc+free) or checking size of y. | ||||
* | | Merge GH #1657 If cert extn decoding fails do not fail entire parse | Jack Lloyd | 2018-08-23 | 2 | -2/+8 |
|\ \ | |||||
| * | | If cert extension parsing fails, replace the object with Unknown | Jack Lloyd | 2018-08-23 | 2 | -2/+8 |
| |/ | | | | | | | | | | | Allows the parse to complete and even allows examining the extension. GH #1652 | ||||
* / | Fix build without x509 module | Tobias Brunner | 2018-08-23 | 1 | -1/+22 |
|/ | | | | | Fixes: dc85761ef02c ("Add path validation to FFI") Signed-off-by: Tobias Brunner <[email protected]> | ||||
* | Add PBES2 as alias for PBE-PKCS5v20 | Jack Lloyd | 2018-08-23 | 2 | -2/+5 |
| | | | | Easier to remember and type. | ||||
* | Merge GH #1651 Default disable TLS v1.0/v1.1 and CBC+CCM suites | Jack Lloyd | 2018-08-23 | 1 | -6/+6 |
|\ | |||||
| * | Default disable support for TLS v1.0/v1.1 and all CBC and CCM suites | Jack Lloyd | 2018-08-22 | 1 | -6/+6 |
| | | |||||
* | | Simplify exception messages | Jack Lloyd | 2018-08-22 | 7 | -12/+29 |
|/ | | | | Remove "Invalid argument" and "Decoding Error" prefixes | ||||
* | Add nonce-set checks for OpenSSL CBC mode impls | Jack Lloyd | 2018-08-17 | 1 | -1/+5 |
| | |||||
* | Have cipher modes also verify that the nonce is set prior to use | Jack Lloyd | 2018-08-17 | 5 | -7/+20 |
| | |||||
* | In EAX, CCM, OCB verify nonce is set before processing | Jack Lloyd | 2018-08-17 | 3 | -1/+9 |
| | |||||
* | Add BOTAN_STATE_CHECK macro | Jack Lloyd | 2018-08-17 | 2 | -2/+21 |
| | |||||
* | Fix an EAX bug in reset() | Jack Lloyd | 2018-08-17 | 1 | -0/+8 |
| | | | | | | | | | | | | | | It failed to reset any data that had been fed into CMAC so far, so a sequence with eax->set_key(key); eax->start(nonce); eax->process(discarded_bits); eax->reset(); eax->start(second_nonce); eax->process(second_msg); would produce incorrect results | ||||
* | Add botan_cipher_reset to FFI | Jack Lloyd | 2018-08-17 | 2 | -0/+15 |
| | |||||
* | Ignore an empty string ("") for trusted_path argument | Jack Lloyd | 2018-08-16 | 1 | -1/+1 |
| | |||||
* | Add args for botan FFI cert verification for hostname and time | Jack Lloyd | 2018-08-16 | 2 | -4/+16 |
| | |||||
* | Add botan_x509_cert_dup | Jack Lloyd | 2018-08-16 | 2 | -4/+24 |
| | |||||
* | Fix bug introduced in 15e149ac | Jack Lloyd | 2018-08-16 | 1 | -6/+6 |
| | | | | | This caused get_field, when called with a non-existing field, to return success and set the field to a small negative integer. | ||||
* | Avoid throwing within the FFI layer | Jack Lloyd | 2018-08-16 | 3 | -10/+9 |
| | | | | No reason given we know the message is going to be thrown away. | ||||
* | Add TOTP to FFI | Jack Lloyd | 2018-08-16 | 3 | -4/+144 |
| | |||||
* | For HOTP/TOTP allow a key/len pair instead of requiring SymmetricKey | Jack Lloyd | 2018-08-16 | 5 | -9/+36 |
| | |||||
* | Expose HOTP to FFI | Jack Lloyd | 2018-08-15 | 3 | -3/+137 |
| | |||||
* | Fix some Doxygen warnings | Jack Lloyd | 2018-08-15 | 3 | -4/+2 |
| | |||||
* | Update comments in FFI header | Jack Lloyd | 2018-08-15 | 1 | -43/+138 |
| | | | | | | Add/fix Doxygen comments. Remove warning which is not really true anymore. | ||||
* | Remove support for 8 or 16 bit BigInt words | Jack Lloyd | 2018-08-15 | 6 | -27/+48 |
| | | | | | | | | | | It turned out 8 bit was very broken (failed to compile, due to overload problems with functions taking uint8_t vs word). 16 bit words work aside from a test failure, but is really slow. Practically speaking we are not in a position to support 16-bit CPUs very well. And being able to assume sizeof(word) >= sizeof(uint32_t) allows simplifying some code. | ||||
* | Fix BigInt::to_{dec,hex}_string for zero | Jack Lloyd | 2018-08-15 | 1 | -1/+8 |
| | | | | They returned an empty string instead | ||||
* | Cleanup of BigInt encoding/decoding functions | Jack Lloyd | 2018-08-14 | 5 | -29/+146 |
| | | | | | | | | | | | | | Instigated by finding a bug where BigInt::encode with decimal output would often have a leading '0' char. Which is papered over in the IO operator, but was exposed by botan_mp_to_str which called BigInt::encode directly. Split BigInt::encode/decode into two versions, one taking the Base argument and the other using the (previously default) binary base. With a view of eventually deprecating the versions taking a base. Add BigInt::to_dec_string() and BigInt::to_hex_string() |