Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Use std namespace for memset, memcpy, memcmp (#1204) | Jeffrey Walton | 2023-04-15 | 1 | -7/+7 |
| | |||||
* | Fix typos (PR# 1099) | Dimitris Apostolou | 2022-01-04 | 1 | -3/+3 |
| | |||||
* | Avoid word ops for Integer And, Or, Xor | Jeffrey Walton | 2021-10-10 | 1 | -6/+18 |
| | |||||
* | Optimize Integer bit operations fix (GH #1072) | Jeffrey Walton | 2021-10-08 | 1 | -24/+30 |
| | | | | This fix uses IntegerSecBlock directly. It avoids the potential second allocation during Grow at the expense of a potential slightly larger SecBlock | ||||
* | Fix undersized SecBlock buffer in Integer bit operations (GH #1072) | Jeffrey Walton | 2021-10-08 | 1 | -0/+18 |
| | |||||
* | Add octal and decimal literal prefix to Integer class | Jeffrey Walton | 2021-09-19 | 1 | -3/+19 |
| | |||||
* | Tighten assert on Integer::OpenPGPEncode | Jeffrey Walton | 2020-12-08 | 1 | -2/+2 |
| | |||||
* | Use define CRYPTOPP_CXX11_STATIC_INIT name | Jeffrey Walton | 2020-08-07 | 1 | -3/+3 |
| | |||||
* | Update comments | Jeffrey Walton | 2019-10-19 | 1 | -40/+15 |
| | |||||
* | Use umulh for Aarch64 multiply | Jeffrey Walton | 2019-10-18 | 1 | -1/+3 |
| | | | | This saves about 30% on the Integer multiply operations. For example, RSA 1024 encryption goes from 0.068 to 0.044 ms/op. RSA 2048 goes from 0.170 to 0.100 ms/op. We should have taken this sooner. Ugh... | ||||
* | Update comments | Jeffrey Walton | 2019-06-09 | 1 | -7/+7 |
| | |||||
* | Disable BMI2 code paths in Integer class (GH #850) | Jeffrey Walton | 2019-06-01 | 1 | -1/+7 |
| | |||||
* | Use BMI2 when available for MultiplyWordsLoHi, MulAcc and friends | Jeffrey Walton | 2019-05-31 | 1 | -5/+6 |
| | | | | Using BMI2 saves about 0.03 ms on a Core i5 6400 @ 2.7 GHz. It is small but measurable. It also gives GCC more freedom in selecting memory or register operands | ||||
* | Use BMI2 when available for MultiplyWordsLoHi, MulAcc and friends | Jeffrey Walton | 2019-05-31 | 1 | -0/+7 |
| | | | | Using BMI2 saves about 0.03 ms on a Core i5 6400 @ 2.7 GHz. It is small but measurable. It also gives GCC more freedom in selecting memory or register operands | ||||
* | Clear UBsan warning -Wstringop-overflow | Jeffrey Walton | 2019-04-27 | 1 | -2/+11 |
| | |||||
* | Use IsPowerOf2 in Integer::Divide | Jeffrey Walton | 2019-02-05 | 1 | -1/+3 |
| | |||||
* | Update comments | Jeffrey Walton | 2019-02-05 | 1 | -24/+36 |
| | |||||
* | Fix _M_IX86 typo | Jeffrey Walton | 2019-01-04 | 1 | -1/+1 |
| | |||||
* | Use Microsoft x86-beased defined for __emulu | Jeffrey Walton | 2019-01-04 | 1 | -1/+1 |
| | |||||
* | Fix Integer ARM64 compile with MSVC compiler (GH #776) | Jeffrey Walton | 2019-01-03 | 1 | -1/+1 |
| | |||||
* | Add CRYPTOPP_DISABLE_MIXED_ASM define and feature test (GH #756, PR #757) | Jeffrey Walton | 2018-12-05 | 1 | -1/+1 |
| | |||||
* | Add IBM XLC init priority support | Jeffrey Walton | 2018-11-30 | 1 | -3/+10 |
| | |||||
* | Sync CRYPTOPP_{BIG|LITTLE}_ENDIAN with Autotools | Jeffrey Walton | 2018-10-28 | 1 | -2/+2 |
| | | | | Autotools sets up its config.h file with the '#define XXX 0' or '#define XXX 1' pattern. This check-in makes the sources Autotools aware. We need to verify CMake does the same | ||||
* | Revert "Sync CRYPTOPP_{BIG|LITTLE}_ENDIAN with Autotools" | Jeffrey Walton | 2018-10-28 | 1 | -1/+1 |
| | | | | This reverts commit 04306f86ac36. It broke GCC 4.8 on PowerPC. | ||||
* | Sync CRYPTOPP_{BIG|LITTLE}_ENDIAN with Autotools | Jeffrey Walton | 2018-10-27 | 1 | -1/+1 |
| | |||||
* | Avoid Singleton when possible (GH #708) | Jeffrey Walton | 2018-08-22 | 1 | -4/+4 |
| | | | | Also clear several sign conversion warnings | ||||
* | Update comments | Jeffrey Walton | 2018-08-22 | 1 | -7/+5 |
| | |||||
* | Update comments in integer.cpp | Jeffrey Walton | 2018-08-21 | 1 | -0/+5 |
| | |||||
* | Update comments in integer.cpp | Jeffrey Walton | 2018-08-21 | 1 | -19/+31 |
| | |||||
* | Avoid std::call_once (GH #707) | Jeffrey Walton | 2018-08-21 | 1 | -66/+74 |
| | | | | | This commit also favors init priorities over C++ dynamic initialization. After the std::call_once problems on Sparc and PowerPC I'm worried about problems with Dynamic Initialization and Destruction with Concurrency. We also do away with supressing warnings and use CRYPTOPP_UNUSED instead. | ||||
* | Fix compile on Visual Studio 2005 without serve packs | Jeffrey Walton | 2018-08-20 | 1 | -1/+1 |
| | |||||
* | Use IsZero()/NotZero() for 0 denominator test | Jeffrey Walton | 2018-07-03 | 1 | -4/+4 |
| | |||||
* | Use '*this >= m' for InverseMod reduction | Jeffrey Walton | 2018-03-26 | 1 | -3/+3 |
| | | | | The previous test used '*this > m', which did not capture 'm' | ||||
* | Fix a_exp_b_mod_c and divide by 0 (GH #604) | Jeffrey Walton | 2018-03-25 | 1 | -0/+6 |
| | |||||
* | Add additional Integer class tests | Jeffrey Walton | 2018-03-25 | 1 | -1/+6 |
| | |||||
* | Fix incorrect InverseMod (GH #602) | Jeffrey Walton | 2018-03-25 | 1 | -2/+1 |
| | | | | | | | | cryptest.sh revealed a corner case still producing an incorrect result. We need to check for '*this > m', not '*this > 2m-1'. The corner case looks obscure. The failure surfaced as 1 failed self test for about every 2048 tests. It was also in a code path where 'a' was explicitly set to '2m-1', with 'm' random. The test result can be duplicated with 'cryptest.exe v 9996 1521969687'. The value '1521969687' is a seed for the random number generator to reproduce. | ||||
* | Fix incorrect InverseMod (GH #602) (#603) | Jeffrey Walton | 2018-03-25 | 1 | -3/+17 |
| | |||||
* | Clear clang-tidy warnings | Jeffrey Walton | 2018-01-24 | 1 | -25/+15 |
| | |||||
* | Add CRYPTOPP_TABLE, remove CRYPTOPP_SECTION | Jeffrey Walton | 2018-01-21 | 1 | -1/+5 |
| | |||||
* | Clear clang-tidy warnings | Jeffrey Walton | 2018-01-02 | 1 | -8/+12 |
| | | | | This commit also tweaks the way Integer parses byte arrays. The modified routines are slightly faster. On a Core-i5 6400 the self tests are 0.1 to 0.2 seconds faster | ||||
* | Provide virtual destructor for Threefish_Base | Jeffrey Walton | 2017-11-19 | 1 | -34/+50 |
| | |||||
* | Fix SunCC 12.2 compile | Jeffrey Walton | 2017-11-13 | 1 | -5/+6 |
| | |||||
* | Reduce C++ file scope class objects | Jeffrey Walton | 2017-11-12 | 1 | -70/+62 |
| | | | | Update comments and documentation | ||||
* | Prefix IS_LITTLE_ENDIAN and IS_BIG_ENDIAN with CRYPTOPP | Jeffrey Walton | 2017-11-10 | 1 | -2/+2 |
| | |||||
* | Revert "Bump Visual Studio version number for checked iterators (GH #496)" | Jeffrey Walton | 2017-09-13 | 1 | -1/+1 |
| | | | | This reverts commit 3b6e17b1. The version in Master was correct. The version the OP was using was incorrect. | ||||
* | Bump Visual Studio version number for checked iterators (GH #496) | Jeffrey Walton | 2017-09-13 | 1 | -1/+1 |
| | |||||
* | Remove BOOL macro value (GH #462) | Jeffrey Walton | 2017-08-20 | 1 | -6/+4 |
| | | | | Currently the CRYPTOPP_BOOL_XXX macros set the macro value to 0 or 1. If we remove setting the 0 value (the #else part of the expression), then the self tests speed up by about 0.3 seconds. I can't explain it, but I have observed it repeatedly. This check-in prepares for the removal in Upstream master | ||||
* | Fix Windows compilation issues (by RaptorFactor) (#444) | Marcel Raad | 2017-07-17 | 1 | -0/+2 |
| | | | | | | | | | | | | * Fix compilation on Windows with /DUNICODE * Fix linking of fipstest for MSVC targeting ARM (__crt_debugger_hook is not available). * Fix build for Clang on Windows with optimizations on. * Fix a warning about a non-existant warning under Clang. * Fix compilation under Intel C++ 18.0 on Windows | ||||
* | Clear coverity finding CONSTANT_EXPRESSION_RESULT (CID 147833) | Jeffrey Walton | 2017-05-20 | 1 | -1/+1 |
| | |||||
* | Switch to _MSC_FULL_VER for SP1 releases | Jeffrey Walton | 2017-05-11 | 1 | -1/+1 |
| |