From nobody Sun Feb 8 09:10:19 2026 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A45B920468E; Mon, 20 Oct 2025 00:53:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760921615; cv=none; b=NJaZ0Lh6HfEuNktfqPXq0SQiSKcYzB1kXwCS6d3m3QXiW0zDTJo6QNSOiAB4TRDel67wT5PrKD1s3vE1K2JhKLwPjoLEd2oAA5fxJ0I2RpA4Nc+KNhQndeidU4BGHR6oe+nap0to8gAcZhsxI27Y00w4PcalzqP3XlLUSIKZhsw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760921615; c=relaxed/simple; bh=Hauj1v8AzIcWYsh5CTOeRlzypb0Dv3HdLIY/wCgEtzU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=dzzfj9DFAmPfN+zx4WrpK/HkqRkh6IyfHo1kWFTi8dD511eeTEbS0d8kFOmyHGRkSCMPijCxt48Ul3/IA6Gis5QEVKWC6CI2NchRmQNDd/Bqgzm+ONmw64bC+DK0ITNKtGhoaONE7dpcvzdoK0VNVXu4fe+26irWQnHP0f2Yz/8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=EDmcNoYS; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="EDmcNoYS" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 08420C4AF09; Mon, 20 Oct 2025 00:53:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1760921615; bh=Hauj1v8AzIcWYsh5CTOeRlzypb0Dv3HdLIY/wCgEtzU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=EDmcNoYSTLKuVAnezV8raI05zhSi+N8DFRp5eUI+SDDMEQx4A3Mi+XXEyv8kGwS9H mfsiBZOBedmzyu4nmcPr4bmk+suPDgv0bollZO8GCcnM9d3HW/XHoLopB7XAPRttT8 ILXgXsR82tNvVEzfu/dSwY2hS1dVzqtgPmQF5jWfTKlFV5ARz+6VvMp6ycsodwMBqH 7h6cn3vxwdujzqKx9Kwtmz9g0HC1wQdeph9vx1px3QV8Sp0T/5JVBSKDmLVdJ+i0NR 7eGFPwi5GdBWcyMgbJ+lnupzJRhvo7uxeFOT0KqAMY5/y9vsCt8VK1UHi+T48wFc+c S9X4Wqc+dep2Q== From: Eric Biggers To: linux-crypto@vger.kernel.org Cc: David Howells , Ard Biesheuvel , "Jason A . Donenfeld" , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-s390@vger.kernel.org, Eric Biggers Subject: [PATCH 08/17] lib/crypto: sha3: Drop unfinished SHAKE support from gen-hash-testvecs.py Date: Sun, 19 Oct 2025 17:50:29 -0700 Message-ID: <20251020005038.661542-9-ebiggers@kernel.org> X-Mailer: git-send-email 2.51.1.dirty In-Reply-To: <20251020005038.661542-1-ebiggers@kernel.org> References: <20251020005038.661542-1-ebiggers@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" The SHAKE testing doesn't actually use gen-hash-testvecs.py, so remove the unfinished SHAKE support from it. Signed-off-by: Eric Biggers --- scripts/crypto/gen-hash-testvecs.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/scripts/crypto/gen-hash-testvecs.py b/scripts/crypto/gen-hash-= testvecs.py index cb6f6cfbedeb2..ba241cb1ed2fd 100755 --- a/scripts/crypto/gen-hash-testvecs.py +++ b/scripts/crypto/gen-hash-testvecs.py @@ -59,14 +59,10 @@ def hash_init(alg): =20 def hash_update(ctx, data): ctx.update(data) =20 def hash_final(ctx): - if ctx.name =3D=3D "shake_128": - return ctx.digest(16) - if ctx.name =3D=3D "shake_256": - return ctx.digest(32) return ctx.digest() =20 def compute_hash(alg, data): ctx =3D hash_init(alg) hash_update(ctx, data) @@ -166,9 +162,9 @@ print(f'/* This file was generated by: {sys.argv[0]} {"= ".join(sys.argv[1:])} */ gen_unkeyed_testvecs(alg) if alg =3D=3D 'blake2s': gen_additional_blake2s_testvecs() elif alg =3D=3D 'poly1305': gen_additional_poly1305_testvecs() -elif alg.startswith('sha3-') or alg.startswith('shake'): +elif alg.startswith('sha3-'): pass # no HMAC else: gen_hmac_testvecs(alg) --=20 2.51.1.dirty