aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib
Commit message (Collapse)AuthorAgeFilesLines
...
| * Add support for XMSS X.509 certificatesRené Korthaus2019-10-218-30/+91
| |
* | Merge GH #2178 FreeBSD build fixJack Lloyd2019-10-241-0/+2
|\ \
| * | FreeBSD build fix.David Carlier2019-10-241-0/+2
| | |
* | | Change limit to 2^24 to properly support 32 bit platformsRené Korthaus2019-10-242-26/+27
| | |
* | | Add check for upper bound of reseed_intervalRené Korthaus2019-10-231-0/+10
|/ /
* / Avoid situation where is_active and is_closed could both return trueJack Lloyd2019-10-221-0/+2
|/ | | | GH #2171
* Merge GH #2169 Fix some warningsJack Lloyd2019-10-2010-3/+16
|\
| * silence trivial warningsNuno Goncalves2019-10-2010-3/+16
| | | | | | | | Signed-off-by: Nuno Goncalves <[email protected]>
* | trick coverity by starting with sizeof-1Nuno Goncalves2019-10-201-4/+4
| | | | | | | | Signed-off-by: Nuno Goncalves <[email protected]>
* | split public interface and recursive implementationNuno Goncalves2019-10-201-2/+8
|/ | | | Signed-off-by: Nuno Goncalves <[email protected]>
* Merge GH #2166 Prefix macro with BOTAN_Jack Lloyd2019-10-191-4/+4
|\
| * prefix macro with BOTAN_Nuno Goncalves2019-10-191-4/+4
| | | | | | | | Signed-off-by: Nuno Goncalves <[email protected]>
* | Suppress unused warning.Tom2019-10-181-0/+1
|/
* Avoid Coverity warning about unreachable codeJack Lloyd2019-10-181-2/+4
|
* Fix arm32 NEON target attribute syntaxJack Lloyd2019-10-181-3/+7
|
* Fix some MSVC warningsJack Lloyd2019-10-183-4/+6
|
* Attempt to address some LGTM warnings in RoughtimeJack Lloyd2019-10-172-2/+7
|
* Fix error messageJack Lloyd2019-10-171-6/+6
|
* Fix coprimality check during prime generationJack Lloyd2019-10-171-27/+21
|
* When generating prime, avoid Lucas test if prob < 32Jack Lloyd2019-10-171-4/+6
| | | | | | | This improves strong prime generation slightly as otherwise we perform two (redundant) Lucas checks on q, first when generating q with weak probability and then a second time when doing the strong confirmation of q if 2*q+1 shows to be prime.
* Merge GH #2158 Include high rest timestamp in RNG additional_data even if ↵Jack Lloyd2019-10-161-3/+4
|\ | | | | | | RDRAND is available
| * Always include a high res timestamp in the RNG additional_dataJack Lloyd2019-10-161-3/+4
| | | | | | | | | | 128 bits of RDRAND output is plenty, and including a timestamp means the AD changes even in RDRAND gets stuck as in the buggy AMD CPUs.
* | Merge GH #2157 Handle new RoughtimeError typeJack Lloyd2019-10-163-0/+5
|\ \
| * | fix missing ErrorType::RoughtimeError on switchesNuno Goncalves2019-10-163-0/+5
| |/ | | | | | | Signed-off-by: Nuno Goncalves <[email protected]>
* | Merge GH #2156 Avoid a warning on x86-32 with GCC 4.9Jack Lloyd2019-10-161-1/+1
|\ \ | |/ |/|
| * Avoid an ABI warning with GCC 4.9Jack Lloyd2019-10-161-1/+1
| | | | | | | | GH #2153
* | Merge GH #2143 Add RoughtimeJack Lloyd2019-10-1612-11/+1305
|\ \
| * | roughtime: decode integer values properly also on big endian arch (fix #2137)Nuno Goncalves2019-10-141-2/+30
| | | | | | | | | | | | Signed-off-by: Nuno Goncalves <[email protected]>
| * | Add roughtime protocolNuno Goncalves2019-10-144-0/+605
| | | | | | | | | | | | Signed-off-by: Nuno Goncalves <[email protected]>
| * | Add UDP clientNuno Goncalves2019-10-143-0/+412
| | | | | | | | | | | | Signed-off-by: Nuno Goncalves <[email protected]>
| * | Add URI class to parse IPv4, IPv6 and domain names together with port numberNuno Goncalves2019-10-142-0/+232
| | | | | | | | | | | | Signed-off-by: Nuno Goncalves <[email protected]>
| * | Style fixNuno Goncalves2019-10-141-11/+5
| | | | | | | | | | | | | | | * remove always false ec check * make write and read some similar: use asio member functions and anonymous lambda in both
| * | Add missing define of _WINSOCKAPI_ to avoid unintentional of winsockNuno Goncalves2019-10-141-0/+1
| | | | | | | | | | | | Signed-off-by: Nuno Goncalves <[email protected]>
| * | Add additional typecast and several static_assertsNuno Goncalves2019-10-141-0/+22
| |/ | | | | | | Signed-off-by: Nuno Goncalves <[email protected]>
* | Merge GH #2147 Add constant-time gcd computationJack Lloyd2019-10-163-16/+52
|\ \
| * | Add constant-time gcdJack Lloyd2019-10-123-16/+52
| | | | | | | | | | | | | | | Previous version leaked some (minimal) information from the loop bounds.
* | | Merge GH #2148 Improve RSA key generation performanceJack Lloyd2019-10-161-31/+65
|\ \ \
| * | | Improve speed of prime generation especially for RSA keygenJack Lloyd2019-10-121-31/+65
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In RSA keygen we have to verify that p-1 and e are coprime. But this is expensive to compute. So first do a single round of Miller-Rabin primality test; only if that passes do we test coprimality. Improves RSA keygen times notably. All times averaged over many keygens: 1024-bit 21.74 ms -> 10.78 ms 2048-bit 94.93 ms -> 62.80 ms 3072-bit 296.79 ms -> 198.12 ms 4096-bit 738.07 ms -> 499.10 ms
* | | Merge GH #2149 Fix a leak in TPM interfaceJack Lloyd2019-10-162-5/+7
|\ \ \ | |_|/ |/| |
| * | TPM : Making policy as member of the consumer class.David Carlier2019-10-132-5/+7
| |/
* | Update DLIES in the same wayJack Lloyd2019-10-131-10/+6
| | | | | | | | GH #2050
* | Add a more explicit exception to catch cases where app doesn't set IVJack Lloyd2019-10-131-0/+5
| |
* | Always try to use an IV with ECIESJack Lloyd2019-10-131-8/+3
| | | | | | | | | | | | | | | | If the mode requires an IV, and the user did not set an IV with set_initialization_vector, then previously some hard to understand errors would occur. GH #2150
* | Fix CCM bugJack Lloyd2019-10-131-0/+8
|/ | | | | | It would accept finish() even if no nonce was set GH #2150
* Enable SSE2 for RDSEEDJack Lloyd2019-10-091-0/+1
| | | | Fixes #2139
* Improve Doxygen front page referencesJack Lloyd2019-10-071-2/+2
|
* Fix warning in XTSJack Lloyd2019-10-061-1/+1
|
* Throw if you attempt to use GOST 34.10-2012 with invalid paramsJack Lloyd2019-10-062-6/+26
| | | | It can only be used with 256 or 512 bit params, so enforce that.
* fix for botan issue #2128: klocwork warning - get_affine_x() andMartin Ostertag2019-10-022-6/+6
| | | | get_affine_y()
* Have Clang print the deprecated messageJack Lloyd2019-10-011-1/+1
| | | | | | | | | | | I cannot figure out exactly when Clang started supporting a message on the deprecated attribute. It is documented as supporting such for 3.9. But in 3.8.0 and all earlier versions of the reference, the deprecated attribute isn't mentioned at all. Just enable it for all versions. If there happens to be a version of Clang which both doesn't support messages on deprecated attributes but can otherwise sucessfully compile the library, someone will probably tell us about it.