aboutsummaryrefslogtreecommitdiff
path: root/crypto/engine
diff options
context:
space:
mode:
authorAndy Polyakov <appro@openssl.org>2005-01-13 15:35:44 +0000
committerAndy Polyakov <appro@openssl.org>2005-01-13 15:35:44 +0000
commite7e1150706f8c8bcc807d8184bd0ebd08b6f5aff (patch)
treeb4ab68be2540b291fe75ceaf0dba283d50dbf1c8 /crypto/engine
parent5d727078ac8c16ccc0d987234c168a589a2ab767 (diff)
downloadopenssl-e7e1150706f8c8bcc807d8184bd0ebd08b6f5aff.zip
openssl-e7e1150706f8c8bcc807d8184bd0ebd08b6f5aff.tar.gz
openssl-e7e1150706f8c8bcc807d8184bd0ebd08b6f5aff.tar.bz2
"Monolithic" x86 assembler replacement for aes_core.c. Up to +15% better
performance on recent microarchitectures.
Diffstat (limited to 'crypto/engine')
-rw-r--r--crypto/engine/eng_padlock.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/crypto/engine/eng_padlock.c b/crypto/engine/eng_padlock.c
index ca31165..2d58dcb 100644
--- a/crypto/engine/eng_padlock.c
+++ b/crypto/engine/eng_padlock.c
@@ -788,10 +788,10 @@ padlock_aes_init_key (EVP_CIPHER_CTX *ctx, const unsigned char *key,
AES_set_encrypt_key(key, key_len, &cdata->ks);
else
AES_set_decrypt_key(key, key_len, &cdata->ks);
-
- /* OpenSSL internal functions use byte-swapped extended key. */
+#ifndef AES_ASM
+ /* OpenSSL C functions use byte-swapped extended key. */
padlock_bswapl(&cdata->ks);
-
+#endif
cdata->cword.b.keygen = 1;
break;