From nobody Sun Jun 25 13:36:54 2023 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4QpsTL3RTtz4h61R; Sun, 25 Jun 2023 13:36:54 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4QpsTL32Jpz3x5y; Sun, 25 Jun 2023 13:36:54 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1687700214; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=sLtvjBegKLWFQ+LMb9MAxFpDr/eA2VKcIHzcRt3F6yk=; b=aXK8OC0twS9eAsWlxmjtcANSdmv4puouIzL5EXgrxeX54zKo5iMuTQmv3iYWO6+6RzhuR7 0lzDpOF7oMiaPbeMVb4fGPzb7Cm62LMCuQSmBTQWTafvlEvpfOgHmSorz0MJ/EE5QMqnKX FjN1fWBi6+/zpjJIng0ca6xuzgoVfTGLhQjx63VPmM7hvrCa3i2AAmn5oeJa7JiCjsY++3 PpShv8iunofHnsMFakpbvwedf3lR5TdNqVxXB7yhcLO5yVS37yQj+qJFP3Lg3FWxoJLTr9 ocOfoX8Z+wYViJg5SNLY10MND4LoKZXAY3ca9YpgE8tOTZmPtXdh2zhO7yK75A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1687700214; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=sLtvjBegKLWFQ+LMb9MAxFpDr/eA2VKcIHzcRt3F6yk=; b=fEhteHsJ32+ZuhsJXUQdO2G6lV4SgdjKkdcbAhUD5wNDUHyvjPUnB01SYUBHN0yinvBIxv KUfl++PLhBWQufJJxfE9EY2c4byCeehVRP4f5jxsh0SwCrSY7QiiqgD+/Tqck/eTnzH8Op AqCUocf2wNElX+b4qqraas9qHdXA8PEwrDyE5rTg0XES3TTcP/DLd7qZEKfGEXicTDLv2Y qnSEAutlXMPavTNQZAkAXaJQRjEqydIc5ou8LvTsdUhExiXl33i1hoQqqyvhn7hHD1cIUR 44NbGjT+ezrjBSgDI+vpaS9jRQILOxnnu9NjkErg8jN8P8eOOFSK7ZXwtlY6oA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1687700214; a=rsa-sha256; cv=none; b=cT3Yl+lK8JNnzx5zYvtpuluh3QVUppy9OVXnUsTP/I0HqQEE7DUeEJkVk2d9ZodYKvXDqr L5eVTxI1ivy0eGDoLvLfWY2x005oQERMAV/pWfQoN4r1CfWvI9DqZ/QNnpqyPkAUGt4tHh Jf8ZTmnMXhenTLghUluwvcWk/Zu6/42yMDz8hMvERVt4yh2hWFyDOn2mN9QeXQmlY2uoVa a98Mh9V6DeUssxlOJlTQfh5gYRetwC9KwDTOKtzNpljyj83MtI0tPwWYRzekXCmZjkQNYH q7bZs2t8FK7HC0MvlLE+yPIPT6ogzH6fp3jCPsOGZgOYFo+YkpMPUWDAJnUWsw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4QpsTL27wpzVVc; Sun, 25 Jun 2023 13:36:54 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 35PDas0D042705; Sun, 25 Jun 2023 13:36:54 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 35PDasXZ042704; Sun, 25 Jun 2023 13:36:54 GMT (envelope-from git) Date: Sun, 25 Jun 2023 13:36:54 GMT Message-Id: <202306251336.35PDasXZ042704@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Ed Maste Subject: git: 9cbc371c8af7 - main - libcrypto: build nistp* on all little-endian 64-bit targets List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: emaste X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 9cbc371c8af751c177f8242a306678da49b3adab Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by emaste: URL: https://cgit.FreeBSD.org/src/commit/?id=9cbc371c8af751c177f8242a306678da49b3adab commit 9cbc371c8af751c177f8242a306678da49b3adab Author: Ed Maste AuthorDate: 2023-06-24 17:52:08 +0000 Commit: Ed Maste CommitDate: 2023-06-25 13:33:55 +0000 libcrypto: build nistp* on all little-endian 64-bit targets libcrypto intends to provide these routines on little-endian 64-bit targets. This was previously done by including them in the ASM_aarch64 and ASM_amd64 blocks in the Makefile, but this excluded powerpc64le and riscv64. Reported by: ci.freebsd.org Reviewed by: jrtc27 Fixes: b077aed33b7b ("Merge OpenSSL 3.0.9") Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D40749 --- secure/lib/libcrypto/Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/secure/lib/libcrypto/Makefile b/secure/lib/libcrypto/Makefile index a1f519431f63..28258e796984 100644 --- a/secure/lib/libcrypto/Makefile +++ b/secure/lib/libcrypto/Makefile @@ -215,11 +215,13 @@ SRCS+= ec_pmeth.c ec_print.c ecdh_kdf.c ecdh_ossl.c ecdsa_ossl.c ecdsa_sign.c SRCS+= ecdsa_vrf.c eck_prn.c ecp_mont.c ecp_nist.c SRCS+= ecp_oct.c ecp_smpl.c ecx_backend.c ecx_key.c ecx_meth.c eddsa.c SRCS+= f_generic.c f_impl32.c f_impl64.c scalar.c -.if defined(ASM_aarch64) +# see OPENSSL_NO_EC_NISTP_64_GCC_128 in configuration.h +.if ${MACHINE_ABI:Mlittle-endian} && ${MACHINE_ABI:Mlong64} SRCS+= ecp_nistp224.c ecp_nistp256.c ecp_nistp521.c ecp_nistputil.c +.endif +.if defined(ASM_aarch64) SRCS+= ecp_nistz256-armv8.S ecp_nistz256.c .elif defined(ASM_amd64) -SRCS+= ecp_nistp224.c ecp_nistp256.c ecp_nistp521.c ecp_nistputil.c SRCS+= ecp_nistz256-x86_64.S ecp_nistz256.c x25519-x86_64.S .elif defined(ASM_arm) SRCS+= ecp_nistz256-armv4.S ecp_nistz256.c