Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fxOVl-0005ju-1D for pgsql-general@arkaria.postgresql.org; Wed, 05 Sep 2018 03:29:45 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fxOVi-0006vj-J6 for pgsql-general@arkaria.postgresql.org; Wed, 05 Sep 2018 03:29:42 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fxOVi-0006uX-7K for pgsql-general@lists.postgresql.org; Wed, 05 Sep 2018 03:29:42 +0000 Received: from sonic307-4.consmr.mail.bf2.yahoo.com ([74.6.134.43]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fxOVa-0006fD-5h for pgsql-general@lists.postgresql.org; Wed, 05 Sep 2018 03:29:40 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1536118172; bh=LKm1eMNg0HavLzn5I1v/VsJCEL6AmQY03CSRLhfsoTM=; h=Date:From:To:Subject:References:From:Subject; b=FfBDcyQ1qAzqrfd4GEr9GdB++BtSvGfZHCwrMNvn29RbKVIXpTxBgDmi4QZWm8/o3hXm+MH9raFeP1rPoFuB9IL6xPLeinpjtXu4ry3KP6cu6FqQQc7E3deFS15RlAkBCmJhKqyfv3PSDMe+g5MHX4KO0h3Onh5H2dydRxPapzC9KL4UF7V9Ja8cPmcjx4ZiwCZSLzCjTnATFFI2J0LlR7LPB0/cWpkOHMA8HH/9n4D5bzdVzoqJW5LWA8QEd4pAvHKAmZ7qkocpDZfOuMolz9vAFsaH66uMU/gRybd79msn2pTZZSLkw65gH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ne1.yahoo.com by sonic307.consmr.mail.bf2.yahoo.com with HTTP; Wed, 5 Sep 2018 03:29:32 +0000 Date: Wed, 5 Sep 2018 03:29:31 +0000 (UTC) From: Alessandro Gherardi To: "pgsql-general@lists.postgresql.org" Message-ID: <898098721.1290085.1536118171911@mail.yahoo.com> Subject: scram-sha-256 authentication broken in FIPS mode MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_1290084_684284727.1536118171910" References: <898098721.1290085.1536118171911.ref@mail.yahoo.com> X-Mailer: WebService/1.1.12403 YMailNorrin Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36 Content-Length: 1814 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk ------=_Part_1290084_684284727.1536118171910 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable It looks like scram-sha-256 doesn't work when postgres is linked against FI= PS-enabled OpenSSL and FIPS mode is turned on. Specifically, all login attempts fail with an OpenSSL error saying somethin= g along the lines of "Low level API call to digest SHA256 forbidden in fips= mode". I think this issue could be solved by refactoring the code in sha2_openssl.= c to use the OpenSSL EVP interface (see=C2=A0https://wiki.openssl.org/index= .php/EVP_Message_Digests=C2=A0). Any thoughts? Is this a known issue? Thank you in advance.Alessandro ------=_Part_1290084_684284727.1536118171910 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit
It looks like scram-sha-256 doesn't work when postgres is linked against FIPS-enabled OpenSSL and FIPS mode is turned on.

Specifically, all login attempts fail with an OpenSSL error saying something along the lines of "Low level API call to digest SHA256 forbidden in fips mode".

I think this issue could be solved by refactoring the code in sha2_openssl.c to use the OpenSSL EVP interface (see https://wiki.openssl.org/index.php/EVP_Message_Digests ).

Any thoughts? Is this a known issue?

Thank you in advance.
Alessandro


------=_Part_1290084_684284727.1536118171910--