]> 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>
Mon, 9 Feb 2026 11:29:22 +0000 (12:29 +0100)
commit6cec0b61aacce4da5125b21c718189f0dc11eb51
tree1ba4fdee07a51e85a1653f2bdd69ad8cd97d6292
parent0ee8bccf7396d50726c9c8dd3135fb64a9fe8426
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