aboutsummaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Prepare for making BER_Object members privateJack Lloyd2018-01-1819-196/+257
| | | | | Now there are usable accessors that allow the library to avoid using BER_Object members directly.
* Move Sonar config from build-data to configsJack Lloyd2018-01-182-1/+1
| | | | Since it is not a template file, nor is it read by configure.py
* Drop the sqlite3 codec [ci skip]Jack Lloyd2018-01-188-798/+0
| | | | | | It is maintained (at least to some extent) at https://github.com/OlivierJG/botansqlite3 and contains several fixes which are not included in this version.
* Fix crash in EMSA_PKCS1v15_Raw if the hash function was not enabled.Jack Lloyd2018-01-171-1/+1
| | | | GH #1416
* Correct dependencies of kdf and pbkdf [ci skip]Jack Lloyd2018-01-173-2/+5
| | | | They assumed base pulled in hash and mac which is no longer true
* First update the sieve, then check for a matchJack Lloyd2018-01-171-3/+7
| | | | | | This allows shortcutting the checks Use (p-1)/2 instead p/2, same result because p is odd but confusing.
* Merge GH #1413 Improve speed of prime generation especially safe primesJack Lloyd2018-01-174-42/+94
|\
| * Correctly handle generating small primesJack Lloyd2018-01-162-5/+21
| |
| * Improve speed of prime generation especially safe primesJack Lloyd2018-01-163-37/+73
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | First, correct a bug in the sieve code. It would break early if a value did not match up with the sieve. However in that case, the sieve values would be out of sync with the value of p, and would be returning effectively random results. This caused prime generation to be slower than it should be, both because the sieve was incorrectly rejecting values that were not multiples of any small prime and was allowing values that were multiples of small primes to move on to the Miller-Rabin test. In the sieve, also sieve so that 2*q+1 is also not a multiple of the small primes. This speeds up safe prime generation. GH #1411
* | Merge GH #1408 Use an ABI flag for enabling Aarch64 crypto operationsJack Lloyd2018-01-177-14/+9
|\ \
| * | ABI for Aarch64 cryptoJack Lloyd2018-01-127-14/+9
| | |
* | | Merge GH #1412 Remove Perl-XS wrapperJack Lloyd2018-01-1716-1847/+0
|\ \ \
| * | | Remove the Perl XS wrapperJack Lloyd2018-01-1516-1847/+0
| | |/ | |/|
* / | Update ASN.1 fuzzerJack Lloyd2018-01-151-1/+1
|/ /
* | Enforce an overall max depth on recursion in ASN1 printerJack Lloyd2018-01-153-20/+51
| | | | | | | | | | Otherwise a sufficiently nested value can cause us to recurse endlessly, causing stack exhaustion. OSS-Fuzz 5333
* | Merge the rest of GH #1387Jack Lloyd2018-01-142-28/+22
|\ \
| * | Use search_mapRené Korthaus2018-01-141-6/+1
| | |
| * | Simplify codeRené Korthaus2018-01-142-30/+30
| | |
| * | Print a command description for cli helpRené Korthaus2018-01-1417-13/+542
| | |
* | | Merge GH #1387 Improve help output of cli toolJack Lloyd2018-01-1417-13/+542
|\ \ \ | |/ / |/| |
| * | Print a command description for cli helpRené Korthaus2018-01-0417-13/+542
| | |
* | | Fix return value of PK_Encryptor::maximum_input_sizeJack Lloyd2018-01-132-1/+16
| | | | | | | | | | | | Fixes GH #1410
* | | Add --der-format flag to sign and verify cli utilsJack Lloyd2018-01-121-4/+10
| | | | | | | | | | | | | | | | | | Otherwise it's not possible to verify eg OpenSSL's DSA signatures See GH #1409
* | | Expose SM2_compute_zaJack Lloyd2018-01-121-6/+7
| |/ |/| | | | | | | Was already supposed to be public, which is why it's declared in a public header - just missed the export annotation.
* | Merge GH #1407 Don't have hard dependency on base classesJack Lloyd2018-01-1232-28/+207
|\ \
| * | Make stream, block, hash and cipher mode base classes optionalJack Lloyd2018-01-1232-24/+188
| | |
| * | Wrap use of MAC in BOTAN_HAS_MAC in lookup.hSimon Warta2018-01-111-1/+7
| | |
| * | Remove dependency: base depends on macSimon Warta2018-01-113-3/+12
| | |
* | | Merge GH #1406 Move thread utils to own moduleJack Lloyd2018-01-129-28/+18
|\ \ \
| * | | Move thread utils (barrier and semaphore) to a subpackage of utilJack Lloyd2018-01-129-28/+18
| |/ / | | | | | | | | | | | | | | | They are not needed except by the filter code so being able to easily remove them from the build is nice; utils is always compiled in so that should be as small as possible.
* | | Merge GH #1405 Add support for --library-suffix optionJack Lloyd2018-01-124-10/+10
|\ \ \
| * | | Add support for --library-suffix optionJack Lloyd2018-01-124-10/+10
| |/ / | | | | | | | | | Fixes GH #1404
* / / Create an empty favicon.ico for the website build [ci skip]Jack Lloyd2018-01-121-0/+4
|/ / | | | | | | Allows caching the result removing needless round trips.
* | In asn1print, if input file ends in .pem assume --pem flagJack Lloyd2018-01-101-1/+1
| |
* | Fix a bug in asn1print - zero integers were not printedJack Lloyd2018-01-092-11/+7
| |
* | Add contortion to appease SonarJack Lloyd2018-01-091-1/+1
| |
* | Recognize armv7-a [ci skip]Jack Lloyd2018-01-091-0/+1
| |
* | Merge GH #1391 X25519 cleanupsJack Lloyd2018-01-092-417/+434
|\ \
| * | Fix for systems needing 128-bit helper typeJack Lloyd2018-01-071-0/+5
| | |
| * | CleanupsJack Lloyd2018-01-071-86/+89
| | |
| * | Unroll the inner loop of cmultJack Lloyd2018-01-061-78/+84
| | | | | | | | | | | | | | | Allows merging redundant conditional swaps and elimiates the pointer indirections.
| * | Reformat donna.cppJack Lloyd2018-01-062-411/+414
| | | | | | | | | | | | | | | Was originally kept in the same format as upstream, but upstream is not maintained anymore so no reason to stick with it.
* | | Merge GH #1393 Add cpuid support for POWER crypto extensionsJack Lloyd2018-01-093-1/+34
|\ \ \
| * | | Add support for detecting POWER crypto using getauxvalJack Lloyd2018-01-073-1/+34
| |/ / | | | | | | | | | See #1206
* | | Merge GH #1378 Use OS feature flags instead of OS name for enabling system ↵Jack Lloyd2018-01-0940-225/+161
|\ \ \ | | | | | | | | | | | | specific code
| * | | Test OS features by the feature vs the OS nameJack Lloyd2017-12-3040-225/+161
| | | |
* | | | Remove CPU specific optimization flagsJack Lloyd2018-01-0827-412/+21
| |/ / |/| | | | | | | | | | | | | | | | | These are best left to the user to set via CXXFLAGS or --cc-abi-flags Add override if arch ends in in {eb, el, be, le} to set the endian. Avoids an extra file for ppc64le.
* | | Merge GH #1388 Set default userid for SM2 signaturesJack Lloyd2018-01-051-0/+12
|\ \ \
| * | | Change default userid for SM2 signatures.Daniel Wyatt2018-01-041-0/+12
| | |/ | |/| | | | | | | | | | GM/T 0009-2012 apparently specifies that this should default to the 16-byte hex sequence 31,32,33,34,35,36,37,38,31,32,33,34,35,36,37,38.
* | | Merge GH #1389 fix overflow handling in CTR with 128-bit wide countersJack Lloyd2018-01-052-1/+13
|\ \ \ | | | | | | | | | | | | Introduced in #1262 not present in any release.