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 1kxypM-0000DJ-88 for pgsql-bugs@arkaria.postgresql.org; Fri, 08 Jan 2021 20:57: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 1kxypK-00060c-VY for pgsql-bugs@arkaria.postgresql.org; Fri, 08 Jan 2021 20:57:42 +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 1kxypK-00060R-Ox for pgsql-bugs@lists.postgresql.org; Fri, 08 Jan 2021 20:57:42 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kxypI-0001o8-Gx for pgsql-bugs@lists.postgresql.org; Fri, 08 Jan 2021 20:57:41 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 108KvdH4339358; Fri, 8 Jan 2021 15:57:39 -0500 From: Tom Lane To: frank.buettner@mdc-berlin.de cc: pgsql-bugs@lists.postgresql.org Subject: Re: BUG #16815: Unable to use the X448 an X25519 elliptic curves. In-reply-to: <16815-0fde6075fb21923a@postgresql.org> References: <16815-0fde6075fb21923a@postgresql.org> Comments: In-reply-to PG Bug reporting form message dated "Fri, 08 Jan 2021 10:29:01 +0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <339356.1610139459.1@sss.pgh.pa.us> Date: Fri, 08 Jan 2021 15:57:39 -0500 Message-ID: <339357.1610139459@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk PG Bug reporting form writes: > It looks like the curves with the upper X are known, but not correct > initialized. BTW, as far as that goes, I looked into the source code and found nid = OBJ_sn2nid(SSLECDHCurve); if (!nid) { ereport(isServerStart ? FATAL : LOG, (errcode(ERRCODE_CONFIG_FILE_ERROR), errmsg("ECDH: unrecognized curve name: %s", SSLECDHCurve))); return false; } ecdh = EC_KEY_new_by_curve_name(nid); if (!ecdh) { ereport(isServerStart ? FATAL : LOG, (errcode(ERRCODE_CONFIG_FILE_ERROR), errmsg("ECDH: could not create key"))); return false; } So it would appear that "X448" and "X25519" are known as names for *some* sort of thing known to OpenSSL, but they aren't ECDH curves. regards, tom lane