]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-client.git/commit
libceph: introduce ceph_crypto_key_prepare()
authorIlya Dryomov <idryomov@gmail.com>
Mon, 22 Dec 2025 18:44:24 +0000 (19:44 +0100)
committerIlya Dryomov <idryomov@gmail.com>
Wed, 28 Jan 2026 12:49:08 +0000 (13:49 +0100)
commit4de8f2c25d3650927d2ec861434374219368f1ab
tree40be688167bccd0c26914b5bd621805785274177
parent3c9e621dde95a8e9f5a425f3ae60e0c3406ceccf
libceph: introduce ceph_crypto_key_prepare()

In preparation for bringing in a new encryption scheme/key type,
decouple decoding or cloning the key from allocating required crypto
API objects and setting them up.  The rationale is that a) in some
cases a shallow clone is sufficient and b) ceph_crypto_key_prepare()
may grow additional parameters that would be inconvenient to provide
at the point the key is originally decoded.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
net/ceph/auth_x.c
net/ceph/crypto.c
net/ceph/crypto.h