diff options
author | Andy Polyakov <appro@openssl.org> | 2014-07-20 14:16:31 +0200 |
---|---|---|
committer | Andy Polyakov <appro@openssl.org> | 2014-07-20 14:16:31 +0200 |
commit | 0e716d9207e00c9d967492b3b8bb89efad16bd06 (patch) | |
tree | 90f31bde709857570c9f7c4203b816bd6ae870ff /crypto/evp/e_aes.c | |
parent | f5b798f50c83bed58d90f940e427552b97eddcb7 (diff) |
Engage GHASH for PowerISA 2.0.7.
[and split ppccap.c to ppccap.c and ppc_arch.h]
Reviewed-by: Kurt Roeckx <kurt@openssl.org>
Reviewed-by: Tim Hudson <tjh@openssl.org>
Diffstat (limited to 'crypto/evp/e_aes.c')
-rw-r--r-- | crypto/evp/e_aes.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crypto/evp/e_aes.c b/crypto/evp/e_aes.c index 89178bc16d..8ab434943a 100644 --- a/crypto/evp/e_aes.c +++ b/crypto/evp/e_aes.c @@ -155,11 +155,11 @@ void AES_xts_decrypt(const char *inp,char *out,size_t len, #endif #if defined(OPENSSL_CPUID_OBJ) && (defined(__powerpc__) || defined(__ppc__) || defined(_ARCH_PPC)) -extern unsigned int OPENSSL_ppccap_P; +# include "ppc_arch.h" # ifdef VPAES_ASM -# define VPAES_CAPABLE (OPENSSL_ppccap_P&(1<<1)) +# define VPAES_CAPABLE (OPENSSL_ppccap_P & PPC_ALTIVEC) # endif -# define HWAES_CAPABLE (OPENSSL_ppccap_P&(1<<2)) +# define HWAES_CAPABLE (OPENSSL_ppccap_P & PPC_CRYPTO207) # define HWAES_set_encrypt_key aes_p8_set_encrypt_key # define HWAES_set_decrypt_key aes_p8_set_decrypt_key # define HWAES_encrypt aes_p8_encrypt |