Jeffrey Walton
a89a27b72c
Attempt to keep Clang out of other compiler paths (GH #147 )
2023-06-25 18:28:11 -04:00
Jeffrey Walton
a23f78d116
Fix release fence in Singleton::Ref (GH #1208 )
2023-06-25 16:57:50 -04:00
Jeffrey Walton
2656d80959
Prepare for Crypto++ 8.8 release
2023-06-25 02:59:39 -04:00
Jeffrey Walton
1e9e6e137a
Prepare for Crypto++ 8.7.1 release
2023-06-24 23:45:48 -04:00
Jeffrey Walton
d6bc19da7f
Update comments
2023-06-24 22:51:26 -04:00
Jeffrey Walton
acb48cc180
Update comments in UnsignedMin
2023-06-24 03:09:00 -04:00
Jeffrey Walton
f156aeba4b
Avoid std::is_unsigned
...
Use of std::is_unsigned and friends caused lots of compile failures in C++11 and above. So much for that idea...
2023-06-24 02:52:44 -04:00
Jeffrey Walton
3b1cf30f1b
Guard use of std::numeric_limits<word128>::max()
...
Apple Clang has the problem. Limit the work around to just Apple Clang.
2023-06-23 17:04:38 -04:00
Jeffrey Walton
12c6a9032b
Use unsigned types with UnsignedMin
2023-06-23 16:51:05 -04:00
irwir
a5f47381b5
Fix macro and member function confilct for min and max (GH #1214 )
2023-06-23 14:09:08 -04:00
Jeffrey Walton
0cf084506d
Add remainder of SafeConvert specializations
2023-06-23 04:08:58 -04:00
Jeffrey Walton
37846e0509
Fix SafeConvert on 32-bit platofrms
2023-06-23 02:52:15 -04:00
Jeffrey Walton
a58a783529
Update docs
2023-06-23 01:59:20 -04:00
Jeffrey Walton
7e631380cc
Add specialization for SafeConvert
2023-06-23 01:49:42 -04:00
Jeffrey Walton
823ceca743
Update docs
2023-06-23 01:19:28 -04:00
Jeffrey Walton
a9d062bf76
Add specialization for SafeConvert
2023-06-23 01:12:38 -04:00
Jeffrey Walton
143b9d2619
Add specialization for SafeConvert
2023-06-23 00:24:04 -04:00
Jeffrey Walton
df86e69902
Add specialization for SafeConvert
2023-06-23 00:13:16 -04:00
Jeffrey Walton
ddb8f36e88
Fix use of <x86intrin.h> for MSVC (GH #1198 )
...
It seems Microsoft now defines GCC defines, like __BMI__
2023-04-15 18:21:03 -04:00
Jeffrey Walton
f5f63850f9
Use std namespace for memset, memcpy, memcmp ( #1204 )
2023-04-15 16:45:02 -04:00
Jeffrey Walton
c07c53ae41
Cleanup after merging PR #1043
2022-02-14 09:08:10 -05:00
ejl103
e06bac5bfc
Fix issue with VS runtime checks for data truncation ( #1043 )
...
When running VS with the 'c' runtime check on for data truncation (see https://docs.microsoft.com/en-us/cpp/build/reference/rtc-run-time-error-checks?view=msvc-160 )
This code will throw errors because the 64 bit ptr gets truncated to a 32bit value. Normally I'd disable this using the pragma specifically for this code, but sadly that doesn't work for template functions, so I have come up with a way to get the appropriate masking type for any template combinations and using the recommended way to silence the error without impacting the quality of the generated code.
This code could be more concise in modern C++ but it seems the project expects to support C++03 so this should work fine there.
All tests passed locally for me on Windows (some asserts but verified they were the same before my changes)
2022-02-14 09:02:13 -05:00
Jeffrey Walton
47a6d46db7
Clear unused variable warnings
2022-01-13 03:45:43 -05:00
Jeffrey Walton
10bba4e54d
Add word128 overloads to misc.h
2022-01-13 03:09:28 -05:00
Jeffrey Walton
dc8e27c400
Update documentation
2022-01-13 03:08:10 -05:00
Jeffrey Walton
8f7304b61e
Add ByteReverse(word128 value)
...
This speeds up XTS mode on x86_64 by 0.11 cpb
2022-01-12 10:26:25 -05:00
Jeffrey Walton
62d7819062
Update documentation
2021-03-10 01:07:12 -05:00
Jeffrey Walton
3a74e072a5
Fix spelling
2021-03-10 00:55:57 -05:00
Jeffrey Walton
f7e6af6344
Add EnumToInt conversion macro for enum-enum conversion warnings (GH #1016 )
2021-03-09 22:51:19 -05:00
Jeffrey Walton
9fe5ccfbee
Revert e235ac57e8
(GH #992 )
...
These damn aligned arrays are going to be the death of us...
2020-12-28 21:32:29 -05:00
Jeffrey Walton
e235ac57e8
Use pointer-to-T in IsAligned<T> (GH #992 )
2020-12-28 07:12:28 -05:00
Jeffrey Walton
a0e960059f
Update documentation
2020-12-25 00:49:48 -05:00
Jeffrey Walton
e61f5e0c79
Update documentation
2020-12-25 00:43:01 -05:00
Jeffrey Walton
b20bd360fc
Update documentation
2020-12-25 00:40:54 -05:00
Jeffrey Walton
ac6987f3ae
Use \return and \throw consitently in the docs
2020-12-07 23:35:10 -05:00
Jeffrey Walton
2ec97f4676
Fix Clang version numbers for memset_z
2020-09-15 00:37:47 -04:00
Jeffrey Walton
a6ca1f3195
Update documentation (GH #966 )
2020-09-15 00:34:39 -04:00
Jeffrey Walton
2c6e4b17d7
Use define CRYPTOPP_CXX11_STATIC_INIT name
2020-08-07 19:11:47 -04:00
Jeffrey Walton
36c9ecd66d
Remove __BIGGEST_ALIGNMENT__ from GetAlignmentOf
2020-08-06 06:19:25 -04:00
Jeffrey Walton
3f73f709b8
Use CRYPTOPP_CXX11_ATOMIC define
2020-08-06 03:08:37 -04:00
Jeffrey Walton
66d7a2a604
Fix define CRYPTOPP_CXX17_STATIC_ASSERT name
...
That's a C++17 feature, not C++11
2020-08-05 23:29:10 -04:00
Jeffrey Walton
4183eaa514
Fix spelling
2020-07-07 15:36:39 -04:00
Jeffrey Walton
96172f95ab
Whitespace check-in
2020-05-11 13:15:41 -04:00
Jeffrey Walton
53c03d2b3c
Clean GCC 10 Analyzer warnings
2020-05-11 12:49:15 -04:00
Jeffrey Walton
a647cbb00f
Clean GCC 10 Analyzer warnings
2020-05-10 18:44:24 -04:00
Jeffrey Walton
680956e134
Clean GCC 10 Analyzer warnings
2020-05-10 01:25:39 -04:00
Jeffrey Walton
f6ff499035
Clear signed/unsigned warnings under Clang
2019-10-05 21:16:07 -04:00
Jeffrey Walton
589c25264a
Don't add semicolon to CRYPTOPP_CONSTANT abd DOCUMENTED_TYPEDEF (GH #889 )
...
This issue is a recurring issue. Let's try fixing it in the #define this time.
2019-10-03 19:40:53 -04:00
Jeffrey Walton
366fdce86f
Add BytePtr and ConstBytePtr overloads for SecByteBlock (GH #890 )
2019-10-03 04:12:16 -04:00
Jeffrey Walton
1190da17ea
Avoid circular dependency using AlignedAllocate (GH #885 )
2019-09-28 18:22:11 -04:00