Update AlgorithmProvider()

pull/826/head
Jeffrey Walton 2019-04-27 18:38:18 -04:00
parent deee1cc97e
commit 7f8f61bfbd
No known key found for this signature in database
GPG Key ID: B36AB348921B1838
4 changed files with 4 additions and 4 deletions

View File

@ -259,7 +259,7 @@ std::string BLAKE2s::AlgorithmProvider() const
#endif
#if (CRYPTOPP_POWER8_AVAILABLE)
if (HasPower8())
return "Power7";
return "Power8";
else
#elif (CRYPTOPP_ALTIVEC_AVAILABLE)
if (HasAltivec())

View File

@ -838,7 +838,7 @@ inline uint32x4_p VectorSet32(const uint32x4_p a, const uint32x4_p b,
const uint32x4_p t0 = VectorSet32<W,X>(a, b);
const uint32x4_p t1 = VectorSet32<Y,Z>(c, d);
// Power7 follows SSE2's implementation, and this is _mm_set_epi32.
// PowerPC follows SSE2's implementation, and this is _mm_set_epi32.
const uint8x16_p mask = {20,21,22,23, 16,17,18,19, 4,5,6,7, 0,1,2,3};
return VecPermute(t0, t1, mask);
}

View File

@ -269,7 +269,7 @@ std::string ChaCha_AlgorithmProvider()
#endif
#if (CRYPTOPP_POWER8_AVAILABLE)
if (HasPower8())
return "Power7";
return "Power8";
else
#elif (CRYPTOPP_ALTIVEC_AVAILABLE)
if (HasAltivec())

View File

@ -257,7 +257,7 @@ std::string SIMON64::Base::AlgorithmProvider() const
# endif
# if (CRYPTOPP_POWER8_AVAILABLE)
if (HasPower8())
return "Power7";
return "Power8";
# endif
# if (CRYPTOPP_ALTIVEC_AVAILABLE)
if (HasAltivec())