]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-client.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>
Mon, 16 Mar 2026 10:06:22 +0000 (11:06 +0100)
commit2a8885bf8dbf7fb4ef6aecc4825eaff01a58ead6
tree3d48da0678d88abdc13d9ea47c2bbb90ea2fae45
parentf338e77383789c0cae23ca3d48adcc5e9e137e3c
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