Searched refs:cryptbuf (Results 1 – 2 of 2) sorted by relevance
/openbmc/linux/fs/ceph/ |
H A 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()
|
H A D | mds_client.c | 2537 u8 *cryptbuf = NULL; in get_fscrypt_altname() local 2569 cryptbuf = kmalloc(len, GFP_KERNEL); in get_fscrypt_altname() 2570 if (!cryptbuf) in get_fscrypt_altname() 2573 ret = fscrypt_fname_encrypt(dir, &dentry->d_name, cryptbuf, len); in get_fscrypt_altname() 2575 kfree(cryptbuf); in get_fscrypt_altname() 2580 return cryptbuf; in get_fscrypt_altname()
|