Commit Graph

2365 Commits (84a4e25d07f50b7de7841bfb7fc945eaf9e8d45c)

Author SHA1 Message Date
Jeffrey Walton 84a4e25d07
Fix illegal character in comments
It looks like Gedit's Find/Replace did not work as expected when converting left-quote and right-quote to 8-bit clean ASCII
2017-01-01 07:17:42 -05:00
Jeffrey Walton c0c2851352
Chnage to INT_MAX for NIST DRBGs. Updated documentation 2017-01-01 06:57:27 -05:00
Jeffrey Walton 841c37e347
Add NIST_DRBG::Err class. Add additional checking per SP 800-90A. Update documentation 2017-01-01 05:53:55 -05:00
Jeffrey Walton ef185fa013
Add documentation for NIST_DRBG base class and Hash_DRBG generator 2016-12-31 12:28:41 -05:00
Jeffrey Walton 5c932fcc3b
Add NIST SP800-90A Hash_DRBG generator 2016-12-30 21:46:03 -05:00
Jeffrey Walton 1fe0cc869b
Cleared conversion warning under MSVC 2016-12-30 15:58:01 -05:00
Jeffrey Walton 0774818052 Merge pull request #351 from ka7/spelling_fixes
Spelling fixes in comments
2016-12-28 07:38:13 -05:00
klemens 5a5c633073 spelling fixes 2016-12-27 18:34:57 +01:00
Jeffrey Walton 06f79d904d
Remove vectorization test. This one test needs to be in its own script 2016-12-24 07:25:12 -05:00
Jeffrey Walton 7031fc7f6f
Add test cases for ASN.1 parsing (Issue 346) 2016-12-24 04:56:34 -05:00
Jeffrey Walton b19332a69f
Add additional validations based on X.690 rules
The library was a tad bit fast and loose with respect to parsing some of the ASN.1 presented to it. It was kind of like we used Alternate Encoding Rules (AER), which was more relaxed than BER, CER or DER. This commit closes most of the gaps.

