]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
SUNRPC: Prepare crypto/krb5 encryption and checksum handles
authorChuck Lever <chuck.lever@oracle.com>
Mon, 27 Apr 2026 13:50:49 +0000 (09:50 -0400)
committerChuck Lever <cel@kernel.org>
Tue, 9 Jun 2026 20:32:59 +0000 (16:32 -0400)
commit25ccbefc9fd6f62acbf2f3d8eb9e2b3950e5fe28
treea58f7397b6318a5d634487f777a11d371fea0679
parent6e5e0c58dbd059eef27f01805c032b8fa3cd5eb1
SUNRPC: Prepare crypto/krb5 encryption and checksum handles

Allocate crypto_aead handles for encryption (one per direction)
and crypto_shash handles for checksumming (one per direction)
using the crypto/krb5 library's key preparation functions.

These four handles derive their subkeys from the session key
and the RFC 4121 usage numbers and are ready for use in
encrypt, decrypt, get_mic, and verify_mic operations.

The existing crypto_sync_skcipher and crypto_ahash handles
remain in place for now; subsequent patches switch the
per-message operations to the new handles and then remove
the old ones.

Assisted-by: Claude:claude-opus-4-6
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Acked-by: Anna Schumaker <anna.schumaker@hammerspace.com>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
net/sunrpc/auth_gss/gss_krb5_internal.h
net/sunrpc/auth_gss/gss_krb5_mech.c