Commit Graph

6471 Commits

Author SHA1 Message Date
Jeffrey Walton
60f81a77e0
Fix spurious assert (GH #1279) 2024-06-23 11:59:34 -04:00
Jeffrey Walton
9aa07aebbd
Guard use of ModularSquareRoot (GH #1249) 2024-06-10 10:27:30 -04:00
Jeffrey Walton
9bb6680cfa
Clear GCC overflow warning 2024-04-25 01:33:44 -04:00
Snoppy
c2bd7efb49
chore: fix typos (#1274)
Signed-off-by: snoppy <michaleli@foxmail.com>
2024-04-23 10:04:07 -04:00
Jeffrey Walton
782057f5f1
Add OID::operator> for PEM Pack 2024-02-07 00:03:38 -05:00
Jeffrey Walton
442d9ee435
Update documentation 2024-02-06 20:48:08 -05:00
Jeffrey Walton
5cf87aed66
Set MAKEJOBS in cryptest-pem.sh 2024-02-05 10:54:48 -05:00
Jeffrey Walton
93208e8393
Update comments 2023-11-20 02:41:32 -05:00
Jeffrey Walton
641ae35258
Validate PolynomialMod2 coefficients
Thanks to Bing Shi
2023-11-20 01:36:15 -05:00
Jeffrey Walton
eb383b8e16
Update docs
Thanks to Bing Shi
2023-11-19 20:32:16 -05:00
Jeffrey Walton
3e3b8af96d
Add check for 128-bit pointers
Thanks to Andy Polyakov
2023-11-06 14:58:17 -05:00
Jeffrey Walton
c0e15c066e
Add check for 128-bit pointers
Thanks to Andy Polyakov
2023-11-06 10:13:03 -05:00
Jeffrey Walton
1e20219ecd
Add separate ASM file for XGETBV64 and CPUID64 to Visual Studio cryptdll project (GH #1240)
Also see the comment in Commit 0432085157, where OgreTransporter made a comment about the deprecated cryptdll.vcxproj project.
2023-10-21 20:01:14 -04:00
Jeffrey Walton
af7d1050bf
Fix CPU feature detection on older Celerons 2023-10-12 02:28:24 -04:00
Jeffrey Walton
19f0e3aa1e
Try fix build on MSYS2 using Clang in CLANG64 environment (GH #1241)
More Clang troubles...
2023-10-06 00:46:30 -04:00
Jeffrey Walton
0432085157
Add separate ASM file for XGETBV64 and CPUID64 (GH #1240)
This will allow us to define CRYPTOPP_DISABLE_ASM and completely avoid building x64dll.asm and x64masm.asm
2023-10-06 00:33:33 -04:00
Jeffrey Walton
3405dcee96
Guard use of zip and unzip
Uncovered on the newly minted GCC119, which is an AIX box.
2023-10-02 11:58:23 -04:00
Jeffrey Walton
49fef81923
Update comments for CRYPTOPP_DISABLE_ASM 2023-10-02 05:56:48 -04:00
Jeffrey Walton
121014baf0
Return 0-values for XGETBV64 and CPUID64 when CRYPTOPP_DISABLE_ASM is in effect (GH #1240)
Some folks were defining CRYPTOPP_DISABLE_ASM and not building the *.asm files on WIndows. That happened to work until we refactored code for XGetBV and CpuId.

These alternate build systems are going to be the death of us...
2023-10-02 05:25:39 -04:00
Jeffrey Walton
843d74c7c9
Prepare for Crypto++ 8.9 release 2023-10-01 12:40:32 -04:00
Jeffrey Walton
45f8a77f4e
Fix SIMON128 when running on POWER8 and above (GH #1237)
This was an Asan failure uncovered by cryptest.sh
2023-09-30 23:16:03 -04:00
Jeffrey Walton
34151a54f6
Update comments 2023-09-30 22:00:20 -04:00
Jeffrey Walton
47222de4b7
Clear elevated warnings in ARIA and HIGHT
Related to fixes from GH #1235 and GH #1234
2023-09-30 13:52:56 -04:00
Jeffrey Walton
4e09f1e436
Reduce size of working space in ARIA 2023-09-30 13:51:53 -04:00
Jeffrey Walton
1143c7c2cc
Speedup ARIA ARIA_GSRK
Now that the function is using an array of word32 for round keys, we don't need the PutWord gyrations.
2023-09-30 06:06:03 -04:00
Jeffrey Walton
d3d23002f6
Use SecWordBlock for ARIA round keys
This may allow the compiler to optimize ARIA_GSRK. Instead of a memcpy, the memory can be used as a word32.
2023-09-30 05:47:12 -04:00
Jeffrey Walton
9ac6907944
Remove shady word32* casts in ARIA 2023-09-30 04:56:34 -04:00
Jeffrey Walton
dde8e9fa23
Fix ARIA when XOR'ing final block (GH #1235)
This is another mystery to me. I do not know why unrolling the XOR into building of outBlock fixes this problem.
2023-09-30 03:26:24 -04:00
Jeffrey Walton
5250ab2bf2
Remove ARIA SIMD code (GH #1235)
ARIA SIMD code existed to perform an XOR and the end of encryption and decryption. It was a lot of work to save for the final XOR.
Worse, the final XOR seemed to be causing problems as described in GH #1235. Once we unrolled the XOR and used them when building outBlock, the 1235 issue went away.
2023-09-30 03:11:15 -04:00
Jeffrey Walton
8d3e357c9c
Add asserts to CFB_ModePolicy::SetFeedbackSize 2023-09-30 02:49:50 -04:00
Jeffrey Walton
2e23f6482a
Remove volatile cast gyrations in strciphr.cpp (GH #1231)
It turns out we went down a rabbit hole when we added the volatile cast gyrations in an attempt to change the compiler behavior. We are seeing the same failures from AES, Rabbit, HIGHT, HC-128 and HC-256 with and without the gyrations.
We were able to work out the problems with Rabbit, HIGHT, HC-128 and HC-256. See GH #1231 and GH #1234.
We are also not able to successfully cut-in Cryptogams AES on ARMv7, so it is now disabled. See GH #1236.
Since the volatile casts were not a solution, we are backing it out along with associated comments.
2023-09-29 15:40:14 -04:00
Jeffrey Walton
d4b9fa1165
Disable Cryptogams AES for ARMv7 (GH #1236) 2023-09-29 15:33:30 -04:00
Jeffrey Walton
82451cd274
Add cryptopp.rc to list of trimmed files (GH #1233) 2023-09-29 10:54:51 -04:00
Jeffrey Walton
76fb12688b
Fix HIGHT/CTR mode self test failures when inString==outString (GH #1234) 2023-09-29 02:46:29 -04:00
Jeffrey Walton
b08f72c3e4
Guard increment of inBlock in CTR_ModePolicy::OperateKeystream 2023-09-29 02:41:45 -04:00
Jeffrey Walton
c6a16ea573
Add GenerateKeystream to HC256
This keeps HC-128 and HC-256 consistent
2023-09-28 09:05:16 -04:00
Jeffrey Walton
0bf8798835
Switch HC128 and HC256 to use CRYPTOPP_KEYSTREAM_OUTPUT_SWITCH (GH #1231) 2023-09-28 00:48:18 -04:00
Jeffrey Walton
b157b4d301
Switch Rabbit and RabbitWithIV to use CRYPTOPP_KEYSTREAM_OUTPUT_SWITCH (GH #1231) 2023-09-27 23:51:05 -04:00
Jeffrey Walton
560d48f968
Add self tests for in-place encryption of stream ciphers and streaming modes, like CTR (GH #1231) 2023-09-26 14:36:26 -04:00
Jeffrey Walton
950785e6df
Fix typo 2023-09-26 14:13:15 -04:00
Jeffrey Walton
a75a7d87ff
Set ARFLAGS to -r on Alpine Linux 2023-07-19 15:52:48 -04:00
Jeffrey Walton
6ecc789df1
Add precomuted small prime table (GH #1210) 2023-06-26 09:57:15 -04:00
Jeffrey Walton
cbc1859048
Update setenv-android.sh script
Newer NDKs cannot consume -mtune=intel, so omit it.
2023-06-26 07:45:43 -04:00
Jeffrey Walton
205ebf17a9
Move unused variables to top of function
Also see PR #1218
2023-06-26 07:32:12 -04:00
Marcel Raad
b2e0635660
Fix unused parameter warnings for x86 non-GCC (GH #1218)
These were suppressed for MSVC until commit dced966b7a.
2023-06-26 06:25:05 -04:00
Jeffrey Walton
1659a9ef64
Add clang-cl.exe to list of CRYPTOPP_MS_STYLE_INLINE_ASSEMBLY 2023-06-25 22:13:16 -04:00
Jeffrey Walton
e65fa006be
Simplify use of cpuid and xgetbv on Windows
In the past we were pivoting on Visual Studio versions, and trying to use intrinsics when available. The updated code just uses our versions of the calls.
2023-06-25 22:10:22 -04:00
Jeffrey Walton
a89a27b72c
Attempt to keep Clang out of other compiler paths (GH #147) 2023-06-25 18:28:11 -04:00
Jeffrey Walton
0d9cd947a0
Avoid call to CPU_ProbeSSE2 in DetectX86Features (GH #1162)
The call was a workaround for Solaris. Limit it to Solaris.
2023-06-25 17:09:33 -04:00
Jeffrey Walton
a23f78d116
Fix release fence in Singleton::Ref (GH #1208) 2023-06-25 16:57:50 -04:00