diff options
author | miod <> | 2016-11-04 13:56:05 +0000 |
---|---|---|
committer | miod <> | 2016-11-04 13:56:05 +0000 |
commit | d69d10da5510517830f98435b4984052c2d21825 (patch) | |
tree | 9363c8b7f4453a96c26a902a886921f7516d700f /src/lib/libcrypto/modes | |
parent | 76a784dab583cd423f3ff66636ea7b6b6f4dee61 (diff) | |
download | openbsd-d69d10da5510517830f98435b4984052c2d21825.tar.gz openbsd-d69d10da5510517830f98435b4984052c2d21825.tar.bz2 openbsd-d69d10da5510517830f98435b4984052c2d21825.zip |
Remove I386_ONLY define. It was only used to prefer a
faster-on-genuine-80386-but-slower-on-80486-onwards innstruction sequence in
the SHA512 code, and had not been enabled in years, if at all.
ok tom@ bcook@
Diffstat (limited to 'src/lib/libcrypto/modes')
-rw-r--r-- | src/lib/libcrypto/modes/gcm128.c | 5 | ||||
-rw-r--r-- | src/lib/libcrypto/modes/modes_lcl.h | 4 |
2 files changed, 4 insertions, 5 deletions
diff --git a/src/lib/libcrypto/modes/gcm128.c b/src/lib/libcrypto/modes/gcm128.c index dd6d91e880..6f8a8dd7f4 100644 --- a/src/lib/libcrypto/modes/gcm128.c +++ b/src/lib/libcrypto/modes/gcm128.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: gcm128.c,v 1.13 2015/09/10 15:56:25 jsing Exp $ */ | 1 | /* $OpenBSD: gcm128.c,v 1.14 2016/11/04 13:56:05 miod Exp $ */ |
2 | /* ==================================================================== | 2 | /* ==================================================================== |
3 | * Copyright (c) 2010 The OpenSSL Project. All rights reserved. | 3 | * Copyright (c) 2010 The OpenSSL Project. All rights reserved. |
4 | * | 4 | * |
@@ -638,8 +638,7 @@ static void gcm_gmult_1bit(u64 Xi[2],const u64 H[2]) | |||
638 | #endif | 638 | #endif |
639 | 639 | ||
640 | #if TABLE_BITS==4 && defined(GHASH_ASM) | 640 | #if TABLE_BITS==4 && defined(GHASH_ASM) |
641 | # if !defined(I386_ONLY) && \ | 641 | # if (defined(__i386) || defined(__i386__) || \ |
642 | (defined(__i386) || defined(__i386__) || \ | ||
643 | defined(__x86_64) || defined(__x86_64__) || \ | 642 | defined(__x86_64) || defined(__x86_64__) || \ |
644 | defined(_M_IX86) || defined(_M_AMD64) || defined(_M_X64)) | 643 | defined(_M_IX86) || defined(_M_AMD64) || defined(_M_X64)) |
645 | # define GHASH_ASM_X86_OR_64 | 644 | # define GHASH_ASM_X86_OR_64 |
diff --git a/src/lib/libcrypto/modes/modes_lcl.h b/src/lib/libcrypto/modes/modes_lcl.h index 8e43e480fc..a90f4a2b37 100644 --- a/src/lib/libcrypto/modes/modes_lcl.h +++ b/src/lib/libcrypto/modes/modes_lcl.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: modes_lcl.h,v 1.8 2014/07/10 22:45:57 jsing Exp $ */ | 1 | /* $OpenBSD: modes_lcl.h,v 1.9 2016/11/04 13:56:05 miod Exp $ */ |
2 | /* ==================================================================== | 2 | /* ==================================================================== |
3 | * Copyright (c) 2010 The OpenSSL Project. All rights reserved. | 3 | * Copyright (c) 2010 The OpenSSL Project. All rights reserved. |
4 | * | 4 | * |
@@ -34,7 +34,7 @@ typedef unsigned char u8; | |||
34 | # define BSWAP4(x) ({ u32 ret=(x); \ | 34 | # define BSWAP4(x) ({ u32 ret=(x); \ |
35 | asm ("bswapl %0" \ | 35 | asm ("bswapl %0" \ |
36 | : "+r"(ret)); ret; }) | 36 | : "+r"(ret)); ret; }) |
37 | # elif (defined(__i386) || defined(__i386__)) && !defined(I386_ONLY) | 37 | # elif (defined(__i386) || defined(__i386__)) |
38 | # define BSWAP8(x) ({ u32 lo=(u64)(x)>>32,hi=(x); \ | 38 | # define BSWAP8(x) ({ u32 lo=(u64)(x)>>32,hi=(x); \ |
39 | asm ("bswapl %0; bswapl %1" \ | 39 | asm ("bswapl %0; bswapl %1" \ |
40 | : "+r"(hi),"+r"(lo)); \ | 40 | : "+r"(hi),"+r"(lo)); \ |