aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* PK speed reporting improvements.Jack Lloyd2015-08-281-4/+9
| | | | | | | | | | Increment the input message so each value is different rather than repeatedly hashing the same message until we regen a new random one. In ECDSA speed test be explicit about what group is being used. Remove 160 bit groups from ECC benchmarking; 80 bits is not enough anymore so doesn't much matter.
* Move GF(p) side channel countermeasure toggles to build.hJack Lloyd2015-08-283-28/+59
| | | | Some tweaks for point multiplication using fixed windows.
* Use 16 byte alignment for all allocations in the mlock allocatorJack Lloyd2015-08-281-7/+1
|
* Add override specifiers to zlib.hJack Lloyd2015-08-281-6/+6
|
* Gzip_Decompression should be a subclass of Stream_DecompressionJack Lloyd2015-08-281-1/+1
| | | | GH #264
* Merge pull request #266 from cordney/fix-multiple-abi-link-flagsJack Lloyd2015-08-281-4/+4
|\ | | | | Allow multiple abi link flags with the same name
| * Allow multiple abi link flags with the same nameRené Korthaus2015-08-281-4/+4
| | | | | | | | | | | | Allow multiple ABI link flags with the same name, e.g., -arch armv7 -arch armv7s when cross-compiling for iOS. This is the first fix necessary for fixing #188.
* | Merge pull request #265 from tiwoc/compress-empty-bufferJack Lloyd2015-08-282-7/+22
|\ \ | | | | | | Fix zlib error when compressing an empty buffer
| * | Compression: Fix zlib failure on compression of empty inputDaniel Seither2015-08-281-0/+8
| | | | | | | | | | | | | | | zlib treats a nullptr output buffer as an error. This commit fixes the failing compression tests.
| * | Compression: Prevent undefined behavior when feeding empty inputDaniel Seither2015-08-281-7/+7
| | | | | | | | | | | | | | | | | | &emptyVector[n] triggers undefined behavior because it is an out-of- bounds access, even if n == 0. emptyVector.data() does not (but may return nullptr).
| * | Add test for compression of an empty bufferDaniel Seither2015-08-281-0/+7
| |/ | | | | | | | | | | | | | | | | | | | | | | This test currently fails: $ ./botan-test compression Failure testing zlib - zlib deflate error -2 Failure testing deflate - zlib deflate error -2 Failure testing gzip - zlib deflate error -2 Compression 3 tests 3 FAILs =============== Tests 3 FAILs
* | Merge pull request #247 from mouse07410/masterJack Lloyd2015-08-281-69/+174
|\ \ | | | | | | Improve readability and usability of test-output of botan.py GH #247
| * | Update readme.rst, removing fork-specific stuff.Mouse2015-08-141-6/+0
| | |
| * | Changed tabs to 4 spacesMouse2015-08-141-5/+5
| | |
| * | Merge pull request #1 from randombit/masterMouse2015-08-1418-66/+15
| |\ \ | | | | | | | | Merging mainstream updates
| * | | Update readme.rstMouse2015-08-141-1/+1
| | | | | | | | | | | | Described what this fork is for.
| * | | Update readme.rstMouse2015-08-141-0/+6
| | | |
| * | | Restored Darwin compatibilityUri Blumenthal2015-08-141-1/+4
| | | |
| * | | Ported python demo script to python-3Uri Blumenthal2015-08-141-61/+129
| | | |
| * | | Fixing platform independence that previous patch brokeMouse2015-08-121-1/+1
| | | |
| * | | Made output prettier and more understandableUri Blumenthal2015-08-111-31/+65
| | | |
* | | | Merge pull request #163 from cordney/add-pkcs8-cmdJack Lloyd2015-08-281-0/+77
|\ \ \ \ | |_|_|/ |/| | | Add PKCS#8 private/public key processing tool GH #163
| * | | Don't register PKCS8 cmdline app when build without pubkey moduleRené Korthaus2015-07-171-0/+4
| | | |
| * | | Check minimum arguments and print helpRené Korthaus2015-07-151-1/+7
| | | |
| * | | Return !=0 on errorRené Korthaus2015-07-151-0/+1
| | | |
| * | | Add PKCS#8 private/public key processing toolRené Korthaus2015-07-011-0/+66
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This tool works similar to 'openssl pkey' in that it allows to read a private key from file and output the private or corresponding public key to file. It also allows changing a private key passphrase this way. This tool comes in handy when replacing use of openssl in scripts. The syntax is: botan pkcs8 --in=private.pem --out=key_out.pem [--pubout] [--passin=] [--passout=] [--pbe=]
* | | | Merge pull request #260 from webmaster128/sonameSimon Warta2015-08-2417-53/+81
|\ \ \ \ | | | | | | | | | | Add soname_pattern
| * | | | Add soname_patternSimon Warta2015-08-2417-53/+81
|/ / / / | | | | | | | | | | | | Fixes #241
* | | | Guard rlimit reset with a defined check for RLIMIT_MEMLOCK as it isJack Lloyd2015-08-241-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | missing on Solaris at least. On such systems it's probably safe to assume that no amount of memory can be mlock'ed from userspace, so just return zero to disable the allocator entirely. GH #262
* | | | On x86-32, anything using the simd wrapper needs to be pushed to the SSE2 objJack Lloyd2015-08-221-4/+8
| | | |
* | | | Remove high bit set char from comment as it broke amalgamation generationJack Lloyd2015-08-221-4/+8
| | | | | | | | | | | | | | | | | | | | | | | | under Python3. Ironically there doesn't seem to be any way to portably handle non-ASCII in a way that is compatible with Python 2.7 and 3 at the same time.
* | | | Fix for minimized buildsJack Lloyd2015-08-211-0/+1
| | | |
* | | | Missing addJack Lloyd2015-08-211-0/+1
| | | |
* | | | Bump versionJack Lloyd2015-08-212-1/+7
| | | |
* | | | In RSA, check that the input is less than the modulus n before blindingJack Lloyd2015-08-211-5/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | rather than after. After blinding the value is always reduced mod n so the condition is never met. This may be the cause of RSA test failures described in GH #174 The scenario was that during randomized corruption tests we occasionally provide an input which was greater than the modulus. When that happened the value was effectively reduced mod n, so the self-check would later fail, because the decrypted result (reduced mod n) would be compared with the original (larger than n) input.
* | | | Add power analysis countermeasures for ECC point multiplications.Jack Lloyd2015-08-2110-242/+411
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The plain PointGFp operator* now uses Montgomery ladder exclusively. Adds a blinded point multiply algorithm which uses exponent and point randomization, as well as a Montgomery ladder technique that takes a random walk of the possible addition chains for k.
* | | | Merge pull request #258 from webmaster128/reactivate-ffi-testSimon Warta2015-08-211-3/+2
|\ \ \ \ | | | | | | | | | | Reactivate FFI PBKDF minimum iterations test
| * | | | Reactivate FFI PBKDF minimum iterations testSimon Warta2015-08-211-3/+2
|/ / / / | | | | | | | | | | | | | | | | as dicussed here: https://github.com/randombit/botan/commit/480999c2820b0da995108d7474a74755cafd2924
* | | | Merge pull request #257 from webmaster128/variable-name-m_coreSimon Warta2015-08-212-23/+23
|\ \ \ \ | | | | | | | | | | Add m_ prefix to member variable Power_Mod::m_core
| * | | | Add m_ prefix to member variable Power_Mod::m_coreSimon Warta2015-08-212-23/+23
|/ / / /
* | | | Merge pull request #253 from webmaster128/random_prime_speedSimon Warta2015-08-2110-101/+245
|\ \ \ \ | | | | | | | | | | Refactor ./botan speed
| * | | | Refactor ./botan speedSimon Warta2015-08-2110-101/+245
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | * Add random_prime benchmark * Add is_prime benchmark * Respect runtime in benchmark_transform(). This sets default runtime from 2s to 0.5s per configuration
* | | | Merge pull request #254 from webmaster128/circleciSimon Warta2015-08-216-0/+63
|\ \ \ \ | |_|_|/ |/| | | Add initial cirlce config
| * | | Add initial cirlce configSimon Warta2015-08-216-0/+63
|/ / /
* | | Merge pull request #251 from webmaster128/clang-debug-solinkSimon Warta2015-08-141-3/+5
|\ \ \ | | | | | | | | Add so_link_command for clang debug on darwin and default
| * | | Add so_link_command for clang debug on darwin and defaultSimon Warta2015-08-141-3/+5
|/ / / | | | | | | | | | Fixes #250
* | | Merge pull request #249 from webmaster128/c-function-must-not-throwSimon Warta2015-08-1416-61/+3
|\ \ \ | | | | | | | | Remove all 'extern "C"' from src/lib/math/mp/
| * | | Remove 'extern "C"' from src/lib/math/mpSimon Warta2015-08-1416-61/+3
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | C functions must not throw but Botan::bigint_divop throws (MSVC: warning C4297: 'Botan::bigint_divop' : function assumed not to throw an exception but does) * Move bigint_mul -> Botan::bigint_sqr * Move bigint_sqr -> Botan::bigint_sqr * Variable in unnamed namespace supersedes "static" keyword
* | | Merge pull request #248 from webmaster128/check-msvc-cl-versionSimon Warta2015-08-121-2/+7
|\ \ \ | |_|/ |/| | Update Appveyor config
| * | Update Appveyor configSimon Warta2015-08-121-2/+7
|/ /