libcryfs/vendor/cryptopp/vendor_cryptopp/TestPrograms/test_arm_sm4.cpp

16 lines
356 B
C++

#include <stdint.h>
#ifdef 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, y={1}, z={2};
x=vsm4ekeyq_u32(y,z);
x=vsm4eq_u32(y,z);
return 0;
}