12
12
// TODO: work around GCC 4.8+ issue with SSE2 ASM until the exact details are known
13
13
// and fix is released. Duplicate with "valgrind ./cryptest.exe tv salsa"
14
14
// "Inline assembly operands don't work with .intel_syntax", http://llvm.org/bugs/show_bug.cgi?id=24232
15
- #if CRYPTOPP_BOOL_X32 || defined(CRYPTOPP_DISABLE_INTEL_ASM) || (CRYPTOPP_GCC_VERSION >= 40800)
15
+ #if CRYPTOPP_BOOL_X32 || defined(CRYPTOPP_DISABLE_INTEL_ASM)
16
16
# define CRYPTOPP_DISABLE_SALSA_ASM
17
17
#endif
18
18
@@ -22,7 +22,7 @@ NAMESPACE_BEGIN(CryptoPP)
22
22
// ! \brief Salsa20 stream cipher information
23
23
struct Salsa20_Info : public VariableKeyLength<32, 16, 32, 16, SimpleKeyingInterface::UNIQUE_IV, 8>
24
24
{
25
- CRYPTOPP_STATIC_CONSTEXPR const char * StaticAlgorithmName () {return " Salsa20" ;}
25
+ static std::string StaticAlgorithmName () {return " Salsa20" ;}
26
26
};
27
27
28
28
// ! \class Salsa20_Policy
@@ -35,7 +35,7 @@ class CRYPTOPP_NO_VTABLE Salsa20_Policy : public AdditiveCipherConcretePolicy<wo
35
35
void CipherResynchronize (byte *keystreamBuffer, const byte *IV, size_t length);
36
36
bool CipherIsRandomAccess () const {return true ;}
37
37
void SeekToIteration (lword iterationCount);
38
- #if (CRYPTOPP_BOOL_X86 || CRYPTOPP_BOOL_X32 || CRYPTOPP_BOOL_X64) && !defined(CRYPTOPP_DISABLE_SALSA_ASM)
38
+ #if (CRYPTOPP_BOOL_X86 || CRYPTOPP_BOOL_X32 || CRYPTOPP_BOOL_X64)
39
39
unsigned int GetAlignment () const ;
40
40
unsigned int GetOptimalBlockSize () const ;
41
41
#endif
@@ -58,7 +58,7 @@ struct Salsa20 : public Salsa20_Info, public SymmetricCipherDocumentation
58
58
// ! \brief XSalsa20 stream cipher information
59
59
struct XSalsa20_Info : public FixedKeyLength <32 , SimpleKeyingInterface::UNIQUE_IV, 24 >
60
60
{
61
- CRYPTOPP_STATIC_CONSTEXPR const char * StaticAlgorithmName () {return " XSalsa20" ;}
61
+ static std::string StaticAlgorithmName () {return " XSalsa20" ;}
62
62
};
63
63
64
64
// ! \class XSalsa20_Policy
0 commit comments