• Home
  • Raw
  • Download

Lines Matching refs:name

20 	if (str->len == 1 && str->name[0] == '.')  in fscrypt_is_dot_dotdot()
23 if (str->len == 2 && str->name[0] == '.' && str->name[1] == '.') in fscrypt_is_dot_dotdot()
54 memcpy(out, iname->name, iname->len); in fname_encrypt()
112 sg_init_one(&src_sg, iname->name, iname->len); in fname_decrypt()
113 sg_init_one(&dst_sg, oname->name, oname->len); in fname_decrypt()
122 oname->len = strnlen(oname->name, iname->len); in fname_decrypt()
216 crypto_str->name = kmalloc(max_presented_len + 1, GFP_NOFS); in fscrypt_fname_alloc_buffer()
217 if (!crypto_str->name) in fscrypt_fname_alloc_buffer()
233 kfree(crypto_str->name); in fscrypt_fname_free_buffer()
234 crypto_str->name = NULL; in fscrypt_fname_free_buffer()
259 oname->name[0] = '.'; in fscrypt_fname_disk_to_usr()
260 oname->name[iname->len - 1] = '.'; in fscrypt_fname_disk_to_usr()
272 oname->len = base64_encode(iname->name, iname->len, in fscrypt_fname_disk_to_usr()
273 oname->name); in fscrypt_fname_disk_to_usr()
284 FSCRYPT_FNAME_DIGEST(iname->name, iname->len), in fscrypt_fname_disk_to_usr()
286 oname->name[0] = '_'; in fscrypt_fname_disk_to_usr()
288 sizeof(digested_name), oname->name + 1); in fscrypt_fname_disk_to_usr()
327 fname->disk_name.name = (unsigned char *)iname->name; in fscrypt_setup_filename()
340 fname->crypto_buf.name = kmalloc(fname->crypto_buf.len, in fscrypt_setup_filename()
342 if (!fname->crypto_buf.name) in fscrypt_setup_filename()
345 ret = fname_encrypt(dir, iname, fname->crypto_buf.name, in fscrypt_setup_filename()
349 fname->disk_name.name = fname->crypto_buf.name; in fscrypt_setup_filename()
361 if (iname->name[0] == '_') { in fscrypt_setup_filename()
373 fname->crypto_buf.name = in fscrypt_setup_filename()
377 if (fname->crypto_buf.name == NULL) in fscrypt_setup_filename()
380 ret = base64_decode(iname->name + digested, iname->len - digested, in fscrypt_setup_filename()
381 fname->crypto_buf.name); in fscrypt_setup_filename()
389 (const void *)fname->crypto_buf.name; in fscrypt_setup_filename()
393 fname->disk_name.name = fname->crypto_buf.name; in fscrypt_setup_filename()
399 kfree(fname->crypto_buf.name); in fscrypt_setup_filename()