Searched refs:sec_sz (Results 1 – 4 of 4) sorted by relevance
/dragonfly/lib/libtcplay/ |
H A D | hdr.c | 110 BE_TO_HOST(32, dhdr->sec_sz); in decrypt_hdr() 145 hdr->sec_sz = 512; in verify_hdr() 154 struct tc_cipher_chain *cipher_chain, size_t sec_sz, in create_hdr() argument 241 dhdr->sz_vol = blocks * sec_sz; in create_hdr() 244 dhdr->off_mk_scope = offset * sec_sz; in create_hdr() 245 dhdr->sz_mk_scope = blocks * sec_sz; in create_hdr() 246 dhdr->sec_sz = sec_sz; in create_hdr() 256 HOST_TO_BE(32, dhdr->sec_sz); in create_hdr() 389 HOST_TO_BE(32, info->hdr->sec_sz); in copy_reencrypt_hdr()
|
H A D | tcplay.h | 143 uint32_t sec_sz; /* Sector size (in bytes) */ member 283 size_t sec_sz, disksz_t total_blocks,
|
H A D | tcplay.c | 337 printf("Sector size:\t\t%d\n", info->hdr->sec_sz); in print_info() 382 info->blk_sz = hdr->sec_sz; in new_info() 383 info->size = hdr->sz_mk_scope / hdr->sec_sz; /* volume size */ in new_info() 384 info->skip = hdr->off_mk_scope / hdr->sec_sz; /* iv skip */ in new_info() 392 info->offset = hdr->off_mk_scope / hdr->sec_sz; /* block offset */ in new_info() 431 info->size -= hinfo->hdr->sz_hidvol / hinfo->hdr->sec_sz; in adjust_info() 499 dhdr->sz_mk_scope, dhdr->flags, dhdr->sec_sz, in process_hdr()
|
H A D | tcplay_api.c | 773 *i64p = (int64_t)info->size * (int64_t)info->hdr->sec_sz; in tc_api_task_info_get() 784 *i64p = (int64_t)info->skip * (int64_t)info->hdr->sec_sz; in tc_api_task_info_get() 795 *i64p = (int64_t)info->offset * (int64_t)info->hdr->sec_sz; in tc_api_task_info_get()
|