ceph_crypto_key
const struct ceph_crypto_key *key,
const struct ceph_crypto_key *key; /* our secret key */
struct ceph_crypto_key *key;
const struct ceph_crypto_key *key,
static int __ceph_x_decrypt(const struct ceph_crypto_key *key, int usage_slot,
static int ceph_x_decrypt(const struct ceph_crypto_key *key, int usage_slot,
struct ceph_crypto_key *secret,
struct ceph_crypto_key new_session_key = { 0 };
struct ceph_crypto_key *secret,
static int __ceph_x_encrypt_offset(const struct ceph_crypto_key *key)
static int ceph_x_encrypt_offset(const struct ceph_crypto_key *key)
static int ceph_x_encrypt_buflen(const struct ceph_crypto_key *key,
static int ceph_x_encrypt(const struct ceph_crypto_key *key, int usage_slot,
static int decrypt_authorizer_challenge(struct ceph_crypto_key *secret,
static int decrypt_authorizer_reply(struct ceph_crypto_key *secret,
struct ceph_crypto_key session_key;
struct ceph_crypto_key session_key;
struct ceph_crypto_key secret;
static int get_secret(struct ceph_crypto_key *dst, const char *name,
struct ceph_crypto_key *ckey;
int ceph_crypto_key_decode(struct ceph_crypto_key *key, void **p, void *end)
int ceph_crypto_key_unarmor(struct ceph_crypto_key *key, const char *inkey)
void ceph_crypto_key_destroy(struct ceph_crypto_key *key)
static int set_aes_tfm(struct ceph_crypto_key *key)
static int ceph_aes_crypt(const struct ceph_crypto_key *key, bool encrypt,
static int ceph_krb5_encrypt(const struct ceph_crypto_key *key, int usage_slot,
static int ceph_krb5_decrypt(const struct ceph_crypto_key *key, int usage_slot,
int ceph_crypt(const struct ceph_crypto_key *key, int usage_slot, bool encrypt,
static int set_krb5_tfms(struct ceph_crypto_key *key, const u32 *key_usages,
int ceph_crypt_data_offset(const struct ceph_crypto_key *key)
int ceph_crypt_buflen(const struct ceph_crypto_key *key, int data_len)
void ceph_hmac_sha256(const struct ceph_crypto_key *key, const void *buf,
struct ceph_crypto_key *ckey;
struct ceph_crypto_key *ckey = prep->payload.data[0];
struct ceph_crypto_key *ckey = key->payload.data[0];
int ceph_crypto_key_prepare(struct ceph_crypto_key *key,
int ceph_crypto_key_clone(struct ceph_crypto_key *dst,
const struct ceph_crypto_key *src)
int ceph_crypto_key_prepare(struct ceph_crypto_key *key,
int ceph_crypto_key_clone(struct ceph_crypto_key *dst,
const struct ceph_crypto_key *src);
int ceph_crypto_key_decode(struct ceph_crypto_key *key, void **p, void *end);
int ceph_crypto_key_unarmor(struct ceph_crypto_key *key, const char *in);
void ceph_crypto_key_destroy(struct ceph_crypto_key *key);
int ceph_crypt(const struct ceph_crypto_key *key, int usage_slot, bool encrypt,
int ceph_crypt_data_offset(const struct ceph_crypto_key *key);
int ceph_crypt_buflen(const struct ceph_crypto_key *key, int data_len);
void ceph_hmac_sha256(const struct ceph_crypto_key *key, const void *buf,