diff options
author | Andy Polyakov <appro@openssl.org> | 2005-01-13 15:35:44 +0000 |
---|---|---|
committer | Andy Polyakov <appro@openssl.org> | 2005-01-13 15:35:44 +0000 |
commit | e7e1150706f8c8bcc807d8184bd0ebd08b6f5aff (patch) | |
tree | b4ab68be2540b291fe75ceaf0dba283d50dbf1c8 /crypto/engine/eng_padlock.c | |
parent | 5d727078ac8c16ccc0d987234c168a589a2ab767 (diff) | |
download | openssl-e7e1150706f8c8bcc807d8184bd0ebd08b6f5aff.tar.gz |
"Monolithic" x86 assembler replacement for aes_core.c. Up to +15% better
performance on recent microarchitectures.
Diffstat (limited to 'crypto/engine/eng_padlock.c')
-rw-r--r-- | crypto/engine/eng_padlock.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crypto/engine/eng_padlock.c b/crypto/engine/eng_padlock.c index ca31165787..2d58dcb55b 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; |