summaryrefslogtreecommitdiff
path: root/simeck.cpp
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2020-07-07 15:22:09 -0400
committerJeffrey Walton <noloader@gmail.com>2020-07-07 15:22:09 -0400
commitdd7598e638bba536117de716bae3f738312d4c5a (patch)
treeae52f026092cb273e7952ab213bf680484679239 /simeck.cpp
parent84ab419029081d3a194da28421be615389716e7a (diff)
downloadcryptopp-git-dd7598e638bba536117de716bae3f738312d4c5a.tar.gz
Remove 64-bit AdvancedProcessBlocks (GH #945)
Diffstat (limited to 'simeck.cpp')
-rw-r--r--simeck.cpp40
1 files changed, 0 insertions, 40 deletions
diff --git a/simeck.cpp b/simeck.cpp
index 982f5f4a..a1a5316e 100644
--- a/simeck.cpp
+++ b/simeck.cpp
@@ -33,16 +33,6 @@ ANONYMOUS_NAMESPACE_END
NAMESPACE_BEGIN(CryptoPP)
-#if CRYPTOPP_SIMECK_ADVANCED_PROCESS_BLOCKS
-# if (CRYPTOPP_SSSE3_AVAILABLE)
-extern size_t SIMECK64_Enc_AdvancedProcessBlocks_SSSE3(const word32* subKeys, size_t rounds,
- const byte *inBlocks, const byte *xorBlocks, byte *outBlocks, size_t length, word32 flags);
-
-extern size_t SIMECK64_Dec_AdvancedProcessBlocks_SSSE3(const word32* subKeys, size_t rounds,
- const byte *inBlocks, const byte *xorBlocks, byte *outBlocks, size_t length, word32 flags);
-# endif // CRYPTOPP_SSSE3_AVAILABLE
-#endif // CRYPTOPP_SIMECK_ADVANCED_PROCESS_BLOCKS
-
std::string SIMECK32::Base::AlgorithmProvider() const
{
return "C++";
@@ -104,10 +94,6 @@ void SIMECK32::Dec::ProcessAndXorBlock(const byte *inBlock, const byte *xorBlock
std::string SIMECK64::Base::AlgorithmProvider() const
{
-#if (CRYPTOPP_SSSE3_AVAILABLE)
- if (HasSSSE3())
- return "SSSE3";
-#endif
return "C++";
}
@@ -165,30 +151,4 @@ void SIMECK64::Dec::ProcessAndXorBlock(const byte *inBlock, const byte *xorBlock
oblock(m_t[0])(m_t[1]);
}
-#if CRYPTOPP_SIMECK_ADVANCED_PROCESS_BLOCKS
-size_t SIMECK64::Enc::AdvancedProcessBlocks(const byte *inBlocks, const byte *xorBlocks,
- byte *outBlocks, size_t length, word32 flags) const
-{
-# if (CRYPTOPP_SSSE3_AVAILABLE)
- if (HasSSSE3()) {
- return SIMECK64_Enc_AdvancedProcessBlocks_SSSE3(m_rk, ROUNDS,
- inBlocks, xorBlocks, outBlocks, length, flags);
- }
-# endif // CRYPTOPP_SSSE3_AVAILABLE
- return BlockTransformation::AdvancedProcessBlocks(inBlocks, xorBlocks, outBlocks, length, flags);
-}
-
-size_t SIMECK64::Dec::AdvancedProcessBlocks(const byte *inBlocks, const byte *xorBlocks,
- byte *outBlocks, size_t length, word32 flags) const
-{
-# if (CRYPTOPP_SSSE3_AVAILABLE)
- if (HasSSSE3()) {
- return SIMECK64_Dec_AdvancedProcessBlocks_SSSE3(m_rk, ROUNDS,
- inBlocks, xorBlocks, outBlocks, length, flags);
- }
-# endif // CRYPTOPP_SSSE3_AVAILABLE
- return BlockTransformation::AdvancedProcessBlocks(inBlocks, xorBlocks, outBlocks, length, flags);
-}
-#endif // CRYPTOPP_SIMECK_ADVANCED_PROCESS_BLOCKS
-
NAMESPACE_END