The changes are distantly related to Issue 346. Issue 346 caught a CVE bcause of the transient DoS. These fixes did not surface with negative effcts. Rather, the library was a bit too accomodating to the point it was not conforming
2016-12-24 04:55:21 -05:00
Jeffrey Walton 3475a235bf
Cleared 'warning: field 'm_attachment' will be initialized after field' 2016-12-22 23:45:33 -05:00
Jeffrey Walton d0a6d43e16 Merge pull request #347 from tresorit/fix-asn1-decoder-dos
Fix possible DoS in ASN.1 decoders (CVE-2016-9939)
2016-12-22 21:25:12 -05:00
Jeffrey Walton 182f87eeac
Add info on creating versioned shared object
Also see http://stackoverflow.com/q/41255199
2016-12-22 05:24:16 -05:00
Jeffrey Walton d40b0cdda0
Fix 'grep: repetition-operator operand invalid' 2016-12-22 04:49:24 -05:00
Jeffrey Walton ba585dee4d
Removed 'set -eu'. Its difficult to debug the script when source'ing 2016-12-22 04:39:45 -05:00
denisbider f3474ba157 Updated default Socket::Listen backlog parameter
Default backlog value was 5, which appears to stem back to the maximum supported by Windows Sockets 1. This was bound to cause problems for applications receiving many connections at the same time. Changed to SOMAXCONN, which is the standard way on Windows and POSIX to use a maximum reasonable backlog value.
2016-12-19 11:17:35 -06:00
Jeffrey Walton fa99ece0c5
Add call to ThrowIfInvalidTruncatedSize in SipHash Final 2016-12-18 23:01:33 -05:00
Jeffrey Walton ba00b9e46b
Add debug/release options to cryptest.nmake. Update to make PHONE_APP default for ARM builds 2016-12-18 03:42:34 -05:00
Jeffrey Walton 86b89cd18b
Removed remaining dummy parameters for VC6.0 workarounds (Issue 342) 2016-12-17 22:44:22 -05:00
Jeffrey Walton 7c73f25f12
Updated documentation 2016-12-17 10:46:59 -05:00
Jeffrey Walton cc6702a434
Remove use of temporary t[] for digest calculation. Remove unneeded header. Whitespace 2016-12-17 10:14:37 -05:00
Jeffrey Walton 716cd1fed9
Fix HAVE_CXX14/HAVE_CXX17 typo
This looks like a copy/paste error that has mostly gone unnoticed because many compilers lack support for C++17
2016-12-17 07:56:37 -05:00
Jeffrey Walton 9739ba8afe
Add Aumasson and Bernstein's SipHash (Issue 348) 2016-12-17 03:58:36 -05:00
Jeffrey Walton 05153d9740
Add test for vectorization opportunities 2016-12-14 15:24:29 -05:00
Gergely Nagy 3d9181d7bd Fix possible DoS in ASN.1 decoders (CVE-2016-9939) 2016-12-14 13:19:01 +01:00
Jeffrey Walton 20c5824807
Cleared "Warning: extra ";" ignored" under SunCC 2016-12-14 00:01:53 -05:00
Jeffrey Walton e8dda804de
Switch ECGDSA equation to slightly speed-up signing 2016-12-13 20:31:28 -05:00
Jeffrey Walton 2f1187c799
Fix copy/paste typo in ECGDSA benchmarks 2016-12-13 19:20:38 -05:00
Jeffrey Walton 379e76d27d
Add ECGDSA benchmarks using secp256k1 and sect233r1
Also add missing validation functions to test.cpp. The test and functions were present, but only accessible with 'cryptest.ex v', where all the tests were run
2016-12-13 19:16:21 -05:00
Jeffrey Walton cecf719fcd
Add German digital signature algorithm (ECGDSA) (Issue 113)
Also see ISO/IEC 15946 and http://www.teletrust.de/fileadmin/files/oid/ecgdsa_final.pdf
2016-12-13 16:20:41 -05:00
Jeffrey Walton 1a17ade299
Fixed version numbers
Version numbers are rolled back to update the docs. The rolled back versions got committed with the updated docs
2016-12-11 07:06:38 -05:00
Jeffrey Walton 99ae937d8b
Updated documentation (Issue 121) 2016-12-11 06:56:52 -05:00
Jeffrey Walton 7ece03d762
Updated documentation (Issue 345) 2016-12-11 06:44:18 -05:00
Jeffrey Walton bfbcfeec7c
Update DefaultEncryptor, DefaultEncryptorWithMAC and friends (Issue 345) 2016-12-11 05:09:42 -05:00
Jeffrey Walton c6b529ffd5
Removed unused ecdsa_rfc6979.txt references (Issue 121) 2016-12-11 01:32:58 -05:00
Jeffrey Walton 7e42780517
Add Deterministic DSA and ECDSA Signatures (Issue 121)
Based on Douglas Roark PR 131
2016-12-11 01:02:00 -05:00
Jeffrey Walton 26db40567d
Add Integer Bitops tests (Issue 344) 2016-12-06 20:56:57 -05:00
Jeffrey Walton f197549662
Remove temporary array for SHA1. Whitespace and comments 2016-12-06 11:09:31 -05:00
Jeffrey Walton bfc4bf9697
Updated documentation 2016-12-04 16:48:27 -05:00
Jeffrey Walton d01467b754
Use 'static const int' for constants in Doxygen documentation (Issue 343) 2016-12-04 16:07:10 -05:00
Jeffrey Walton acf15c21c0
Update comments 2016-12-04 13:04:12 -05:00
Jeffrey Walton b4b1b530c1
Updated documentation (Issue 328) 2016-12-04 02:22:52 -05:00
Jeffrey Walton dc572604e0
Updated documentation (Issue 328) 2016-12-04 01:05:59 -05:00
Jeffrey Walton e6f6db5fdf
Updated documentation (Issue 328) 2016-12-04 00:36:03 -05:00
Jeffrey Walton 56a91ca197
Remove last of macros targtting _MSC_VER 1200 (Issue 342) 2016-12-03 21:31:22 -05:00
Jeffrey Walton a274a64058
Fix compile under Visual Studio .Net (Issue 342) 2016-12-03 18:44:48 -05:00
Jeffrey Walton 5ec9763485
Updated documentation 2016-12-03 18:17:10 -05:00
Jeffrey Walton 1b16a75352
Updated documentation (Issue 328) 2016-12-03 17:07:43 -05:00
Jeffrey Walton 7cc8ad1a1d
Updated documentation (Issue 328) 2016-12-03 14:46:52 -05:00