Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oiQOn-00021v-FG for pgsql-hackers@arkaria.postgresql.org; Wed, 12 Oct 2022 01:19:05 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oiQOl-00054t-BB for pgsql-hackers@arkaria.postgresql.org; Wed, 12 Oct 2022 01:19:03 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oiQOl-00054k-21 for pgsql-hackers@lists.postgresql.org; Wed, 12 Oct 2022 01:19:03 +0000 Received: from wout5-smtp.messagingengine.com ([64.147.123.21]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oiQOe-0005OE-OC for pgsql-hackers@postgresql.org; Wed, 12 Oct 2022 01:19:02 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 1CC2A3200906; Tue, 11 Oct 2022 21:18:55 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Tue, 11 Oct 2022 21:18:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= cc:cc:content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to; s=fm3; t=1665537534; x=1665623934; bh=5CLGrPlzCX 2QQfOiNaVIhuE8pRch0ihWRoGPKh/bVwU=; b=XtuJqp7tlL07n76GloWueBwnM5 LByn+2LrkNGSFnX0YzwNIwO6rO+ed/JNHDh/cbaQedtVL/xd30m4jaX2DS+TRTCJ 6B5z+C0j/e9F7EuhVkelnZaN0qKYoNnqpdJqepKLx18kQ02qPJajSdoTooTruF4x /4Sy7Gcj67LaDOnqrah4GAoJmuoSsAGEkAx+eCsuzRtKX0EMUr8+ZHGtmy2c27wC pHK4ktF903pCHHe6DpUIkg1P5W7d4RxpQ26+XAomBqpmNYv/eVUBKkAT2TvhnLrQ dPQ9jAD2gZaYAt4BTtvJNuyBm3NoJVQ9ezUqMWqrtqUBxpQKWH2MXJ5qkpoA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:feedback-id :feedback-id:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:sender:subject:subject:to:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; t=1665537534; x=1665623934; bh=5CLGrPlzCX2QQfOiNaVIhuE8pRch 0ihWRoGPKh/bVwU=; b=NoiLONvWkn2FNANfyKjNuTMLHv+MOFJLYFnTq9Ks4Z66 NI2e/3Xjrl60nJVuT5iBKbpNcO/Eu+eBNXL4WAU2oPyJqe6qidX30GQ89WOSlOZN XGnnivLjhET0z1SCQ+JiO9LgD8sfzo68sLNTxH5X3GgaKTYjwl+X9sHiZ2NJLhQB H7y5PHUdx+O706M/Nw3eeBJWiOBVWbTqIr1HkUNNyZruzNMZDxXdF8kepIvyjhnL o4yKwN0s4S6ZLyaUUJJlv/JZd7BjmKsiHjzQB1/U189TCBmdRRcTluVcVPuZ7qZc /yNyceFLSDI20N3ik0mNToa9gjdl60pAv5l7lYSRrQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrfeejjedggeeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne gfrhhlucfvnfffucdljedtmdenucfjughrpeffhffvvefukfhfgggtuggjsehgtderredt tddvnecuhfhrohhmpefoihgthhgrvghlucfrrghquhhivghruceomhhitghhrggvlhesph grqhhuihgvrhdrgiihiieqnecuggftrfgrthhtvghrnhepteelieefudffhffhtdetleeg geegfffhkeeuveetiefgudduvedutefggeeivdejnecuvehluhhsthgvrhfuihiivgeptd enucfrrghrrghmpehmrghilhhfrhhomhepmhhitghhrggvlhesphgrqhhuihgvrhdrgiih ii X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 11 Oct 2022 21:18:53 -0400 (EDT) Date: Wed, 12 Oct 2022 10:18:50 +0900 From: Michael Paquier To: Peter Eisentraut Cc: pgsql-hackers Subject: Re: Allow tests to pass in OpenSSL FIPS mode Message-ID: References: <647f6cc1-473d-f788-ade0-c09201e5ab6a@enterprisedb.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="9vlvu+p0NOulAZDl" Content-Disposition: inline In-Reply-To: <647f6cc1-473d-f788-ade0-c09201e5ab6a@enterprisedb.com> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --9vlvu+p0NOulAZDl Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Tue, Oct 11, 2022 at 01:51:50PM +0200, Peter Eisentraut wrote: > Let's make a small start on this. The attached patch moves the tests of the > md5() function to a separate test file. That would ultimately make it > easier to maintain a variant expected file for FIPS mode where that function > will fail (similar to how we have done it for the pgcrypto tests). Makes sense to me. This slice looks fine. I think that the other md5() computations done in the main regression test suite could just be switched to use one of the sha*() functions as they just want to put their hands on text values. It looks like a few of them have some expections with the output size and generate_series(), though, but this could be tweaked by making the series shorter, for example. -- Michael --9vlvu+p0NOulAZDl Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmNGFfoACgkQnvQgOdby QH1c/A/9EWB26dhQ3H7y5VlNbfJRzRzVcP7CaWfRLaMptv/arvAkNJ5cwX6eT8Rs 7GRqaqfnJmaxA+/4LiRxU/LknFoib7xeJPc4fb/NmUxuZgUAX6LLnijZMWJ09v2r Q8+E2J/y+bGW+28i/0+MP1+4tS2S0FgwThFKjUNRlfIdM1abOQDpBmtJAaurKkW3 E0QoHLXn3EK5ybyeHS757pjFP9sINiDTuosi6/WBnl/RJsX89YBup1F4I+JFF9Ej d9wXCyk0PEzS2m4iYvnhRYbPDRcCnGk1Ai9gvIYV7dyyQ2YEyswiySZc95iRUEDU dl+iMo/6xxoA3IrLrSYbIFa72809Uk6hPI64xHkNlV2QHDtY8KlX4ZtbQJ/4JZwe Ov986PVG6HbgaS49uHZjBFu7lWq4Wh3EXkF4JO6sn9W4OUUR2Bi7zTl2yPs7j1Vg IvRteJ4F7yh0KybtX51rFaehOXPK/jC+/++9lbBmM8/sZHLwpjTldzUzIbO3K3/x sIVcfDAKEkHcXVZC4aGSPeJMm+mwhPmain7GS8PI/dIdlGaH7W3mdMS+pByVmsX+ tpNHRftA0v36dfLU+G7GcGZmIUThBqmEiBGLRyfbHl0qdMydVRrQqSeMAWej4cGp 5ETX4Kw40+Mbi3c9/0Xki7cmp7ISSE1TkLwmXif0oljWZ/kmls4= =XF7q -----END PGP SIGNATURE----- --9vlvu+p0NOulAZDl--