Searched refs:cryptbuf (Results 1 – 2 of 2) sorted by relevance
264 u8 *cryptbuf = NULL; in ceph_encode_encrypted_dname() local289 cryptbuf = kmalloc(len > CEPH_NOHASH_NAME_MAX ? NAME_MAX : len, in ceph_encode_encrypted_dname()291 if (!cryptbuf) { in ceph_encode_encrypted_dname()298 cryptbuf, len); in ceph_encode_encrypted_dname()307 u8 *extra = cryptbuf + CEPH_NOHASH_NAME_MAX; in ceph_encode_encrypted_dname()319 elen = ceph_base64_encode(cryptbuf, len, p); in ceph_encode_encrypted_dname()328 kfree(cryptbuf); in ceph_encode_encrypted_dname()
2625 u8 *cryptbuf = NULL; in get_fscrypt_altname() local2659 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()