Home
last modified time | relevance | path

Searched refs:src_sg (Results 1 – 4 of 4) sorted by relevance

/fs/ext4/
Dcrypto_fname.c75 struct scatterlist src_sg, dst_sg; in ext4_fname_encrypt() local
119 sg_init_one(&src_sg, workbuf, ciphertext_len); in ext4_fname_encrypt()
121 ablkcipher_request_set_crypt(req, &src_sg, &dst_sg, ciphertext_len, iv); in ext4_fname_encrypt()
152 struct scatterlist src_sg, dst_sg; in ext4_fname_decrypt() local
181 sg_init_one(&src_sg, iname->name, iname->len); in ext4_fname_decrypt()
183 ablkcipher_request_set_crypt(req, &src_sg, &dst_sg, iname->len, iv); in ext4_fname_decrypt()
Dcrypto_key.c46 struct scatterlist src_sg, dst_sg; in ext4_derive_key_aes() local
68 sg_init_one(&src_sg, source_key, EXT4_AES_256_XTS_KEY_SIZE); in ext4_derive_key_aes()
70 ablkcipher_request_set_crypt(req, &src_sg, &dst_sg, in ext4_derive_key_aes()
/fs/ecryptfs/
Dcrypto.c350 struct scatterlist *src_sg, int size, in encrypt_scatterlist() argument
395 ablkcipher_request_set_crypt(req, src_sg, dest_sg, size, iv); in encrypt_scatterlist()
660 struct scatterlist *src_sg, int size, in decrypt_scatterlist() argument
705 ablkcipher_request_set_crypt(req, src_sg, dest_sg, size, iv); in decrypt_scatterlist()
738 struct scatterlist src_sg, dst_sg; in ecryptfs_encrypt_page_offset() local
740 sg_init_table(&src_sg, 1); in ecryptfs_encrypt_page_offset()
743 sg_set_page(&src_sg, src_page, size, src_offset); in ecryptfs_encrypt_page_offset()
745 return encrypt_scatterlist(crypt_stat, &dst_sg, &src_sg, size, iv); in ecryptfs_encrypt_page_offset()
766 struct scatterlist src_sg, dst_sg; in ecryptfs_decrypt_page_offset() local
768 sg_init_table(&src_sg, 1); in ecryptfs_decrypt_page_offset()
[all …]
Dkeystore.c603 struct scatterlist src_sg[2]; member
817 s->block_aligned_filename_size, s->src_sg, 2); in ecryptfs_write_tag_70_packet()
854 rc = crypto_blkcipher_encrypt_iv(&s->desc, s->dst_sg, s->src_sg, in ecryptfs_write_tag_70_packet()
890 struct scatterlist src_sg[2]; member
1007 s->block_aligned_filename_size, s->src_sg, 2); in ecryptfs_parse_tag_70_packet()
1062 rc = crypto_blkcipher_decrypt_iv(&s->desc, s->dst_sg, s->src_sg, in ecryptfs_parse_tag_70_packet()
1668 struct scatterlist src_sg[2]; in decrypt_passphrase_encrypted_session_key() local
1693 src_sg, 2); in decrypt_passphrase_encrypted_session_key()
1723 rc = crypto_blkcipher_decrypt(&desc, dst_sg, src_sg, in decrypt_passphrase_encrypted_session_key()
2188 struct scatterlist src_sg[2]; in write_tag_3_packet() local
[all …]