Searched refs:crypt_stat (Results 1 – 4 of 4) sorted by relevance
/linux/fs/ecryptfs/ |
H A D | mmap.c | 52 struct ecryptfs_crypt_stat *crypt_stat) in strip_xattr_flag() argument 54 if (crypt_stat->flags & ECRYPTFS_METADATA_IN_XATTR) { in strip_xattr_flag() 57 crypt_stat->flags &= ~ECRYPTFS_METADATA_IN_XATTR; in strip_xattr_flag() 58 ecryptfs_write_crypt_stat_flags(page_virt, crypt_stat, in strip_xattr_flag() 60 crypt_stat->flags |= ECRYPTFS_METADATA_IN_XATTR; in strip_xattr_flag() 92 struct ecryptfs_crypt_stat *crypt_stat) in ecryptfs_copy_up_encrypted_with_header() argument 96 / crypt_stat->extent_size); in ecryptfs_copy_up_encrypted_with_header() 104 (crypt_stat->metadata_size / crypt_stat->extent_size); in ecryptfs_copy_up_encrypted_with_header() 118 strip_xattr_flag(page_virt + 16, crypt_stat); in ecryptfs_copy_up_encrypted_with_header() 120 crypt_stat, in ecryptfs_copy_up_encrypted_with_header() [all …]
|
H A D | keystore.c | 286 struct ecryptfs_crypt_stat *crypt_stat, char **packet, in write_tag_66_packet() argument 307 data_len = (8 + ECRYPTFS_SIG_SIZE_HEX + crypt_stat->key_size); in write_tag_66_packet() 327 rc = ecryptfs_write_packet_length(&message[i], crypt_stat->key_size + 3, in write_tag_66_packet() 336 memcpy(&message[i], crypt_stat->key, crypt_stat->key_size); in write_tag_66_packet() 337 i += crypt_stat->key_size; in write_tag_66_packet() 338 for (j = 0; j < crypt_stat->key_size; j++) in write_tag_66_packet() 339 checksum += crypt_stat->key[j]; in write_tag_66_packet() 1129 struct ecryptfs_crypt_stat *crypt_stat) in decrypt_pki_encrypted_session_key() argument 1172 memcpy(crypt_stat->key, auth_tok->session_key.decrypted_key, in decrypt_pki_encrypted_session_key() 1174 crypt_stat->key_size = auth_tok->session_key.decrypted_key_size; in decrypt_pki_encrypted_session_key() [all …]
|
H A D | file.c | 150 struct ecryptfs_crypt_stat *crypt_stat; in read_or_initialize_metadata() local 153 crypt_stat = &ecryptfs_inode_to_private(inode)->crypt_stat; in read_or_initialize_metadata() 156 mutex_lock(&crypt_stat->cs_mutex); in read_or_initialize_metadata() 158 if (crypt_stat->flags & ECRYPTFS_POLICY_APPLIED && in read_or_initialize_metadata() 159 crypt_stat->flags & ECRYPTFS_KEY_VALID) { in read_or_initialize_metadata() 169 crypt_stat->flags &= ~(ECRYPTFS_I_SIZE_INITIALIZED in read_or_initialize_metadata() 184 mutex_unlock(&crypt_stat->cs_mutex); in read_or_initialize_metadata() 213 struct ecryptfs_crypt_stat *crypt_stat = NULL; in ecryptfs_open() local 228 crypt_stat = &ecryptfs_inode_to_private(inode)->crypt_stat; in ecryptfs_open() 229 mutex_lock(&crypt_stat->cs_mutex); in ecryptfs_open() [all …]
|
H A D | super.c | 44 if (ecryptfs_init_crypt_stat(&inode_info->crypt_stat)) { in ecryptfs_alloc_inode() 79 ecryptfs_destroy_crypt_stat(&inode_info->crypt_stat); in ecryptfs_destroy_inode()
|