Searched refs:cryptbuf (Results 1 – 2 of 2) sorted by relevance
| /linux-6.15/fs/ceph/ |
| H A D | crypto.c | 273 u8 *cryptbuf = NULL; in ceph_encode_encrypted_dname() local 306 cryptbuf = kmalloc(len > CEPH_NOHASH_NAME_MAX ? NAME_MAX : len, in ceph_encode_encrypted_dname() 308 if (!cryptbuf) { in ceph_encode_encrypted_dname() 313 ret = fscrypt_fname_encrypt(dir, &iname, cryptbuf, len); in ceph_encode_encrypted_dname() 322 u8 *extra = cryptbuf + CEPH_NOHASH_NAME_MAX; in ceph_encode_encrypted_dname() 334 elen = ceph_base64_encode(cryptbuf, len, buf); in ceph_encode_encrypted_dname() 348 kfree(cryptbuf); in ceph_encode_encrypted_dname()
|
| H A D | mds_client.c | 2625 u8 *cryptbuf = NULL; in get_fscrypt_altname() local 2659 cryptbuf = kmalloc(len, GFP_KERNEL); in get_fscrypt_altname() 2660 if (!cryptbuf) in get_fscrypt_altname() 2663 ret = fscrypt_fname_encrypt(dir, name, cryptbuf, len); in get_fscrypt_altname() 2665 kfree(cryptbuf); in get_fscrypt_altname() 2670 return cryptbuf; in get_fscrypt_altname()
|