aboutsummaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
...
* | 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
| * | | Changed tabs to 4 spacesMouse2015-08-141-5/+5
| | | |
| * | | Merge pull request #1 from randombit/masterMouse2015-08-1418-66/+15
| |\ \ \ | | | | | | | | | | Merging mainstream updates
| * | | | 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=]
* | | | | Add soname_patternSimon Warta2015-08-2415-49/+57
| | | | | | | | | | | | | | | | | | | | 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
* | | | | 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
| | | | |
* | | | | 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.
* | | | | Reactivate FFI PBKDF minimum iterations testSimon Warta2015-08-211-3/+2
| | | | | | | | | | | | | | | | | | | | | | | | | as dicussed here: https://github.com/randombit/botan/commit/480999c2820b0da995108d7474a74755cafd2924
* | | | | Add m_ prefix to member variable Power_Mod::m_coreSimon Warta2015-08-212-23/+23
| | | | |
* | | | | 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
* | | | | Add initial cirlce configSimon Warta2015-08-214-0/+40
| |_|/ / |/| | |
* | | | Add so_link_command for clang debug on darwin and defaultSimon Warta2015-08-141-3/+5
| | | | | | | | | | | | | | | | Fixes #250
* | | | 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
* | | | Update Appveyor configSimon Warta2015-08-121-2/+7
| |/ / |/| |
* | | Add stricter time parsing; Add more testsSimon Warta2015-08-113-9/+113
| | |
* | | Sometimes we don't know the input format. But it is one of twoSimon Warta2015-08-115-9/+28
| | |
* | | Explicitly fwd declase classes BER_Decoder, DER_EncoderSimon Warta2015-08-113-12/+10
| | |
* | | Test implicit X509_Time copy constructor and assignmentSimon Warta2015-08-111-0/+17
| | |
* | | Add Not matcher for CatchSimon Warta2015-08-111-0/+24
| | |
* | | Minor refactoring of existing MatchersSimon Warta2015-08-111-7/+10
| | |
* | | Remove string constructor of X509_Time()Simon Warta2015-08-117-228/+176
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Break down string representations to to_string() and readable_string() * Add m_ prefix to member variable names * Fix order of methods * Move comments Doxygen friendly to header * Make set_to() private (future subjejt of refectoring); People should use constructor Closes #185
* | | Refector tests style (use matchers)Simon Warta2015-08-111-82/+64
| | |
* | | Strict uint32 parsingSimon Warta2015-08-112-7/+20
| | |
* | | Avoid integer overlow in string->uint32 converterSimon Warta2015-08-102-3/+58
| | | | | | | | | | | | | | | | | | | | | On systems where unsigned long is uint64 (typically 64 bit systems), a string containing a number greater than 2^32-1 was sucessfully converted to a uint64 and than reduced to uint32, causing an overflow. E.g. to_u32bit("4294967296") was 0 and to_u32bit("4294967297") was 1.
* | | Deactivate tests that consistently fail in debug modeSimon Warta2015-08-091-0/+8
| | | | | | | | | | | | [ci skip]
* | | Restrict input values to NIST reductions to defined rangeJack Lloyd2015-08-081-3/+13
| | |
* | | Merge branch 'master' of https://github.com/randombit/botanJack Lloyd2015-08-0813-267/+434
|\ \ \
| * | | Add m_ prefix to member variables in SecureQueueSimon Warta2015-08-082-27/+28
| | | |
| * | | Merge pull request #235 from tiwoc/overridesSimon Warta2015-08-082-2/+2
| |\ \ \ | | | | | | | | | | Add two missing overrides and fix bug in fuzzer relating to these
| | * | | Add override and fix signature of Fuzzer_Creds::psk_identity()Daniel Seither2015-08-031-1/+1
| | | | |
| | * | | Add missing override for SecureQueue::check_available()Daniel Seither2015-08-031-1/+1
| | | | |
| * | | | Rename fuzzer test consistentlySimon Warta2015-08-081-2/+2
| | | | | | | | | | | | | | | | | | | | Align filename with test_fuzzer()
| * | | | Refactor most of FFI test for matchersSimon Warta2015-08-081-103/+149
| | | | |
| * | | | Add matchers for integers and boolSimon Warta2015-08-082-26/+73
| | | | |