All of lore.kernel.org
 help / color / mirror / Atom feed
From: Scott Mayhew <smayhew@redhat.com>
To: Alistair <alistair@alistair23.me>
Cc: Chuck Lever <chuck.lever@oracle.com>,
	kernel-tls-handshake@lists.linux.dev
Subject: Re: [PATCH v2 2/4] tlshd: Fix priority string to allow PQC
Date: Wed, 1 Oct 2025 06:58:08 -0400	[thread overview]
Message-ID: <aN0JQCyV-M5ljTf8@aion> (raw)
In-Reply-To: <0c65e986-77d1-44b4-a4cb-c1a9c2213ba3@app.fastmail.com>

On Wed, 01 Oct 2025, Alistair wrote:

> On Fri, 12 Sep 2025, at 7:28 AM, Scott Mayhew wrote:
> > Specifying either of the SECURE256 or SECURE128 keywords in the priority
> > string results in the ML-DSA algorithms being disabled because the
> > post-quantum algorithms do not map nicely to the security
> > classifications based on "bits of security" used for traditional
> > algorithms [1].
> > 
> > Use @SYSTEM instead, which will allow PQC on systems with newer versions
> > of GnuTLS.  It will also allow users to disable PQC via a policy module
> > (on systems with the crypto-policies package).
> > 
> > [1] https://csrc.nist.gov/CSRC/media/Projects/Post-Quantum-Cryptography/documents/call-for-proposals-final-dec-2016.pdf#page=15
> > 
> > Link: https://github.com/oracle/ktls-utils/issues/113
> > Signed-off-by: Scott Mayhew <smayhew@redhat.com>
> > ---
> > src/tlshd/ktls.c | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
> > 
> > diff --git a/src/tlshd/ktls.c b/src/tlshd/ktls.c
> > index 883256a..50381bf 100644
> > --- a/src/tlshd/ktls.c
> > +++ b/src/tlshd/ktls.c
> > @@ -357,7 +357,7 @@ static int tlshd_gnutls_priority_init_list(const unsigned int *ciphers,
> > const char *errpos;
> > int ret, i;
> >  
> > - pstring = strdup("SECURE256:+SECURE128:-COMP-ALL");
> > + pstring = strdup("@SYSTEM:-COMP-ALL");
> 
> This change is breaking traditional handshakes for me as _gnutls_resolve_priorities() fails to resolve a priority.
> 
> I'm not sure if it's a system config issue though, is anyone else seeing this?

What output do you get when you run these commands?

gnutls-cli --priority @SYSTEM -l
gnutls-cli --list-config

-Scott
> 
> Alistair
> 
> > if (!pstring)
> > return -ENOMEM;
> >  
> > -- 
> > 2.50.1
> > 
> > 
> > 
> 


  reply	other threads:[~2025-10-01 10:58 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-09-11 21:28 [PATCH v2 0/4] tlshd: Allow the use of post-quantum cryptography Scott Mayhew
2025-09-11 21:28 ` [PATCH v2 1/4] tlshd: deduplicate client and server config functions Scott Mayhew
2025-09-11 21:28 ` [PATCH v2 2/4] tlshd: Fix priority string to allow PQC Scott Mayhew
2025-10-01  3:37   ` Alistair
2025-10-01 10:58     ` Scott Mayhew [this message]
2025-10-01 23:35     ` [PATCH] tlshd: fix priority cache initialization Scott Mayhew
2025-10-02  0:22       ` Alistair Francis
2025-10-02  5:28       ` Hannes Reinecke
2025-10-02 18:50         ` Chuck Lever
2025-09-11 21:28 ` [PATCH v2 3/4] tlshd: Server-side dual certificate support Scott Mayhew
2025-09-11 21:28 ` [PATCH v2 4/4] tlshd: Client-side " Scott Mayhew
2025-09-12 14:35 ` [PATCH v2 0/4] tlshd: Allow the use of post-quantum cryptography Chuck Lever

Reply instructions:

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

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

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=aN0JQCyV-M5ljTf8@aion \
    --to=smayhew@redhat.com \
    --cc=alistair@alistair23.me \
    --cc=chuck.lever@oracle.com \
    --cc=kernel-tls-handshake@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.