Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | More MSVC warnings fixes | Jack Lloyd | 2017-08-31 | 11 | -19/+20 |
| | |||||
* | Fix various MSVC warnings | Jack Lloyd | 2017-08-31 | 25 | -69/+97 |
| | | | | Based on VC2017 output | ||||
* | Slight cleanup in Curve25519_PrivateKey constructor | Jack Lloyd | 2017-08-29 | 1 | -8/+6 |
| | |||||
* | Remove unused include | Jack Lloyd | 2017-08-29 | 1 | -1/+0 |
| | |||||
* | Avoid having variable named m_emsa twice in class hierarchy | Jack Lloyd | 2017-08-29 | 2 | -8/+16 |
| | | | | | | | | In fact the variable was only used if we use deterministic nonces, and just to extract the hash name. So just do that once, and only if we are not using random nonces. Flagged by Sonar | ||||
* | Fix a valgrind const-time error in ISO 9796 padding | Jack Lloyd | 2017-08-29 | 1 | -2/+7 |
| | | | | It didn't unpoison the output values. | ||||
* | Avoid false positive valgrind in TLS CBC decryption | Jack Lloyd | 2017-08-29 | 1 | -2/+2 |
| | | | | | | We poisoned the record before decrypting it, which caused failures with Camellia ciphersuites (or AES, on platforms that use T-tables). Instead poison it right after decrypting. | ||||
* | Avoid math on booleans | Jack Lloyd | 2017-08-29 | 1 | -3/+3 |
| | | | | Sonar find | ||||
* | In OCSP::CertID don't crash if SHA-1 not available | Jack Lloyd | 2017-08-29 | 1 | -1/+1 |
| | | | | Caught with Sonar | ||||
* | Avoid `throw new Exception` | Jack Lloyd | 2017-08-29 | 1 | -1/+1 |
| | | | | Caught by Sonar, once I managed to wade through the noise. | ||||
* | OpenSSL module requires public key code be enabled in build | Jack Lloyd | 2017-08-29 | 1 | -0/+4 |
| | |||||
* | Merge GH #1158 Add build mode for fuzzer tests | Jack Lloyd | 2017-08-29 | 2 | -3/+9 |
|\ | |||||
| * | Fix bad iterator deref in OpenSSL RSA | Jack Lloyd | 2017-08-25 | 1 | -1/+3 |
| | | |||||
| * | Add a guard to avoid doing &v[1] when v.size() == 1 | Jack Lloyd | 2017-08-25 | 1 | -2/+6 |
| | | | | | | | | Found by running the fuzzers over corpus with debug iterators. | ||||
* | | Avoid using GCC ivdep pragma in GCC 4.8 [ci skip] | Jack Lloyd | 2017-08-28 | 1 | -1/+1 |
|/ | |||||
* | Cleanup ARIA | Jack Lloyd | 2017-08-23 | 2 | -379/+251 |
| | | | | Remove NEON support, replace macros with inlines | ||||
* | Add ARIA Block Cipher (GH #1004) | Jeffrey Walton | 2017-08-23 | 4 | -0/+738 |
| | |||||
* | Fix bug affecting AltiVec on ppc64le processors | Jack Lloyd | 2017-08-23 | 1 | -8/+2 |
| | |||||
* | Fix Altivec detection | Jack Lloyd | 2017-08-22 | 1 | -2/+2 |
| | | | | Broken in c3ae43c04c | ||||
* | Add support for ECDHE_PSK AEAD ciphersuites | Jack Lloyd | 2017-08-22 | 1 | -2/+6 |
| | | | | From draft-ietf-tls-ecdhe-psk-aead-05, now with official codepoints. | ||||
* | Remove BOTAN_PARALLEL_FOR from T-table AES | Jack Lloyd | 2017-08-22 | 1 | -1/+1 |
| | | | | GH #1077 | ||||
* | 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 |
| | |||||
* | Merge GH #1154 Add check for passhash9 algo being available in tests | Jack Lloyd | 2017-08-19 | 2 | -0/+15 |
|\ | |||||
| * | Add is_passhash9_alg_supported() | René Korthaus | 2017-08-19 | 2 | -0/+15 |
| | | |||||
* | | Newhope cleanups | Jack Lloyd | 2017-08-18 | 2 | -663/+668 |
|/ | | | | Formatting, use size_t instead of int, etc | ||||
* | 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. | ||||
* | In SHACAL2 be smarter about how the round keys are loaded | Jack Lloyd | 2017-08-16 | 1 | -9/+15 |
| | | | | | | Using _mm_set_epi32 caused 2 distinct (adjacent) loads followed by an unpack to combine the registers. Have not tested on hardware to see if this actually improves performance. | ||||
* | Optimize SHACAL2 | Jack Lloyd | 2017-08-16 | 2 | -46/+20 |
| | | | | | | Combine several shuffle operations into one. Thanks to jww for the hint. Probably not noticably faster on any system. | ||||
* | Allow signature using `Raw(hashname)` | Jack Lloyd | 2017-08-15 | 3 | -7/+38 |
| | | | | | | This confirms the message is exactly the size of the expected hash, and also causes RFC 6979 nonces to be generated using the specified hash. See also https://github.com/riboseinc/rnp/issues/367 | ||||
* | 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 |
| | |||||
* | Merge GH #1151 Add SHACAL2 | Jack Lloyd | 2017-08-15 | 17 | -0/+700 |
|\ | |||||
| * | Add 2x unrolling for SHACAL2 on x86 | Jack Lloyd | 2017-08-14 | 1 | -2/+71 |
| | | |||||
| * | Add support for SHACAL2 using x86 SHA extensions | Jack Lloyd | 2017-08-14 | 4 | -0/+109 |
| | | |||||
| * | Notify callers of parallel ops for AES, IDEA, Noekeon, SHACAL2 and Threefish | Jack Lloyd | 2017-08-14 | 10 | -0/+85 |
| | | |||||
| * | Pass by reference for MSVC x86 | Jack Lloyd | 2017-08-14 | 1 | -6/+8 |
| | | | | | | | | | | It complains it cannot pass the __m128i without loss of alignment. (Why, I have no idea.) | ||||
| * | Add SHACAL2 in generic SIMD | Jack Lloyd | 2017-08-13 | 5 | -0/+215 |
| | | | | | | | | Bit over 2x faster on my desktop | ||||
| * | Add SHACAL2 | Jack Lloyd | 2017-08-13 | 4 | -0/+220 |
| | | | | | | | | 256 bit ARX block cipher with hardware support, what's not to love. | ||||
* | | Improve polynomial doubling code, move to util | Jack Lloyd | 2017-08-15 | 7 | -45/+169 |
|/ | | | | | | | | | Now does 64-bits at a time instead of 8 bits, and avoids conditional timing channel on the XOR carry. Confirmed that at least GCC 7 and Clang 4 on x86-64 compile the functions without conditional jumps. Also removes CMAC as a dependency of OCB, which only needed it in order to call CMAC::poly_double | ||||
* | Modify GOST-34.11 hash to avoid a GCC miscompilation. | Jack Lloyd | 2017-08-13 | 1 | -1/+4 |
| | | | | | | | | | | | | For whatever reason GCC 7 on i386 miscompiles this loop under -O3. I was not able to reduce the bug to a small testcase - extracting the problem section of the code to its own file, it behaves correctly. Also oddly, I was never able to repro this using Arch's gcc-multilib i386 compiler. But when compiled with the 'native' i386 compiler in a chroot it immediately fails. See GH #1148 and GH #882 | ||||
* | Silence clang warning in create_private_key(). | Alexander Bluhm | 2017-08-13 | 1 | -1/+1 |
| | | | | | | If compiled with OpenSSL, clang emitted the warning "using the result of an assignment as a condition without parentheses". Putting parentheses around the assignment fixes this. | ||||
* | Fix issue signing an ECDSA hash of all-zeros (GH #1143) | Jack Lloyd | 2017-08-07 | 1 | -1/+1 |
| | | | | | The tests were generated by Botan but I was able to verify the resulting signatures using Golang's ecdsa module. | ||||
* | Merge GH #1142 Add SM2 encryption scheme | Jack Lloyd | 2017-08-07 | 8 | -12/+415 |
|\ | |||||
| * | When creating an EC curve with default params, use algo-specific curve | Jack Lloyd | 2017-08-04 | 1 | -1/+17 |
| | | | | | | | | | | Eg previously ./botan keygen --algo=GOST-34.10 would create a GOST-34.10 curve over P-256, probably not useful in most cases. | ||||
| * | Add SM2 encryption to FFI | Jack Lloyd | 2017-08-04 | 3 | -0/+58 |
| | | | | | | | | Also add hooks for keygen, etc | ||||
| * | Add SM2 encryption scheme | Jack Lloyd | 2017-08-04 | 5 | -11/+340 |
| | | | | | | | | This is a contribution from Ribose Inc (@riboseinc) | ||||
* | | Merge GH #1138 Add support for Windows sockets in http_util and TLS command ↵ | Jack Lloyd | 2017-08-07 | 3 | -1/+55 |
|\ \ | | | | | | | | | | line utils | ||||
| * | | Fix for amalgamation build on Windows | René Korthaus | 2017-08-04 | 1 | -0/+1 |
| | | | |||||
| * | | Use anonymous namespace to fix static build | René Korthaus | 2017-08-04 | 1 | -0/+4 |
| | | |