diff options
author | Andy Polyakov <appro@openssl.org> | 2016-04-19 13:09:54 +0200 |
---|---|---|
committer | Andy Polyakov <appro@openssl.org> | 2016-04-20 09:57:43 +0200 |
commit | 6944565bd55d147bdb46c708dff06ac310457036 (patch) | |
tree | 88a64ddb66b97b1be2975899d755026613703182 /crypto | |
parent | 4400f6c61e586dde2aea8dd023c9d4573fbbc547 (diff) |
evp/aes_aes.c: engage Fujitsu SPARC64 X AES support.
Reviewed-by: Richard Levitte <levitte@openssl.org>
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/evp/e_aes.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/crypto/evp/e_aes.c b/crypto/evp/e_aes.c index f0e410fc20..4d40efe8d5 100644 --- a/crypto/evp/e_aes.c +++ b/crypto/evp/e_aes.c @@ -184,7 +184,7 @@ void AES_xts_decrypt(const char *inp, char *out, size_t len, const unsigned char iv[16]); #endif -#if defined(OPENSSL_CPUID_OBJ) && (defined(__powerpc__) || defined(__ppc__) || defined(_ARCH_PPC)) +#if defined(OPENSSL_CPUID_OBJ) && (defined(__powerpc__) || defined(__ppc__) || defined(_ARCH_PPC)) # include "ppc_arch.h" # ifdef VPAES_ASM # define VPAES_CAPABLE (OPENSSL_ppccap_P & PPC_ALTIVEC) @@ -587,6 +587,15 @@ const EVP_CIPHER *EVP_aes_##keylen##_##mode(void) \ extern unsigned int OPENSSL_sparcv9cap_P[]; +/* + * Initial Fujitsu SPARC64 X support + */ +# define HWAES_CAPABLE (OPENSSL_sparcv9cap_P[0] & SPARCV9_FJAESX) +# define HWAES_set_encrypt_key aes_fx_set_encrypt_key +# define HWAES_set_decrypt_key aes_fx_set_decrypt_key +# define HWAES_encrypt aes_fx_encrypt +# define HWAES_decrypt aes_fx_decrypt + # define SPARC_AES_CAPABLE (OPENSSL_sparcv9cap_P[1] & CFR_AES) void aes_t4_set_encrypt_key(const unsigned char *key, int bits, AES_KEY *ks); |