summaryrefslogtreecommitdiffstats
path: root/crypto/evp
diff options
context:
space:
mode:
authorAndy Polyakov <appro@openssl.org>2014-02-01 21:48:31 +0100
committerAndy Polyakov <appro@openssl.org>2014-02-01 21:48:31 +0100
commit50f1b47c7f30bb1cd6d91b0e43a6087014b30abe (patch)
treea3bf6c389926d5c48ae5fa83ddf38b2072e04c2e /crypto/evp
parent5572bc4e2fb485c0d85bd5b4ec430ae0af65f7ea (diff)
PPC assembly pack: jumbo update from master.
Add Vector Permutation AES and little-endian support.
Diffstat (limited to 'crypto/evp')
-rw-r--r--crypto/evp/e_aes.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/crypto/evp/e_aes.c b/crypto/evp/e_aes.c
index 30d44ef2a2..77e4bead71 100644
--- a/crypto/evp/e_aes.c
+++ b/crypto/evp/e_aes.c
@@ -157,6 +157,11 @@ void AES_xts_decrypt(const char *inp,char *out,size_t len,
const unsigned char iv[16]);
#endif
+#if defined(VPAES_ASM) && (defined(__powerpc__) || defined(__ppc__) || defined(_ARCH_PPC))
+extern unsigned int OPENSSL_ppccap_P;
+#define VPAES_CAPABLE (OPENSSL_ppccap_P&(1<<1))
+#endif
+
#if defined(AES_ASM) && !defined(I386_ONLY) && ( \
((defined(__i386) || defined(__i386__) || \
defined(_M_IX86)) && defined(OPENSSL_IA32_SSE2))|| \