Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1x1NiD-0059fe-0d for pgsql-hackers@arkaria.postgresql.org; Tue, 01 Sep 2026 12:35:37 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1x1NiB-00689d-2d for pgsql-hackers@arkaria.postgresql.org; Tue, 01 Sep 2026 12:35:35 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1x1NiB-00689U-0u for pgsql-hackers@lists.postgresql.org; Tue, 01 Sep 2026 12:35:35 +0000 Received: from fhigh-b6-smtp.messagingengine.com ([202.12.124.157]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1x1Ni9-00000003T3N-19eo for pgsql-hackers@lists.postgresql.org; Tue, 01 Sep 2026 12:35:34 +0000 Received: from phl-compute-05.internal (phl-compute-05.internal [10.202.2.45]) by mailfhigh.stl.internal (Postfix) with ESMTP id 0E0D67A0023; Tue, 1 Sep 2026 08:35:32 -0400 (EDT) Received: from phl-frontend-03 ([10.202.2.162]) by phl-compute-05.internal (MEProxy); Tue, 01 Sep 2026 08:35:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ilmari.org; h=cc :cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm2; t=1788266131; x=1788352531; bh=foBi7uecKNi81j3QyDpa07TxsQAY4H6zwMdS/tcB3Bc=; b= uFvUJ7XrtO9n2Qyt41G5Y6kX5npcJ0p334ZBez7fxU4DEUlkjoOIjPGsJrpAalI6 ON/w+XkeE0V3IH0O6/sqLNRGLGXXVnwqtIxGRpgnx9Toyi36sWyCs8YIj1ipVjNM 4t+SQJ0UitIF7l3QD7wzAuywqp/7a0tNc2axrz8QBNleYH9ahzgz2hv2U+aCn1CO TJ8aRhDAF/CooIue3+Px3EKsZMuSx8AxjTkQ62GI2k+7GYxy597xkH/ie6uvSPkK 5uZNPoqtvk7oPCH+Cl7WzPTJW4ylYMr5zKFcfNITIsqg67hpF7fPlAaAXJ/puzxf E3KVOANBDQlFP4DjHi+PIg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1788266131; x= 1788352531; bh=foBi7uecKNi81j3QyDpa07TxsQAY4H6zwMdS/tcB3Bc=; b=I gKx+Lj4IAdR9NaFXRM0+uFl3KedKpJCTmkz3JZ/Q5N6GcGH3E/Su1GfIsAdoy2PC N2+lsNXaszzFHUnskdvyi4SPSyx/sANdLuA57T6LsDfBgziK9t05tFVaWKHkhtXO UVkkh1SCCWjCblgq4L3apXzGq3R0q59t5dH8TcKYRmUEFgdt5jvSj2fZDMOxdbRl WStpfWAXXhjKpEjFze6e/llxZYXucrpOS4upm64mxoywZRnzfhXtE2+vt29cM2Sn IqZ0UiX11YHWMIGy+0W5M7FitP9tzu721S/fN2aZNUEZobAeC0diJTEQT4wbkrq5 GvS82VEAFo7lYUamNi1Ew== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: dmFkZTFklUkyScX69GjpnIHhK1PRuCPElTfzThCLcl2slNo0AxunwvPYk5hGNWCVVCOb7v em643+Uf6cjT1sXL6rnkX6phnYhjGiEthE/cScWTBow1p0ZO9DPEmyxrqXb+BFUrPbokfx vEengSPLnGNgNHUxm6loPluCcRriqHio+UbWWJQbg1NYkzn49nZ+B+9Ika1LfOgP/Acfdm wsmRaVEBYEPvjMAUog0G30RO+HHQWwMOXYq358f4YQsQoQXHy6TS+uw8lqwdZozUj+JNqq Sz/U0mUm/oRW/wugmjdU4Do7lsnIsj5vSqE7I4WJDEMyRQ3iAAmJuMVuQJDI0eSV9Z7meP LrqGyYgFd8+KxQy9JbIibJw2B4Yv17Vg+Uqgw4khDHiVyxGycz8Lax4PETi0mwmWfPtMSD sbKjrDs+8n4mBtOw+mh1b3KwL7m1kf09nRc3CH+NSXoHRbcjm0z2MfYz4/lBSIicXGdSiZ pu53SnnB5lrRU89i0CJ44awd1pGUfZnyQ34rVk3FhnwT1lGvBvQKcW5Mnb+T1tkNzalL08 k1JogMLWgBg32srhSTUv/LhtMDzYBVGm5E9LBQmBK92BhFXhyVhCdMfXat9oz6nz9Pl0D5 4AKYGnvWg3MO4500IgoKJTHGxJKsSOaNJSrLnJozK6VRuGdpAgmBzNmbmU9g X-ME-Proxy: Feedback-ID: i1ff147bf:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 1 Sep 2026 08:35:30 -0400 (EDT) From: =?utf-8?Q?Dagfinn_Ilmari_Manns=C3=A5ker?= To: Peter Eisentraut Cc: Daniel Gustafsson , pgsql-hackers@lists.postgresql.org Subject: Re: pgcrypto: remove useless px_memset() and BF_ASM References: <87ldew2yqu.fsf@wibble.ilmari.org> <9B96C179-32FA-4715-BC26-4E31D9EFF3A2@yesql.se> <71e4b3c9-571f-49d3-881d-0f40b0ca55eb@eisentraut.org> Date: Tue, 01 Sep 2026 13:35:29 +0100 In-Reply-To: <71e4b3c9-571f-49d3-881d-0f40b0ca55eb@eisentraut.org> (Peter Eisentraut's message of "Tue, 1 Sep 2026 14:24:16 +0200") Message-ID: <87zey1xi7i.fsf@wibble.ilmari.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Peter Eisentraut writes: > On 09.04.26 21:07, Daniel Gustafsson wrote: >>> On 9 Apr 2026, at 13:51, Dagfinn Ilmari Mannsåker wrote: >> >>> In the thread about centralised architecture detection, I noticed >>> that the BF_ASM macro in crypt-blowfish.c has never been defined to >>> anything but 0, and the _BF_body_r() function it would call has >>> never existed, so that can be got rid of. >> Agreed. I didn't do enough archaeology to figure out what upstream >> has/had or why it was removed, but it's been dead for 25 odd years so >> it's about time to remove. >> >>> While investigating at that, I also noticed that px_memset(), which >>> has the comment /* memset that must not be optimized away */, is >>> only ever called with zero for the value, which could be better >>> written with explicit_bzero() now that we have that. >> One could imagine various tricks for rewriting px_memset to >> explicit_bzero in order to reduce the churn, but since this code is >> very rarely backpatched into it's not a big problem IMHO. > > I have committed these two patches. One of them was also discussed in > another thread, but I have co-credited this thread. Thanks! - ilmari