From nobody Wed Dec 07 20:34:14 2022 X-Original-To: dev-commits-src-main@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 4NS8CC0JgBz4jmXC; Wed, 7 Dec 2022 20:34:15 +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 4NS8CB6T1dz3j9Q; Wed, 7 Dec 2022 20:34:14 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1670445254; 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=hMx4RiCbK2UKmd83w3oJbsXF7dHor7s2bWeeVo554Uw=; b=JjEmLeIl3sWm11sBdOtIMOx/1854tGIIlWWeQfeMgr1HxAbpxEDbXnErEQ+zQt47maOYgL rd19NQ8zUuBarv4pgNe8T61/HWavqZTxgcd9MlvF8nrl5SeYSBGKsbe6WmEn+xiqnU+ZCH 5bkcCkAJPKtirvvdlp7Bf8MKiHWg/uHBI830Q37bzIgI0GX7eFewxCviW4ryCRa/eLaKpD LCWNZSLiQQMR6tVM4KCahN4nLxt5Bn18ja1kHgTl4HilhImOdja4gsS6zYENq34ESdtejS jpqB31SPtYczWaEIERxMuaex8a7MiHbpUh8/RQq8xLKVvbAyb2ebR4tDgQUIZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1670445254; 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=hMx4RiCbK2UKmd83w3oJbsXF7dHor7s2bWeeVo554Uw=; b=LbIhtnAN/vSNB2QhAWmnT7aWCSIN3jM5OxwW1I64GaNZuTitpgDZxSSZvsXi0omK1PhOMC QxAwb+4kBYDDnLp8l7LMPBsglZHwyXT4Vr5bT/ucXDdma5fH6pZc0cLQlkT8q36/jbBliN My/VzEbz2iMOTqWoyNQGVHORPWQSpOlvEuT4ru/wL8W5l7ENk7j+Ror/Jk+Z2OOYEJ8HzK rRUoZeiUd3V+zwQ4OlnhvxkbjwG1rDzPr6xMkD+W+WNzECJrPz3RmOet/BJRf831LF16L3 hVj3G8WZVbhuv2t2tFbUAsFLEVCiCxvw03KCa3S+ZmxRJtteVlgGVsyCV0moDQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1670445254; a=rsa-sha256; cv=none; b=cC9d613u7XRHusY/MijEhV2VuHkJdHQD/rKs6nYCCe5Uj4FgNK5cnyWvLEbFNiXGSGUqLw szg8ci5rj/NkydTfe/+enheogALlQ3TAei7KNs5yGBCmOSHCq5+rhRMeA3yF+tUzjPxKvD mgsB1NBgrPgBcuQXjOxBEG06KNvaMYknuJDANVlfpncTEcvKs0Wgnfi0c+BJvpShkzOUzt jaPzIRC2QJqHvBZUAm017++jfnAt+FQOmP/3VuPGhbvYuG/QDhU/d0ucShUJBgVsWTejnQ 1LfW/WMFP0LGEZJAvk1bM2m+/uLYPaclfV6OFKdNOGRGGxMquNN2xquRXlohoQ== 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 4NS8CB5ZLGzVp3; Wed, 7 Dec 2022 20:34:14 +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 2B7KYEJR088657; Wed, 7 Dec 2022 20:34:14 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2B7KYEFc088656; Wed, 7 Dec 2022 20:34:14 GMT (envelope-from git) Date: Wed, 7 Dec 2022 20:34:14 GMT Message-Id: <202212072034.2B7KYEFc088656@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: John Baldwin Subject: git: d256a06fe8bd - main - aesni: Remove misleading array bounds for aesni_decryt_ecb. List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jhb X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: d256a06fe8bda8120a3e22434c53fdef076001d3 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=d256a06fe8bda8120a3e22434c53fdef076001d3 commit d256a06fe8bda8120a3e22434c53fdef076001d3 Author: John Baldwin AuthorDate: 2022-12-07 20:32:19 +0000 Commit: John Baldwin CommitDate: 2022-12-07 20:32:19 +0000 aesni: Remove misleading array bounds for aesni_decryt_ecb. All the other functions used pointers for from/to instead of fixed-size array parameters. More importantly, this function can accept pointers to buffers of multiple blocks, not just a single block. Reported by: GCC -Warray-parameter Reviewed by: imp, emaste Differential Revision: https://reviews.freebsd.org/D37547 --- sys/crypto/aesni/aesni_wrap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/crypto/aesni/aesni_wrap.c b/sys/crypto/aesni/aesni_wrap.c index 4d2a45b7e4c4..cca69d3d5c96 100644 --- a/sys/crypto/aesni/aesni_wrap.c +++ b/sys/crypto/aesni/aesni_wrap.c @@ -147,7 +147,7 @@ aesni_encrypt_ecb(int rounds, const void *key_schedule, size_t len, void aesni_decrypt_ecb(int rounds, const void *key_schedule, size_t len, - const uint8_t from[AES_BLOCK_LEN], uint8_t to[AES_BLOCK_LEN]) + const uint8_t *from, uint8_t *to) { __m128i tot; __m128i tout[8];