From: Jeffrey E Altman <jaltman@auristor.com>
To: David Howells <dhowells@redhat.com>,
Chuck Lever III <chuck.lever@oracle.com>
Cc: Herbert Xu <herbert@gondor.apana.org.au>,
"linux-afs@lists.infradead.org" <linux-afs@lists.infradead.org>,
Linux NFS Mailing List <linux-nfs@vger.kernel.org>,
"linux-crypto@vger.kernel.org" <linux-crypto@vger.kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: How to get my krb5 crypto lib upstream?
Date: Wed, 31 May 2023 20:14:02 -0400 [thread overview]
Message-ID: <83d7f550-7216-6ff4-bc8a-859e752e12a3@auristor.com> (raw)
In-Reply-To: <726863.1685563684@warthog.procyon.org.uk>
[-- Attachment #1: Type: text/plain, Size: 1713 bytes --]
On 5/31/2023 4:08 PM, David Howells wrote:
> Fair point. In rxgk, I use key_len, key_bytes, block_len, cksum_len plus the
> name for procfs purposes. I also wonder if I need separate key_len and
> key_bytes if I'm not supporting DES (DES keys gets expanded IIRC). Also, some
> of the checks I'm doing could perhaps be moved into the krb5 lib.
The "K" in RXGK is RFC3961 without support for weak ciphers. No DES, no
3DES
and no RC4-HMAC. DES keys are never expanded.
The supported ciphers are
* aes128-cts-hmac-sha1-96 (RFC3962)
* aes256-cts-hmac-sha1-96 (RFC3962)
* aes128-cts-hmac-sha256-128 (RFC8009)
* aes256-cts-hmac-sha384-192 (RFC8009)
There are other Kerberos ciphers that could be used with RXGK but there
are no RXGK server implementations that use them. None of the RFC3961
ciphers or the RFC3961 interfaces support AEAD modes.
Luke Howard proposed "AEAD Encryption Types for Kerberos 5"
https://datatracker.ietf.org/doc/draft-howard-krb-aead/ to IETF Kitten
which would add AES128 and AES256 GCM, CCM, and OCB modes. However,
there is some resistance to these additions because at the moment all
RFC3961 ciphers are safe for use with long term keys and repeating
cipher state; AEAD modes are not.
RXGK can be constrained such that it is safe for use with AEAD modes and
I would like to see Luke's draft be adopted if only because CTS-HMAC is
not supported by Intel QAT and GCM is. Adoption of Luke's draft would
not only benefit AuriStorFS but NFSv4 gss-krb5 as well.
My suggestion is that the kernel should provide an RFC3961 API for use
by gss_krb5 applications. AEAD modes can be added to that if and when
Luke's draft is adopted.
Jeffrey Altman
[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 4039 bytes --]
prev parent reply other threads:[~2023-06-01 0:14 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <8C32DD7C-719D-4CC5-A1E3-33BCE0A7FEFF@oracle.com>
2023-05-31 17:02 ` David Howells
[not found] ` <726863.1685563684@warthog.procyon.org.uk>
2023-06-01 0:14 ` Jeffrey E Altman [this message]
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=83d7f550-7216-6ff4-bc8a-859e752e12a3@auristor.com \
--to=jaltman@auristor.com \
--cc=chuck.lever@oracle.com \
--cc=dhowells@redhat.com \
--cc=herbert@gondor.apana.org.au \
--cc=linux-afs@lists.infradead.org \
--cc=linux-crypto@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-nfs@vger.kernel.org \
/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
all inboxes | Powered by JetHome®