From: Eric Biggers <ebiggers@kernel.org>
To: sashiko-reviews@lists.linux.dev
Cc: David Howells <dhowells@redhat.com>,
Marc Dionne <marc.dionne@auristor.com>,
linux-crypto@vger.kernel.org,
"David S . Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@google.com>,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
Simon Horman <horms@kernel.org>
Subject: Re: [PATCH net-next 3/5] net/rxrpc: Reimplement DES-PCBC using DES library
Date: Fri, 30 Oct 2026 18:20:43 +0000 [thread overview]
Message-ID: <20261030182043.GC2500145@google.com> (raw)
In-Reply-To: <sashiko-outbox-190325@kernel.org>
On Fri, Oct 30, 2026 at 04:53:36AM +0000, sashiko-bot@kernel.org wrote:
> Does this introduce an unintended behavior change regarding weak DES keys?
>
> The old code used crypto_skcipher_setkey(), which in the generic DES
> implementation suppresses the -ENOKEY error and returns 0 (success) unless
> CRYPTO_TFM_REQ_FORBID_WEAK_KEYS is explicitly set. The RxRPC code did not
> set this flag, meaning weak DES keys were silently accepted.
>
> By calling des_expand_key() directly, which unconditionally returns -ENOKEY
> for weak keys, rxkad_preparse_server_key() will now fail and reject these
> keys instead of succeeding.
>
> While weak keys shouldn't be used, could this undocumented change break
> backward compatibility for existing userspace configurations or test
> environments relying on fixed weak keys?
Could be either a bug or a feature. If someone wants to make
net/rxrpc/rxkad.c start allowing weak DES keys again (by ignoring
-ENOKEY from des_expand_key()), it could be done. I doubt anyone cares.
- Eric
next prev parent reply other threads:[~2026-10-30 18:20 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-04-28 2:43 [PATCH net-next 0/5] Consolidate FCrypt and PCBC code into net/rxrpc/ Eric Biggers
2026-04-28 2:43 ` [PATCH net-next 1/5] net/rxrpc: Add local FCrypt-PCBC implementation Eric Biggers
2026-04-28 6:24 ` David Howells
2026-04-28 6:33 ` David Howells
2026-10-30 4:53 ` sashiko-bot
2026-10-30 18:13 ` Eric Biggers
2026-04-28 2:43 ` [PATCH net-next 2/5] net/rxrpc: Use " Eric Biggers
2026-05-08 18:02 ` David Howells
2026-05-08 18:23 ` Eric Biggers
2026-05-08 18:56 ` David Howells
2026-05-15 20:14 ` Eric Biggers
2026-05-15 20:58 ` David Howells
2026-10-30 4:53 ` sashiko-bot
2026-10-30 18:17 ` Eric Biggers
2026-04-28 2:43 ` [PATCH net-next 3/5] net/rxrpc: Reimplement DES-PCBC using DES library Eric Biggers
2026-10-30 4:53 ` sashiko-bot
2026-10-30 18:20 ` Eric Biggers [this message]
2026-04-28 2:43 ` [PATCH net-next 4/5] crypto: fcrypt - Remove support for FCrypt block cipher Eric Biggers
2026-04-28 10:03 ` Geert Uytterhoeven
2026-04-28 2:43 ` [PATCH net-next 5/5] crypto: pcbc - Remove support for PCBC mode Eric Biggers
2026-04-28 10:05 ` Geert Uytterhoeven
2026-04-28 7:53 ` [PATCH net-next 0/5] Consolidate FCrypt and PCBC code into net/rxrpc/ David Howells
2026-04-28 17:15 ` Marc Dionne
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=20261030182043.GC2500145@google.com \
--to=ebiggers@kernel.org \
--cc=davem@davemloft.net \
--cc=dhowells@redhat.com \
--cc=edumazet@google.com \
--cc=horms@kernel.org \
--cc=kuba@kernel.org \
--cc=linux-crypto@vger.kernel.org \
--cc=marc.dionne@auristor.com \
--cc=pabeni@redhat.com \
--cc=sashiko-reviews@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox