pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
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.
Date: Fri, 08 Jan 2021 15:57:39 -0500
Message-ID: <339357.1610139459@sss.pgh.pa.us> (raw)
In-Reply-To: <16815-0fde6075fb21923a@postgresql.org>
References: <16815-0fde6075fb21923a@postgresql.org>

PG Bug reporting form <noreply@postgresql.org> 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





view thread (4+ messages)  latest in thread

Message-ID: <339357.1610139459@sss.pgh.pa.us>
Permalink:  ../339357.1610139459@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/339357.1610139459@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, frank.buettner@mdc-berlin.de, pgsql-bugs@lists.postgresql.org
  Subject: Re: BUG #16815: Unable to use the X448 an X25519 elliptic curves.
  In-Reply-To: <339357.1610139459@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox