summaryrefslogtreecommitdiff
path: root/TestPrograms/test_arm_sm4.cpp
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2021-05-23 04:17:48 -0400
committerJeffrey Walton <noloader@gmail.com>2021-05-23 04:17:48 -0400
commit8a338f415a22db4f7f147cd9e2bf69f97112f77f (patch)
treeb61ac23d9bae50e3fb4418f47bcc3a05ba2ce6dd /TestPrograms/test_arm_sm4.cpp
parent759626e3d85b0355bf44c0f8972198cf3a3a0ff9 (diff)
downloadcryptopp-git-8a338f415a22db4f7f147cd9e2bf69f97112f77f.tar.gz
Update ARM test programs
Diffstat (limited to 'TestPrograms/test_arm_sm4.cpp')
-rw-r--r--TestPrograms/test_arm_sm4.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/TestPrograms/test_arm_sm4.cpp b/TestPrograms/test_arm_sm4.cpp
index 3a618512..8c427cda 100644
--- a/TestPrograms/test_arm_sm4.cpp
+++ b/TestPrograms/test_arm_sm4.cpp
@@ -2,15 +2,13 @@
#ifdef CRYPTOPP_ARM_NEON_HEADER
# include <arm_neon.h>
#endif
-#ifdef CRYPTOPP_ARM_ACLE_HEADER
-# include <arm_acle.h>
-#endif
int main(int argc, char* argv[])
{
// SM4 block cipher
- uint32x4_t x;
- x=vsm4ekeyq_u32(x,x);
- x=vsm4eq_u32(x,x);
+ uint32x4_t x, y={1}, z={2};
+ x=vsm4ekeyq_u32(y,z);
+ x=vsm4eq_u32(y,z);
+
return 0;
}