Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/crypto/external/bsd/openssl/lib/libcrypto Fix build goo for ...
details: https://anonhg.NetBSD.org/src/rev/328a6c1d8b51
branches: trunk
changeset: 785020:328a6c1d8b51
user: riastradh <riastradh%NetBSD.org@localhost>
date: Mon Feb 18 21:15:25 2013 +0000
description:
Fix build goo for OpenSSL AES-NI support.
OpenSSL now supports AES-NI in evp, not in an engine. We can now get
rid of the no longer maintained aesni engine, which was broken last
summer. Not only can OpenSSL now use AES-NI for everything it did
before we broke it last summer, but it can also use AES-NI for more
encryption modes than before, such as CTR.
Tested on amd64, both vanilla and in an i386 chroot.
ok christos
diffstat:
crypto/external/bsd/openssl/lib/libcrypto/arch/i386/aes.inc | 2 +-
crypto/external/bsd/openssl/lib/libcrypto/evp.inc | 13 ++++++++++++-
crypto/external/bsd/openssl/lib/libcrypto/modes.inc | 3 +--
3 files changed, 14 insertions(+), 4 deletions(-)
diffs (48 lines):
diff -r a2174ca69a11 -r 328a6c1d8b51 crypto/external/bsd/openssl/lib/libcrypto/arch/i386/aes.inc
--- a/crypto/external/bsd/openssl/lib/libcrypto/arch/i386/aes.inc Mon Feb 18 20:59:19 2013 +0000
+++ b/crypto/external/bsd/openssl/lib/libcrypto/arch/i386/aes.inc Mon Feb 18 21:15:25 2013 +0000
@@ -1,5 +1,5 @@
.PATH.S: ${.PARSEDIR}
-AES_SRCS = aes-586.S aesni-586.S
+AES_SRCS = aes-586.S aesni-x86.S
AESNI = yes
AESCPPFLAGS = -DAES_ASM -DOPENSSL_IA32_SSE2
.include "../../aes.inc"
diff -r a2174ca69a11 -r 328a6c1d8b51 crypto/external/bsd/openssl/lib/libcrypto/evp.inc
--- a/crypto/external/bsd/openssl/lib/libcrypto/evp.inc Mon Feb 18 20:59:19 2013 +0000
+++ b/crypto/external/bsd/openssl/lib/libcrypto/evp.inc Mon Feb 18 21:15:25 2013 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: evp.inc,v 1.4 2013/02/05 23:38:46 christos Exp $
+# $NetBSD: evp.inc,v 1.5 2013/02/18 21:15:25 riastradh Exp $
#
# @(#) Copyright (c) 1995 Simon J. Gerraty
#
@@ -25,3 +25,14 @@
.for cryptosrc in ${EVP_SRCS}
CPPFLAGS.${cryptosrc} = -I${OPENSSLSRC}/crypto/evp
.endfor
+
+EVP_AES_SRCS = e_aes.c
+
+# XXX Should do this too, but it requires some other asm changes.
+#EVP_AES_SRCS += e_aes_cbc_hmac_sha1.c
+
+.for cryptosrc in ${EVP_AES_SRCS}
+CPPFLAGS.${cryptosrc} += ${AESCPPFLAGS}
+.endfor
+
+CPPFLAGS.e_aes.c += -I${OPENSSLSRC}/crypto/modes
diff -r a2174ca69a11 -r 328a6c1d8b51 crypto/external/bsd/openssl/lib/libcrypto/modes.inc
--- a/crypto/external/bsd/openssl/lib/libcrypto/modes.inc Mon Feb 18 20:59:19 2013 +0000
+++ b/crypto/external/bsd/openssl/lib/libcrypto/modes.inc Mon Feb 18 21:15:25 2013 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: modes.inc,v 1.2 2012/07/26 19:58:40 christos Exp $
+# $NetBSD: modes.inc,v 1.3 2013/02/18 21:15:25 riastradh Exp $
#
# @(#) Copyright (c) 1995 Simon J. Gerraty
#
@@ -16,4 +16,3 @@
.for cryptosrc in ${MODES_SRCS}
CPPFLAGS.${cryptosrc} = -I${OPENSSLSRC}/crypto/modes
.endfor
-CPPFLAGS.e_aes.c = -I${OPENSSLSRC}/crypto/modes
Home |
Main Index |
Thread Index |
Old Index