Lines Matching refs:filename_size
626 char *filename, size_t filename_size) in ecryptfs_write_tag_70_packet() argument
665 s->block_aligned_filename_size = (s->num_rand_bytes + filename_size); in ecryptfs_write_tag_70_packet()
671 + filename_size); in ecryptfs_write_tag_70_packet()
817 filename_size); in ecryptfs_write_tag_70_packet()
918 ecryptfs_parse_tag_70_packet(char **filename, size_t *filename_size, in ecryptfs_parse_tag_70_packet() argument
928 (*filename_size) = 0; in ecryptfs_parse_tag_70_packet()
1087 (*filename_size) = (s->block_aligned_filename_size - s->i); in ecryptfs_parse_tag_70_packet()
1088 if (!((*filename_size) > 0 && (*filename_size < PATH_MAX))) { in ecryptfs_parse_tag_70_packet()
1090 "invalid\n", __func__, (*filename_size)); in ecryptfs_parse_tag_70_packet()
1094 (*filename) = kmalloc(((*filename_size) + 1), GFP_KERNEL); in ecryptfs_parse_tag_70_packet()
1098 ((*filename_size) + 1)); in ecryptfs_parse_tag_70_packet()
1102 memcpy((*filename), &s->decrypted_filename[s->i], (*filename_size)); in ecryptfs_parse_tag_70_packet()
1103 (*filename)[(*filename_size)] = '\0'; in ecryptfs_parse_tag_70_packet()
1111 (*filename_size) = 0; in ecryptfs_parse_tag_70_packet()