Commit Graph

2357 Commits

Author SHA1 Message Date
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
Jeffrey Walton
d45763a7ae
Removed CRYPTOPP_DISABLE_X86ASM macro (Issue 70) 2016-12-03 05:16:23 -05:00
Jeffrey Walton
ba75834ae9
Removed VC++ 5.0 and 6.0 workarounds (Issue 342) 2016-12-03 05:05:56 -05:00
Jeffrey Walton
bded4d385f
Commented typedef guarded by CRYPTOPP_MAINTAIN_BACKWARDS_COMPATIBILITY
The typedefs were only commented so folks could search for a missing symbol, like Crypto++ 4.0 PK_FixedLengthEncryptor or PK_FixedLengthDecryptor
This is a distinct change from CRYPTOPP_MAINTAIN_BACKWARDS_COMPATIBILITY_562
2016-12-03 00:58:54 -05:00
Jeffrey Walton
f06c968b62
Fix member function already defined under Win32 (Issue 70) 2016-12-03 00:44:44 -05:00
Jeffrey Walton
40230dd3bf
Removed MAINTAIN_BACKWARDS_COMPATIBILITY_562 (Issue 70) 2016-12-03 00:32:07 -05:00
Jeffrey Walton
6eb2792bc2
Silence select conversion warnings (Issue 340) 2016-12-02 14:47:31 -05:00
Jeffrey Walton
3fff6251aa
Fix anachronism warning for *_HashBlocks functions under Win64 2016-12-02 00:41:13 -05:00
Jeffrey Walton
b896c13bcb
Fix missing __fastcall for *_HashBlocks functions under Win32 2016-12-02 00:25:58 -05:00