From a4dc4e223750c1021980a2faba72e492bff27c2d Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Sat, 24 Nov 2018 02:23:25 -0500 Subject: [PATCH] Update documentation --- ppc_simd.h | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/ppc_simd.h b/ppc_simd.h index 73ec8578..7e149e78 100644 --- a/ppc_simd.h +++ b/ppc_simd.h @@ -1351,24 +1351,24 @@ inline T1 VecDecryptLast(const T1 state, const T2 key) /// \brief SHA256 Sigma functions /// \tparam func function -/// \tparam subfunc sub-function +/// \tparam fmask function mask /// \tparam T vector type /// \param vec the block to transform /// \details VecSHA256 selects sigma0, sigma1, Sigma0, Sigma1 based on -/// func and subfunc. The return vector is the same type as vec. +/// func and fmask. The return vector is the same type as vec. /// \details VecSHA256 is available on POWER8 and above. /// \par Wraps /// __vshasigmaw, __builtin_altivec_crypto_vshasigmaw, __builtin_crypto_vshasigmaw /// \since GCC and XLC since Crypto++ 6.0, LLVM Clang since Crypto++ 8.0 -template +template inline T VecSHA256(const T vec) { #if defined(__ibmxl__) || (defined(_AIX) && defined(__xlC__)) - return (T)__vshasigmaw((uint32x4_p)vec, func, subfunc); + return (T)__vshasigmaw((uint32x4_p)vec, func, fmask); #elif defined(__clang__) - return (T)__builtin_altivec_crypto_vshasigmaw((uint32x4_p)vec, func, subfunc); + return (T)__builtin_altivec_crypto_vshasigmaw((uint32x4_p)vec, func, fmask); #elif defined(__GNUC__) - return (T)__builtin_crypto_vshasigmaw((uint32x4_p)vec, func, subfunc); + return (T)__builtin_crypto_vshasigmaw((uint32x4_p)vec, func, fmask); #else CRYPTOPP_ASSERT(0); #endif @@ -1376,24 +1376,24 @@ inline T VecSHA256(const T vec) /// \brief SHA512 Sigma functions /// \tparam func function -/// \tparam subfunc sub-function +/// \tparam fmask function mask /// \tparam T vector type /// \param vec the block to transform /// \details VecSHA512 selects sigma0, sigma1, Sigma0, Sigma1 based on -/// func and subfunc. The return vector is the same type as vec. +/// func and fmask. The return vector is the same type as vec. /// \details VecSHA512 is available on POWER8 and above. /// \par Wraps /// __vshasigmad, __builtin_altivec_crypto_vshasigmad, __builtin_crypto_vshasigmad /// \since GCC and XLC since Crypto++ 6.0, LLVM Clang since Crypto++ 8.0 -template +template inline T VecSHA512(const T vec) { #if defined(__ibmxl__) || (defined(_AIX) && defined(__xlC__)) - return (T)__vshasigmad((uint64x2_p)vec, func, subfunc); + return (T)__vshasigmad((uint64x2_p)vec, func, fmask); #elif defined(__clang__) - return (T)__builtin_altivec_crypto_vshasigmad((uint64x2_p)vec, func, subfunc); + return (T)__builtin_altivec_crypto_vshasigmad((uint64x2_p)vec, func, fmask); #elif defined(__GNUC__) - return (T)__builtin_crypto_vshasigmad((uint64x2_p)vec, func, subfunc); + return (T)__builtin_crypto_vshasigmad((uint64x2_p)vec, func, fmask); #else CRYPTOPP_ASSERT(0); #endif