Home
last modified time | relevance | path

Searched refs:CRYPT_SECTOR_SIZE (Results 1 – 3 of 3) sorted by relevance

/system/vold/
DEncryptInplace.cpp47 #define CRYPT_SECTORS_PER_BUFSIZE (CRYPT_INPLACE_BUFSIZE / CRYPT_SECTOR_SIZE)
129 LOG(INFO) << "Encrypted to sector " << offset / info.block_size * CRYPT_SECTOR_SIZE; in log_progress()
135 … LOG(INFO) << "Encrypting from sector " << data->offset / info.block_size * CRYPT_SECTOR_SIZE; in log_progress()
166 (data->offset + data->count) / info.block_size * CRYPT_SECTOR_SIZE - 1; in flush_outstanding_data()
504 if (lseek64(realfd, i * CRYPT_SECTOR_SIZE, SEEK_SET) < 0) { in cryptfs_enable_inplace_full()
509 if (lseek64(cryptofd, i * CRYPT_SECTOR_SIZE, SEEK_SET) < 0) { in cryptfs_enable_inplace_full()
515 if (unix_read(realfd, buf, CRYPT_SECTOR_SIZE) <= 0) { in cryptfs_enable_inplace_full()
520 if (unix_write(cryptofd, buf, CRYPT_SECTOR_SIZE) <= 0) { in cryptfs_enable_inplace_full()
556 if (unix_read(realfd, buf, CRYPT_SECTOR_SIZE) <= 0) { in cryptfs_enable_inplace_full()
561 if (unix_write(cryptofd, buf, CRYPT_SECTOR_SIZE) <= 0) { in cryptfs_enable_inplace_full()
DEncryptInplace.h23 #define CRYPT_SECTOR_SIZE 512 macro
Dcryptfs.cpp2184 max_fs_size_sec = nr_sec - (CRYPT_FOOTER_OFFSET / CRYPT_SECTOR_SIZE); in cryptfs_enable_internal()
2257 crypt_ftr.fs_size = nr_sec - (CRYPT_FOOTER_OFFSET / CRYPT_SECTOR_SIZE); in cryptfs_enable_internal()