SHA-1, SHA-224 & SHA-256 with x86 instructions#717
Conversation
32274b2 to
902be86
Compare
|
FYI: Please feel free to read the commit messages of the commits I added, they contain the reasoning behind most of the changes. |
72daaa0 to
0dd8042
Compare
|
Looking at the results in appveyor it seems like this somehow doesn't result in any improvements on MSVC ... |
So that's a little surprising, but it seems the CPUs of Appveyor don't support the SHA instructions!? https://ci.appveyor.com/project/libtom/libtomcrypt/builds/53881218 libtomcrypt/src/hashes/sha1_desc.c Line 68 in c175284 I'd suggest we simply ignore this and someone using Windows will maybe pop up if something else is broken. I'll rebase and squash this all together, OK @MarekKnapek ? |
|
|
Because
are already verified here libtomcrypt/src/headers/tomcrypt_private.h Lines 150 to 151 in 68aae28 is aligned by us in the is aligned by the compiler, c.f. its declaration I'm not sure why that's even checked, and if it were required it should be a compile-time check via
We provide VS2008 project files which should be sufficient to be updated to a newer VS version, or not? Also you should most likely simply use the CMake file instead of a custom VS solution. |
|
.... aaand it is building on ci https://github.com/MarekKnapek/libtomcrypt/actions/runs/24456588598 |
Could you please check whether you can simply build and run the CMake project on a Windows GitHub runner? |
|
Yes, I can run CMake -> generate Visual Studio 2026 project. But the build fails because |
Did you read the comment in |
|
Yes, I read it. And I explained to you here few moments ago why I think you are wrong there.
This is nonsense, according to me. This is not misconfigured compiler, this is bending the rules of the C language and relying on it. Similarly as I would suggest to convert those |
Thank you. And thank you for the contribution and most of the implementation and integration work! |

WIP - there are still things that need to be resolved, see #716.