Lines Matching refs:filename

611  * write_tag_70_packet - Write encrypted filename (EFN) packet against FNEK
612 * @filename: NULL-terminated filename string
614 * This is the simplest mechanism for achieving filename encryption in
615 * eCryptfs. It encrypts the given filename with the mount-wide
616 * filename encryption key (FNEK) and stores it in a packet to @dest,
624 char *filename, size_t filename_size)
657 * and the plaintext filename */
669 * and block-aligned encrypted filename size)
672 * Octets N3-N4: Block-aligned encrypted filename
674 * separator, and then the filename */
737 * filename encryption */
792 memcpy(&s->block_aligned_filename[s->num_rand_bytes], filename,
798 "convert filename memory to scatterlist; rc = [%d]. "
807 "convert encrypted filename memory to scatterlist; "
834 printk(KERN_ERR "%s: Error attempting to encrypt filename; "
880 * @filename: This function kmalloc's the memory for the filename
882 * kmalloc'd for the filename
894 ecryptfs_parse_tag_70_packet(char **filename, size_t *filename_size,
905 (*filename) = NULL;
919 * and block-aligned encrypted filename size)
922 * Octets N3-N4: Block-aligned encrypted filename
924 * separator, and then the filename */
986 "convert encrypted filename memory to scatterlist; "
1002 "convert decrypted filename memory to scatterlist; "
1025 * filename encryption */
1050 printk(KERN_ERR "%s: Error attempting to decrypt filename; "
1061 "the filename\n", __func__);
1073 (*filename) = kmalloc(((*filename_size) + 1), GFP_KERNEL);
1074 if (!(*filename)) {
1078 memcpy((*filename), &s->decrypted_filename[s->i], (*filename_size));
1079 (*filename)[(*filename_size)] = '\0';
1088 (*filename) = NULL;
1600 (*packet_size) += 12; /* Ignore filename and modification date */