Searched refs:crypt_stat (Results 1 – 8 of 8) sorted by relevance
/linux-2.6.39/fs/ecryptfs/ |
D | crypto.c | 41 ecryptfs_decrypt_page_offset(struct ecryptfs_crypt_stat *crypt_stat, 46 ecryptfs_encrypt_page_offset(struct ecryptfs_crypt_stat *crypt_stat, 96 struct ecryptfs_crypt_stat *crypt_stat, in ecryptfs_calculate_md5() argument 101 .tfm = crypt_stat->hash_tfm, in ecryptfs_calculate_md5() 106 mutex_lock(&crypt_stat->cs_hash_tfm_mutex); in ecryptfs_calculate_md5() 118 crypt_stat->hash_tfm = desc.tfm; in ecryptfs_calculate_md5() 142 mutex_unlock(&crypt_stat->cs_hash_tfm_mutex); in ecryptfs_calculate_md5() 179 int ecryptfs_derive_iv(char *iv, struct ecryptfs_crypt_stat *crypt_stat, in ecryptfs_derive_iv() argument 188 ecryptfs_dump_hex(crypt_stat->root_iv, crypt_stat->iv_bytes); in ecryptfs_derive_iv() 194 memcpy(src, crypt_stat->root_iv, crypt_stat->iv_bytes); in ecryptfs_derive_iv() [all …]
|
D | mmap.c | 91 struct ecryptfs_crypt_stat *crypt_stat) in strip_xattr_flag() argument 93 if (crypt_stat->flags & ECRYPTFS_METADATA_IN_XATTR) { in strip_xattr_flag() 96 crypt_stat->flags &= ~ECRYPTFS_METADATA_IN_XATTR; in strip_xattr_flag() 97 ecryptfs_write_crypt_stat_flags(page_virt, crypt_stat, in strip_xattr_flag() 99 crypt_stat->flags |= ECRYPTFS_METADATA_IN_XATTR; in strip_xattr_flag() 131 struct ecryptfs_crypt_stat *crypt_stat) in ecryptfs_copy_up_encrypted_with_header() argument 135 / crypt_stat->extent_size); in ecryptfs_copy_up_encrypted_with_header() 143 (crypt_stat->metadata_size / crypt_stat->extent_size); in ecryptfs_copy_up_encrypted_with_header() 157 strip_xattr_flag(page_virt + 16, crypt_stat); in ecryptfs_copy_up_encrypted_with_header() 159 crypt_stat, in ecryptfs_copy_up_encrypted_with_header() [all …]
|
D | file.c | 156 struct ecryptfs_crypt_stat *crypt_stat = NULL; in ecryptfs_open() local 185 crypt_stat = &ecryptfs_inode_to_private(inode)->crypt_stat; in ecryptfs_open() 186 mutex_lock(&crypt_stat->cs_mutex); in ecryptfs_open() 187 if (!(crypt_stat->flags & ECRYPTFS_POLICY_APPLIED)) { in ecryptfs_open() 190 crypt_stat->flags |= (ECRYPTFS_POLICY_APPLIED in ecryptfs_open() 193 mutex_unlock(&crypt_stat->cs_mutex); in ecryptfs_open() 213 mutex_lock(&crypt_stat->cs_mutex); in ecryptfs_open() 214 crypt_stat->flags &= ~(ECRYPTFS_ENCRYPTED); in ecryptfs_open() 215 mutex_unlock(&crypt_stat->cs_mutex); in ecryptfs_open() 219 mutex_lock(&crypt_stat->cs_mutex); in ecryptfs_open() [all …]
|
D | keystore.c | 299 struct ecryptfs_crypt_stat *crypt_stat, char **packet, in write_tag_66_packet() argument 318 data_len = (5 + ECRYPTFS_SIG_SIZE_HEX + crypt_stat->key_size); in write_tag_66_packet() 338 rc = ecryptfs_write_packet_length(&message[i], crypt_stat->key_size + 3, in write_tag_66_packet() 347 memcpy(&message[i], crypt_stat->key, crypt_stat->key_size); in write_tag_66_packet() 348 i += crypt_stat->key_size; in write_tag_66_packet() 349 for (j = 0; j < crypt_stat->key_size; j++) in write_tag_66_packet() 350 checksum += crypt_stat->key[j]; in write_tag_66_packet() 1152 struct ecryptfs_crypt_stat *crypt_stat) in decrypt_pki_encrypted_session_key() argument 1195 memcpy(crypt_stat->key, auth_tok->session_key.decrypted_key, in decrypt_pki_encrypted_session_key() 1197 crypt_stat->key_size = auth_tok->session_key.decrypted_key_size; in decrypt_pki_encrypted_session_key() [all …]
|
D | inode.c | 155 struct ecryptfs_crypt_stat *crypt_stat = in ecryptfs_initialize_file() local 156 &ecryptfs_inode_to_private(ecryptfs_dentry->d_inode)->crypt_stat; in ecryptfs_initialize_file() 161 crypt_stat->flags &= ~(ECRYPTFS_ENCRYPTED); in ecryptfs_initialize_file() 228 struct ecryptfs_crypt_stat *crypt_stat; in ecryptfs_lookup_and_interpose_lower() local 286 crypt_stat = &ecryptfs_inode_to_private( in ecryptfs_lookup_and_interpose_lower() 287 ecryptfs_dentry->d_inode)->crypt_stat; in ecryptfs_lookup_and_interpose_lower() 289 if (!(crypt_stat->flags & ECRYPTFS_POLICY_APPLIED)) in ecryptfs_lookup_and_interpose_lower() 290 ecryptfs_set_default_sizes(crypt_stat); in ecryptfs_lookup_and_interpose_lower() 301 crypt_stat->flags |= ECRYPTFS_METADATA_IN_XATTR; in ecryptfs_lookup_and_interpose_lower() 704 upper_size_to_lower_size(struct ecryptfs_crypt_stat *crypt_stat, in upper_size_to_lower_size() argument [all …]
|
D | ecryptfs_kernel.h | 302 struct ecryptfs_crypt_stat crypt_stat; member 309 struct ecryptfs_crypt_stat *crypt_stat; member 402 struct ecryptfs_crypt_stat *crypt_stat; member 469 ecryptfs_lower_header_size(struct ecryptfs_crypt_stat *crypt_stat) in ecryptfs_lower_header_size() argument 471 if (crypt_stat->flags & ECRYPTFS_METADATA_IN_XATTR) in ecryptfs_lower_header_size() 473 return crypt_stat->metadata_size; in ecryptfs_lower_header_size() 644 struct ecryptfs_crypt_stat *crypt_stat, 651 int ecryptfs_compute_root_iv(struct ecryptfs_crypt_stat *crypt_stat); 653 void ecryptfs_init_crypt_stat(struct ecryptfs_crypt_stat *crypt_stat); 654 void ecryptfs_destroy_crypt_stat(struct ecryptfs_crypt_stat *crypt_stat); [all …]
|
D | read_write.c | 112 struct ecryptfs_crypt_stat *crypt_stat; in ecryptfs_write() local 119 crypt_stat = &ecryptfs_inode_to_private(ecryptfs_inode)->crypt_stat; in ecryptfs_write() 180 if (crypt_stat->flags & ECRYPTFS_ENCRYPTED) in ecryptfs_write() 197 if (crypt_stat->flags & ECRYPTFS_ENCRYPTED) { in ecryptfs_write()
|
D | super.c | 57 ecryptfs_init_crypt_stat(&inode_info->crypt_stat); in ecryptfs_alloc_inode() 91 ecryptfs_destroy_crypt_stat(&inode_info->crypt_stat); in ecryptfs_destroy_inode()
|