aboutsummaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* TLS client featuresJack Lloyd2016-03-162-9/+55
| | | | | | Add flags --policy, --print-certs, --tls1.0, --tls1.1, --tls1.2 Update todo
* Fix off by one in ressolJack Lloyd2016-03-152-1/+44
| | | | | Could attempt to allocate (size_t)-1 words with predicably bad_alloc results.
* Merge GH #422 Use system_time instead of high_resolution_clockJack Lloyd2016-03-101-1/+1
|\
| * Use chrono::system_clock instead of chrono::high_resolution_clock in ↵Daniel Neus2016-03-071-1/+1
| | | | | | | | | | | | get_system_timestamp_ns() GH #422
* | Merge GH #450 Add support for Windows VirtualLockJack Lloyd2016-03-101-1/+50
|\ \
| * | remove redundant returnDaniel Neus2016-03-081-1/+0
| | |
| * | add support for VirtualLock/VirtualUnlock on WindowsDaniel Neus2016-03-071-1/+51
| |/ | | | | | | equivalent to mlock on Unix to prevent swapping out of memory
* / Trivial warning fixesJack Lloyd2016-03-096-30/+40
|/
* Add proc_walk, egd, Darwin entropy sources to policy.Jack Lloyd2016-03-062-9/+11
| | | | Prohibit unix_procs in BSI policy. See discussion in GH #446
* Allow EMSA1 in BSI policyJack Lloyd2016-03-061-1/+1
|
* Merge GH #446 add --module-policy optionJack Lloyd2016-03-066-9/+298
|\
| * Add option --module-policyJack Lloyd2016-03-066-9/+298
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A module policy is a file specifying three types of modules: ones which are required, ones which are prohibited, and ones which should be used if otherwise available (this is mostly for platform specific modules). Finally there are whatever modules which exist in the library of which the policy makes no mention. These will be included if an explicit dependency of some other module pulls them in (so there is no reason to mention base, utils, ... in the file) but skipped otherwise. For example policy 'sane' does not mention 'utils' or 'twofish' either way. Since utils is a dependency of other modules which are included, but Twofish does not. However unlike an explicitly prohibited module, not mentioned can still be requested as part of the build (here with --enable-module=twofish) Also fixes some test bugs noticed by compiling in different build configs. DLIES test didn't check that the KDF and MAC existed. Adds a typedef for MessageAuthenticationCode because typing it twice in a single line in the DLIES test made me think it's way too long. :) Also fix some fuzzer build problems. Due to a copy and paste bug the PKCS certificate (it was not). Inspired by GH #439
* | Merge GH #373 RDRAND/RDSEED logic changesJack Lloyd2016-03-063-34/+51
|\ \ | | | | | | | | | The Intel RNG may fail if heavily contended, so retry as needed.
| * | move logic back into poll()Daniel Neus2016-01-262-60/+36
| | | | | | | | | | | | prevents filtering out any 0x00000000 outputs from RDRAND/RDSEED
| * | review changesDaniel Neus2015-12-215-37/+42
| | | | | | | | | | | | | | | | | | | | | | | | * no spaces around if(), for() etc * snake_case for plain functions * anonymous namespace function instead private and static * don't propagate failed poll to the calling application * RdRand retires configurable in build.h
| * | RdRand and RdSeed logic changesDaniel Neus2015-12-205-36/+72
| | | | | | | | | | | | | | | * Make it configurable how often RdRand and RdSeed is polled * Make it configurable how many RdSeed retries are executed
* | | Typos are easy to miss in code that is not compiled by default.Jack Lloyd2016-03-061-1/+1
| | |
* | | Merge GH #437 add X509_Certificate::v3_extensionsJack Lloyd2016-03-064-20/+35
|\ \ \ | | | | | | | | | | | | | | | | Makes it possible for an application to interpret some extension not supported by the library.
| * | | +added fields for custom x509 extensionsChristopher Bläsius2016-02-294-20/+33
| | | | | | | | | | | | | | | | +Extensions now uses std::unique_ptr
* | | | Merge GH #441 Clang analyzer fixesJack Lloyd2016-03-063-5/+7
|\ \ \ \
| * \ \ \ Merge branch 'master' into clang-analyzerDaniel Neus2016-03-06136-346/+359
| |\ \ \ \
| * | | | | added an assert for aes key length >= 4 in aes_key_schedule to prevent ↵Daniel Neus2016-03-021-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | division by zero found by clang-analyzer
| * | | | | fix dead assignment / redundant computation in block/aes_ssse3/aes_ssse3.cpp ↵Daniel Neus2016-03-021-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | in aes_schedule_transform found by clang-analyzer
| * | | | | fix dead assignment in mce/polyn_gf2m.cpp in polyn_gf2m() found by ↵Daniel Neus2016-03-021-3/+1
| | | | | | | | | | | | | | | | | | | | | | | | clang-analyzer
| * | | | | fixed another dead assignment found by clang-analyzer in test_dtls_handshake()Daniel Neus2016-03-021-1/+1
| | | | | |
| * | | | | fix dead assignment found by clang-analyzer in test_dtls_handshake()Daniel Neus2016-03-021-1/+1
| | |/ / / | |/| | |
* | | | | Check that TLS signature type is accepted by the policy.Jack Lloyd2016-03-069-38/+106
| |/ / / |/| | | | | | | | | | | | | | | | | | | Previously the signature hashes and algos info was used to set the v1.2 signature_algorithms extension, but if the counterparty ignored the extension and sent something else, we wouldn't notice.
* | | | Fix ordering of Charset::transcode argumentsJack Lloyd2016-03-062-2/+2
| | | | | | | | | | | | | | | | GH #438
* | | | Remaining cppcheck fixes that are not covered by GH #444Daniel Neus2016-03-0534-136/+141
| |_|/ |/| |
* | | Remove explicit from DL_Group, EC_Group constructors taking std::stringJack Lloyd2016-03-052-2/+2
| | | | | | | | | | | | | | | | | | I think we maybe want these to be converting constructors, and adding explicit here breaks code like ECDSA_PrivateKey(rng, "secp256r1") which seems like a reasonable thing to support IMO
* | | cppcheck fixes: Class 'X' has a constructor with 1 argument that is not ↵Daniel Neus2016-03-05106-213/+214
| | | | | | | | | | | | explicit.
* | | Merge pull request #440 from neusdan/os_utils_process_id_fixJack Lloyd2016-03-021-2/+2
|\ \ \ | | | | | | | | Fix a typo in os_utils that prevents retrieval of the current process id on Windows
| * | | fix a typo in os_utils that prevents retrieval of the current process id on ↵Daniel Neus2016-03-011-2/+2
| |/ / | | | | | | | | | windows
* / / Skip bzip2 compression in entropy tests on OS X due to GH #394Jack Lloyd2016-03-021-0/+7
|/ / | | | | | | | | Feels kind of nasty, but it sucks more to have CI builds break because of random failures.
* | Merge pull request #431 from cordney/python-improvementsJack Lloyd2016-02-214-17/+93
|\ \ | | | | | | Improvements in X.509 cert handling for python bindings. Add Python code coverage report.
| * | Add LD_LIBRARY_PATH to python coverageRené Korthaus2016-02-201-1/+1
| | |
| * | Run coverage for python bindingsRené Korthaus2016-02-202-0/+4
| | |
| * | Remove tabRené Korthaus2016-02-201-1/+1
| | |
| * | Improvements in X.509 cert handling for python bindingsRené Korthaus2016-02-202-17/+89
| | | | | | | | | | | | | | | | | | | | | | | | Add implementation for ffi botan_x509_cert_get_public_key(). Add subject_dn() function to python x509_cert class. Have python x509_cert constructor take a buffer alternatively. Have python x509_cert functions time_starts() and time_expires() return a python timestamp.
* | | Add more tests for modular inverseJack Lloyd2016-02-212-4/+475
| | | | | | | | | | | | | | | The result of fuzzing with AFL for a while, then running cmin on the result.
* | | Avoid some Wshadows in GCC 4.8Jack Lloyd2016-02-203-11/+10
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | In GCC 4.7 and 4.8, Wshadow also warns if a local variable conflicts with a member function. This was changed in GCC 4.9 (GCC bugzilla 57709) but causes a lot of warnings on Travis which is on 4.8. Clang's Wshadow behaves like GCC 4.9 The worst offendor was Exception's constructor argument being named `what` which conflicts with the member function of the same name, being in a public header this causes so many warnings the Travis log files are truncated. This fixes Exception and a couple of others. Fixing all cases would be a slog that I'm not up for right at the moment.
* | For odd moduli use a input-independent modular inverse algorithm.Jack Lloyd2016-02-207-62/+311
| | | | | | | | Also adds a (not const time) implementation of almost Montgomery reduction.
* | Add tests and timings for inverse_modJack Lloyd2016-02-205-14/+103
| |
* | Merge GH #427 Fix remaining Wshadow warningsJack Lloyd2016-02-2016-106/+111
|\ \
| * | Fix remaining Wshadow warnings and enable on gcc and clangRené Korthaus2016-02-1816-106/+111
| | |
* | | Merge GH #428 Add missing include guardsJack Lloyd2016-02-202-0/+10
|\ \ \
| * | | add missing include guardsDaniel Neus2016-02-192-0/+10
| |/ /
* / / enable noexcept on VS 2015Daniel Neus2016-02-191-1/+1
|/ /
* | correct appveyor matrixDaniel Neus2016-02-171-3/+7
| |
* | add VS2015 jobsDaniel Neus2016-02-171-2/+9
| |