aboutsummaryrefslogtreecommitdiff
path: root/crypto
diff options
context:
space:
mode:
authorAndy Polyakov <appro@openssl.org>2011-02-12 11:47:55 +0000
committerAndy Polyakov <appro@openssl.org>2011-02-12 11:47:55 +0000
commita6d915e0efca1e9fcd074bc6c3d800d7d0bd2712 (patch)
tree9f59365fac0bad5548fe2b927a559cff35edeab3 /crypto
parent975138edaa7f585408db3077db45584a2ba55cd9 (diff)
downloadopenssl-a6d915e0efca1e9fcd074bc6c3d800d7d0bd2712.zip
openssl-a6d915e0efca1e9fcd074bc6c3d800d7d0bd2712.tar.gz
openssl-a6d915e0efca1e9fcd074bc6c3d800d7d0bd2712.tar.bz2
gcm128.c: make it work with no-sse2.
Diffstat (limited to 'crypto')
-rw-r--r--crypto/modes/gcm128.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/crypto/modes/gcm128.c b/crypto/modes/gcm128.c
index 1287bce..cdb6c84 100644
--- a/crypto/modes/gcm128.c
+++ b/crypto/modes/gcm128.c
@@ -719,12 +719,14 @@ void CRYPTO_gcm128_init(GCM128_CONTEXT *ctx,void *key,block128_f block)
gcm_init_8bit(ctx->Htable,ctx->H.u);
#elif TABLE_BITS==4
# if defined(GHASH_ASM_IAX) /* both x86 and x86_64 */
+# if !defined(GHASH_ASM_X86) || defined(OPENSSL_IA32_SSE2)
if (OPENSSL_ia32cap_P[1]&(1<<1)) {
gcm_init_clmul(ctx->Htable,ctx->H.u);
ctx->gmult = gcm_gmult_clmul;
ctx->ghash = gcm_ghash_clmul;
return;
}
+# endif
gcm_init_4bit(ctx->Htable,ctx->H.u);
# if defined(GHASH_ASM_X86) /* x86 only */
if (OPENSSL_ia32cap_P[0]&(1<<23)) {