mirror of
https://github.com/shadps4-emu/ext-cryptopp.git
synced 2024-11-23 09:59:42 +00:00
16 lines
359 B
C++
16 lines
359 B
C++
#include <stdint.h>
|
|
#if (CRYPTOPP_ARM_NEON_HEADER)
|
|
# include <arm_neon.h>
|
|
#endif
|
|
|
|
int main(int argc, char* argv[])
|
|
{
|
|
// SM4 block cipher
|
|
// https://developer.arm.com/architectures/instruction-sets/simd-isas/neon/intrinsics?search=SM4
|
|
uint32x4_t x={0}, y={1}, z={2};
|
|
x=vsm4ekeyq_u32(y,z);
|
|
x=vsm4eq_u32(y,z);
|
|
|
|
return 0;
|
|
}
|