From e8025bf6a9148367356ae852a18faa86807a014a Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Thu, 27 Dec 2018 11:52:12 -0500 Subject: Remove unused SM4 code for ARM --- sm4_simd.cpp | 29 ----------------------------- 1 file changed, 29 deletions(-) (limited to 'sm4_simd.cpp') diff --git a/sm4_simd.cpp b/sm4_simd.cpp index 3b71c726..f0d39ae2 100644 --- a/sm4_simd.cpp +++ b/sm4_simd.cpp @@ -31,17 +31,6 @@ # include #endif -#if (CRYPTOPP_ARM_NEON_AVAILABLE) && 0 -# include -#endif - -// Can't use CRYPTOPP_ARM_XXX_AVAILABLE because too many -// compilers don't follow ACLE conventions for the include. -#if (CRYPTOPP_ARM_ACLE_AVAILABLE) -# include -# include -#endif - // Squash MS LNK4221 and libtool warnings extern const char SM4_SIMD_FNAME[] = __FILE__; @@ -335,22 +324,4 @@ size_t SM4_Enc_AdvancedProcessBlocks_AESNI(const word32* subKeys, size_t rounds, } #endif // CRYPTOPP_AESNI_AVAILABLE -#if defined(CRYPTOPP_ARM_NEON_AVAILABLE) && 0 -size_t SM4_Enc_AdvancedProcessBlocks_NEON(const word32* subKeys, size_t rounds, - const byte *inBlocks, const byte *xorBlocks, byte *outBlocks, size_t length, word32 flags) -{ - uint32x4_t unused; // Avoid template argument deduction/substitution failures - return AdvancedProcessBlocks128_4x1_NEON(SM4_Enc_Block, SM4_Enc_4_Blocks, - unused, subKeys, rounds, inBlocks, xorBlocks, outBlocks, length, flags); -} - -size_t SM4_Dec_AdvancedProcessBlocks_NEON(const word32* subKeys, size_t rounds, - const byte *inBlocks, const byte *xorBlocks, byte *outBlocks, size_t length, word32 flags) -{ - uint32x4_t unused; // Avoid template argument deduction/substitution failures - return AdvancedProcessBlocks128_4x1_NEON(SM4_Dec_Block, SM4_Dec_4_Blocks, - unused, subKeys, rounds, inBlocks, xorBlocks, outBlocks, length, flags); -} -#endif // CRYPTOPP_ARM_NEON_AVAILABLE - NAMESPACE_END -- cgit v1.2.1