Commit Graph

627 Commits (3a08e02f71905b77ca7852c09c8a1b46f13a8049)

Author SHA1 Message Date
Jeffrey Walton 3a08e02f71 Cleared Issue #5. Thanks to Jonathan Wakely for the patch 2015-07-16 17:11:01 -04:00
Jeffrey Walton 06ea2d2952 Cleared Cygwin i386 crash at -O3 due to unaligned data access and vectorization 2015-07-16 00:50:13 -04:00
Jeffrey Walton 04429b291d Added targets for UBsan and Asan 2015-07-16 00:47:09 -04:00
Jeffrey Walton c3c9f2f114 Cleared Issue #6. Thanks to Jonathan Wakely for reporting 2015-07-16 00:43:38 -04:00
Jeffrey Walton 00cc470f04 Folded OPTIMIZE and SYMBOLS back into CXXFLAGS (we can use 'subst' to modify CXXFLAGS). Moved Cygwin work arounds into block guarded by IS_X86 (Cygwin only runs on Windows) 2015-07-15 19:03:49 -04:00
Jeffrey Walton 857d7c84d1 Cleared UBsan error of "load of value 127, which is not a valid value for type 'bool'" by initializing negateNext 2015-07-15 17:48:43 -04:00
Jeffrey Walton 866fbeb8e4 Cleared compile error masked behind ASSERT 2015-07-14 01:25:59 -04:00
Jeffrey Walton 828c550389 Cleared C4242 warning uder Visual Studio 2015-07-13 23:59:01 -04:00
Jeffrey Walton 01caf892e0 Whitespcae check-in 2015-07-13 23:20:36 -04:00
Jeffrey Walton 9bf0eed0f6 Cleared crash with GCC 4.8 and above and -O3. In a nutshell, it was due to vectorization and alignment violations agains the vmovdqa instruction 2015-07-13 22:53:16 -04:00
Jeffrey Walton e78b8fe1df Cleared warnings on WindowSlider struct 2015-07-13 21:40:42 -04:00
Jeffrey Walton b5ed163c87 Cleared UBSan warnings reported by Jonathan Wakely. Cleared many issues reported in GitHub Issue 4 (its a rollup of -fsanitize=undefined) 2015-07-13 20:37:34 -04:00
Jeffrey Walton c6abf130eb Moved GCC_DIAGNOSTIC_AWARE and GCC_OPTIMIZE_AWARE into misc.h 2015-07-13 00:39:13 -04:00
Jeffrey Walton 12931b3301 Cleared signed/unsigned warning on IncrementCounterByOne 2015-07-12 18:32:10 -04:00
Jeffrey Walton 02dff96e97 Cleared signed/unsigned warning using GCC __builtin_XXX 2015-07-12 18:19:46 -04:00
Jeffrey Walton 981b4c9d04 Added test for 'v<0' in GetAsUIntValue 2015-07-09 05:24:10 -04:00
Jeffrey Walton 8ed9bc7f1f Fixed multiarch detection on OS X 2015-07-09 02:19:15 -04:00
Jeffrey Walton 6556d68543 Added test suites for HKDF 2015-07-09 01:38:05 -04:00
Jeffrey Walton 69e1017ac5 Added Crypto++ artifacts to .gitignore 2015-07-09 01:36:37 -04:00
Jeffrey Walton 94f28091e8 GNUmakefile improvements. Changed default optimization level to -O3, except on Cygwin. Added IS_DARWIN for consistency 2015-07-08 15:34:23 -04:00
Jeffrey Walton 6cfee97b27 Merge branch 'master' of https://github.com/weidai11/cryptopp 2015-07-08 15:31:44 -04:00
Jeffrey Walton 217cb1f983 GNUmakefile improvements. Changed default optimization level to -O3, except on Cygwin. Added IS_DARWIN for consistency 2015-07-08 15:31:33 -04:00
Jeffrey Walton d091b803c6 Added GetAsUIntValue{WithDefault} to help manage signed/unsigned warnings. The value is still written as an signed int; but its retrieved, range checked and then returned as an unsigned int 2015-07-07 19:46:09 -04:00
Jeffrey Walton 8393eeb409 Static and constness to arrays 2015-07-05 19:23:18 -04:00
Jeffrey Walton 8386b3f139 Guarded COUNTOF macro. Thanks to Graham Bull for the suggestion 2015-07-05 17:53:42 -04:00
Jeffrey Walton aa8bb8c5cd Added cryptopp.mac.done to ignores after tests full Visual Studio solution 2015-07-03 18:59:37 -04:00
Jeffrey Walton 21527f8f73 Cut-over to COUNTOF in source files 2015-07-03 17:16:05 -04:00
Jeffrey Walton f2379159f8 Added COUNTOF to misc.h to count elements in an array (fails on pointers). Moved CRYPTOPP_UNUSED to misc.h 2015-07-03 15:40:44 -04:00
Jeffrey Walton 63dd0f5f54 Added diff and patch files to the ignore list 2015-07-03 10:33:45 -04:00
Jeffrey Walton 18070eb093 Cleared "Access declarations are deprecated..." warning under MinGW 2015-07-03 10:27:17 -04:00
Jeffrey Walton 1f0c35e669 Cleared initialization warning related to use of brackets 2015-07-02 21:25:39 -04:00
Jeffrey Walton b2820c28d3 Fixed spelling error in attribution 2015-07-02 17:48:45 -04:00
Jeffrey Walton 260810ce63 Implmented Bernstein\'s Tweaked Roots for Rabin-Williams signatures. Thanks to Evgeny Sidorov for suggesting it 2015-07-02 17:41:19 -04:00
Jeffrey Walton 70bddb83ef Cleared unused function warnings 2015-07-01 21:35:19 -04:00
Jeffrey Walton ea75b3ae5f Added Base64URLEncoder and decoder for web safe alphabet from RFC 4648, Section 5. Discussion at https://groups.google.com/d/msg/cryptopp-users/OF5RPXW-cHw/EDrOuA4-rRYJ 2015-07-01 21:06:29 -04:00
Jeffrey Walton 99ed4c86db Added PHONY targets for clean, install and remove 2015-06-30 22:41:47 -04:00
Jeffrey Walton 91b0730c33 Fixed compile on Cygwin x86_64. Thanks to Alex Afanasyev 2015-06-30 22:25:15 -04:00
Jeffrey Walton 1d8934e5b7 Removed -fPIC for Cygwin x86_64 compiles 2015-06-30 22:06:59 -04:00
Jeffrey Walton 79c9348599 Fixed spelling error in attribution 2015-06-30 15:58:02 -04:00
Jeffrey Walton bb0d9c7caf Cleared warning on operator precedence 2015-06-29 09:46:48 -04:00
Jeffrey Walton 457eaeaf23 Static analysis showed the unsigned int y is truncated to an unsigned char via _rotr16. It does not appear to be a problem with the library, but it may be a problem for users. The assert will alert in Debug builds (but not Release builds) 2015-06-29 08:38:38 -04:00
Jeffrey Walton e67480dd9e Enabled security related warnings; see http://blogs.msdn.com/b/vcblog/archive/2010/12/14/off-by-default-compiler-warnings-in-visual-c.aspx 2015-06-29 05:49:40 -04:00
Jeffrey Walton a14a5696e1 Added GCC_DIAGNOSTIC_AWARE to help suppress some warnings on contemporary compilers. The macro was needed to help with managing old compilers, like GCC 4.2.1, present on OpenBSD 2015-06-29 02:09:02 -04:00
Jeffrey Walton 44a5c2c860 Added Crypto++ specific ignores to the list 2015-06-29 00:53:14 -04:00
Jeffrey Walton dd22311acd Fix cross-pollination of other changes to validat2.cpp 2015-06-28 23:12:09 -04:00
Jeffrey Walton b51c3ea0b5 Modified validation suite to use VerifyBufsEqual rather than memcmp. VerifyBufsEqual is a constant time compare, so it serves to educate users on the function to call to use 2015-06-28 23:06:12 -04:00
Jeffrey Walton a0390f1fd7 Added inline to StringNarrow to squash unused function warning 2015-06-28 22:21:57 -04:00
Jeffrey Walton 9425e16437 Fix for CVE-2015-2141. Thanks to Evgeny Sidorov for reporting. Squaring to satisfy Jacobi requirements suggested by JPM. 2015-06-27 17:56:01 -04:00
Jeffrey Walton cf08f3e98d Remove dSYM directory for OS X during clean 2015-06-24 15:57:17 -04:00
Jeffrey Walton 2afb07c427 Removed execute bit from other project files 2015-06-24 15:44:20 -04:00