Searched refs:cryptbuf (Results 1 – 2 of 2) sorted by relevance
/linux-6.6.21/fs/ceph/ |
D | crypto.c | 270 u8 *cryptbuf = NULL; in ceph_encode_encrypted_dname() local 303 cryptbuf = kmalloc(len > CEPH_NOHASH_NAME_MAX ? NAME_MAX : len, in ceph_encode_encrypted_dname() 305 if (!cryptbuf) { in ceph_encode_encrypted_dname() 310 ret = fscrypt_fname_encrypt(dir, &iname, cryptbuf, len); in ceph_encode_encrypted_dname() 319 u8 *extra = cryptbuf + CEPH_NOHASH_NAME_MAX; in ceph_encode_encrypted_dname() 331 elen = ceph_base64_encode(cryptbuf, len, buf); in ceph_encode_encrypted_dname() 345 kfree(cryptbuf); in ceph_encode_encrypted_dname()
|
D | mds_client.c | 2536 u8 *cryptbuf = NULL; in get_fscrypt_altname() local 2568 cryptbuf = kmalloc(len, GFP_KERNEL); in get_fscrypt_altname() 2569 if (!cryptbuf) in get_fscrypt_altname() 2572 ret = fscrypt_fname_encrypt(dir, &dentry->d_name, cryptbuf, len); in get_fscrypt_altname() 2574 kfree(cryptbuf); in get_fscrypt_altname() 2579 return cryptbuf; in get_fscrypt_altname()
|