diff options
author | Jeffrey Walton <noloader@gmail.com> | 2019-10-26 22:11:49 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-26 22:11:49 -0400 |
commit | fa39314b7a64cdf6d5a0a89b95bf26d29344c624 (patch) | |
tree | a32f443f3c436fcb5334fc82069c20bf8eef611c /chacha.cpp | |
parent | 1bfb8760bb8f8b971c88aaf8d48b5731641cdd6c (diff) | |
download | cryptopp-git-fa39314b7a64cdf6d5a0a89b95bf26d29344c624.tar.gz |
Add XLC 12 loads and stores for AIX (PR #907)
Add XLC 12 loads and stores for AIX
Diffstat (limited to 'chacha.cpp')
-rw-r--r-- | chacha.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -28,8 +28,8 @@ extern void ChaCha_OperateKeystream_AVX2(const word32 *state, const byte* input, extern void ChaCha_OperateKeystream_SSE2(const word32 *state, const byte* input, byte *output, unsigned int rounds);
#endif
-#if (CRYPTOPP_POWER8_AVAILABLE)
-extern void ChaCha_OperateKeystream_POWER8(const word32 *state, const byte* input, byte *output, unsigned int rounds);
+#if (CRYPTOPP_POWER7_AVAILABLE)
+extern void ChaCha_OperateKeystream_POWER7(const word32 *state, const byte* input, byte *output, unsigned int rounds);
#elif (CRYPTOPP_ALTIVEC_AVAILABLE)
extern void ChaCha_OperateKeystream_ALTIVEC(const word32 *state, const byte* input, byte *output, unsigned int rounds);
#endif
@@ -153,13 +153,13 @@ void ChaCha_OperateKeystream(KeystreamOperation operation, }
#endif
-#if (CRYPTOPP_POWER8_AVAILABLE)
- if (HasPower8())
+#if (CRYPTOPP_POWER7_AVAILABLE)
+ if (HasPower7())
{
while (iterationCount >= 4 && MultiBlockSafe(state[12], 4))
{
const bool xorInput = (operation & INPUT_NULL) != INPUT_NULL;
- ChaCha_OperateKeystream_POWER8(state, xorInput ? input : NULLPTR, output, rounds);
+ ChaCha_OperateKeystream_POWER7(state, xorInput ? input : NULLPTR, output, rounds);
// MultiBlockSafe avoids overflow on the counter words
state[12] += 4;
@@ -267,9 +267,9 @@ std::string ChaCha_AlgorithmProvider() return "NEON";
else
#endif
-#if (CRYPTOPP_POWER8_AVAILABLE)
- if (HasPower8())
- return "Power8";
+#if (CRYPTOPP_POWER7_AVAILABLE)
+ if (HasPower7())
+ return "Power7";
else
#elif (CRYPTOPP_ALTIVEC_AVAILABLE)
if (HasAltivec())
|