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 1oivQK-0006mW-El for pgsql-hackers@arkaria.postgresql.org; Thu, 13 Oct 2022 10:26:44 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oivQJ-0008F4-9h for pgsql-hackers@arkaria.postgresql.org; Thu, 13 Oct 2022 10:26:43 +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 1oivQJ-0008Eu-0E for pgsql-hackers@lists.postgresql.org; Thu, 13 Oct 2022 10:26:43 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oivQF-0004Yc-J3 for pgsql-hackers@postgresql.org; Thu, 13 Oct 2022 10:26:41 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 046D15C00F9; Thu, 13 Oct 2022 06:26:36 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Thu, 13 Oct 2022 06:26:36 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :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=1665656796; x= 1665743196; bh=HxY6X13qdRrwd9ns0z8RWux9oNwf7LxMsi2zhRceFeM=; b=s EC8NbYxjLBsW7xdw44jzUqitP3RqiKlcMisviHihnDCOgMGvNamcmtb+GOf8cOk2 HrTtl3Zp3VkqwoQCHlo1nehGmiQl/QiTzZdw0EyjDwnDdPdZ1a/oYLa/bIhHTP8p HbwN2Kxl+4DZrKbxjKZzknEBfZB5f9udNeLssjtH1sXlAOQ4Sc05LoY+GzX0/aVH yPcNohkhJpRypQFd7TnvNA+1e3ocTDaCRPxF8uGZ9Niv2WzD+3KVmeVt0Uzt0xeE TLZey2I/rLB2byrRAd1+nhAym/Y8mFsDuDw/r7mWPVGdc4IUClzJ/IQ3iRA0pDBM NQroVwu+agMiVkJSEneWA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrfeektddgfeduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepkfffgggfuffvvehfhfgjtgfgsehtjeertddtfeejnecuhfhrohhmpefrvght vghrucfgihhsvghnthhrrghuthcuoehpvghtvghrrdgvihhsvghnthhrrghuthesvghnth gvrhhprhhishgvuggsrdgtohhmqeenucggtffrrghtthgvrhhnpeehleffgeegudejteei hfelteduvdeifffhffdvjedvffegjeekudeludehudeifeenucevlhhushhtvghrufhiii gvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehpvghtvghrrdgvihhsvghnthhrrghu thesvghnthgvrhhprhhishgvuggsrdgtohhm X-ME-Proxy: Feedback-ID: i131946ab:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 13 Oct 2022 06:26:34 -0400 (EDT) Message-ID: <3c36b798-fbb2-9246-fafd-4e4b2f546de8@enterprisedb.com> Date: Thu, 13 Oct 2022 12:26:32 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.3.1 Subject: Re: Allow tests to pass in OpenSSL FIPS mode Content-Language: en-US To: Michael Paquier Cc: pgsql-hackers References: <647f6cc1-473d-f788-ade0-c09201e5ab6a@enterprisedb.com> From: Peter Eisentraut In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 12.10.22 03:18, Michael Paquier wrote: > 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. Committed. > 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. Right, that's the rest of my original patch. I'll come back with an updated version of that.