Home
last modified time | relevance | path

Searched refs:usage_slot (Results 1 – 2 of 2) sorted by relevance

/linux/net/ceph/
H A Dcrypto.c328 static int ceph_krb5_encrypt(const struct ceph_crypto_key *key, int usage_slot, in ceph_krb5_encrypt() argument
335 if (WARN_ON_ONCE(usage_slot >= ARRAY_SIZE(key->krb5_tfms))) in ceph_krb5_encrypt()
342 ret = crypto_krb5_encrypt(key->krb5_type, key->krb5_tfms[usage_slot], in ceph_krb5_encrypt()
358 static int ceph_krb5_decrypt(const struct ceph_crypto_key *key, int usage_slot, in ceph_krb5_decrypt() argument
367 if (WARN_ON_ONCE(usage_slot >= ARRAY_SIZE(key->krb5_tfms))) in ceph_krb5_decrypt()
374 ret = crypto_krb5_decrypt(key->krb5_type, key->krb5_tfms[usage_slot], in ceph_krb5_decrypt()
389 int ceph_crypt(const struct ceph_crypto_key *key, int usage_slot, bool encrypt, in ceph_crypt() argument
401 ceph_krb5_encrypt(key, usage_slot, buf, buf_len, in_len, in ceph_crypt()
403 ceph_krb5_decrypt(key, usage_slot, buf, buf_len, in_len, in ceph_crypt()
H A Dauth_x.c85 static int ceph_x_encrypt(const struct ceph_crypto_key *key, int usage_slot, in ceph_x_encrypt() argument
96 ret = ceph_crypt(key, usage_slot, true, buf + sizeof(u32), in ceph_x_encrypt()
106 static int __ceph_x_decrypt(const struct ceph_crypto_key *key, int usage_slot, in __ceph_x_decrypt() argument
113 ret = ceph_crypt(key, usage_slot, false, p, ciphertext_len, in __ceph_x_decrypt()
127 static int ceph_x_decrypt(const struct ceph_crypto_key *key, int usage_slot, in ceph_x_decrypt() argument
136 ret = __ceph_x_decrypt(key, usage_slot, *p, ciphertext_len); in ceph_x_decrypt()