Lines Matching defs:filename

609  * write_tag_70_packet - Write encrypted filename (EFN) packet against FNEK
610 * @filename: NULL-terminated filename string
612 * This is the simplest mechanism for achieving filename encryption in
613 * eCryptfs. It encrypts the given filename with the mount-wide
614 * filename encryption key (FNEK) and stores it in a packet to @dest,
622 char *filename, size_t filename_size)
655 * and the plaintext filename */
667 * and block-aligned encrypted filename size)
670 * Octets N3-N4: Block-aligned encrypted filename
672 * separator, and then the filename */
735 * filename encryption */
790 memcpy(&s->block_aligned_filename[s->num_rand_bytes], filename,
796 "convert filename memory to scatterlist; rc = [%d]. "
805 "convert encrypted filename memory to scatterlist; "
832 printk(KERN_ERR "%s: Error attempting to encrypt filename; "
878 * @filename: This function kmalloc's the memory for the filename
880 * kmalloc'd for the filename
892 ecryptfs_parse_tag_70_packet(char **filename, size_t *filename_size,
903 (*filename) = NULL;
917 * and block-aligned encrypted filename size)
920 * Octets N3-N4: Block-aligned encrypted filename
922 * separator, and then the filename */
984 "convert encrypted filename memory to scatterlist; "
1000 "convert decrypted filename memory to scatterlist; "
1023 * filename encryption */
1048 printk(KERN_ERR "%s: Error attempting to decrypt filename; "
1059 "the filename\n", __func__);
1071 (*filename) = kmalloc(((*filename_size) + 1), GFP_KERNEL);
1072 if (!(*filename)) {
1076 memcpy((*filename), &s->decrypted_filename[s->i], (*filename_size));
1077 (*filename)[(*filename_size)] = '\0';
1086 (*filename) = NULL;
1598 (*packet_size) += 12; /* Ignore filename and modification date */