]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
libceph: Remove obsolete session key alignment logic
authorEric Biggers <ebiggers@kernel.org>
Sat, 14 Mar 2026 21:25:19 +0000 (14:25 -0700)
committerIlya Dryomov <idryomov@gmail.com>
Tue, 21 Apr 2026 23:40:22 +0000 (01:40 +0200)
commitc7aac00c2c1dc8f6cb66ce10c730e0cd871408bf
tree61f0c7a3e5cbbff05ad4df58fa3930fbb2ae9378
parenta0d9555bf9eaeba34fe6b6bb86f442fe08ba3842
libceph: Remove obsolete session key alignment logic

Since the call to crypto_shash_setkey() was replaced with
hmac_sha256_preparekey() which doesn't allocate memory regardless of the
alignment of the input key, remove the session key alignment logic from
process_auth_done().  Also remove the inclusion of crypto/hash.h, which
is no longer needed since crypto_shash is no longer used.

[ idryomov: rewrap comment ]

Signed-off-by: Eric Biggers <ebiggers@kernel.org>
Reviewed-by: Ilya Dryomov <idryomov@gmail.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
net/ceph/messenger_v2.c