Closed bdrung closed 6 months ago
Hello, indeed, AES New Instructions are specific to x86 architectures: https://en.wikipedia.org/wiki/AES_instruction_set#Supporting_x86_CPUs It is because instructions are implemented within your processor. If your request hasn't been fulfilled, I can look at the code and fix it for your architectures.
This is fixed in master
Are you referring to those three commits?
yes, did it solved your issue ?
I haven't tried yet, but I will next week.
This is fixed in v3.20.0.
I just uploaded pycryptodome 3.20.0+dfsg-1 to Debian unstable. In the next hours we will see if the tests succeed on non-x86:
pycryptodome 3.20.0+dfsg-1 builds on most architectures now. So the SSE/AES config changes work. I filed two bug reports for the remaining failures:
The Debian/Ubuntu packages runs the tests cases, but they fail on non-x86 architectures:
I tried to build the tests without SSE and AES disabled on ARM:
It fails then:
I disabled
add_compile_options(-mstackrealign)
inCMakeLists.txt
and then it failed with:The header
wmmintrin.h
seems to be x86-specific.Please support building/running the tests on non-x86 architectures.
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1053328 Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/pycryptodome/+bug/2039968