Lines Matching defs:filename

608  * write_tag_70_packet - Write encrypted filename (EFN) packet against FNEK
609 * @filename: NULL-terminated filename string
611 * This is the simplest mechanism for achieving filename encryption in
612 * eCryptfs. It encrypts the given filename with the mount-wide
613 * filename encryption key (FNEK) and stores it in a packet to @dest,
621 char *filename, size_t filename_size)
654 * and the plaintext filename */
666 * and block-aligned encrypted filename size)
669 * Octets N3-N4: Block-aligned encrypted filename
671 * separator, and then the filename */
734 * filename encryption */
789 memcpy(&s->block_aligned_filename[s->num_rand_bytes], filename,
795 "convert filename memory to scatterlist; rc = [%d]. "
804 "convert encrypted filename memory to scatterlist; "
831 printk(KERN_ERR "%s: Error attempting to encrypt filename; "
877 * @filename: This function kmalloc's the memory for the filename
879 * kmalloc'd for the filename
891 ecryptfs_parse_tag_70_packet(char **filename, size_t *filename_size,
902 (*filename) = NULL;
916 * and block-aligned encrypted filename size)
919 * Octets N3-N4: Block-aligned encrypted filename
921 * separator, and then the filename */
983 "convert encrypted filename memory to scatterlist; "
999 "convert decrypted filename memory to scatterlist; "
1022 * filename encryption */
1047 printk(KERN_ERR "%s: Error attempting to decrypt filename; "
1058 "the filename\n", __func__);
1070 (*filename) = kmalloc(((*filename_size) + 1), GFP_KERNEL);
1071 if (!(*filename)) {
1075 memcpy((*filename), &s->decrypted_filename[s->i], (*filename_size));
1076 (*filename)[(*filename_size)] = '\0';
1085 (*filename) = NULL;
1597 (*packet_size) += 12; /* Ignore filename and modification date */