Lines Matching refs:fs
24 static size_t block_mac_block_size(const struct fs* fs) { in block_mac_block_size() argument
25 size_t size = fs->block_num_size; in block_mac_block_size()
31 static size_t block_mac_mac_size(const struct fs* fs) { in block_mac_mac_size() argument
32 size_t size = fs->mac_size; in block_mac_mac_size()
39 memset(dest, 0, block_mac_block_size(tr->fs) + block_mac_mac_size(tr->fs)); in block_mac_clear()
42 data_block_t block_mac_to_block_fs(const struct fs* fs, in block_mac_to_block_fs() argument
46 memcpy(&block, block_mac->data, block_mac_block_size(fs)); in block_mac_to_block_fs()
54 return block_mac_to_block_fs(tr->fs, block_mac); in block_mac_to_block()
59 return block_mac->data + block_mac_block_size(tr->fs); in block_mac_to_mac()
65 memcpy(block_mac->data, &block, block_mac_block_size(tr->fs)); in block_mac_set_block()
71 memcpy(block_mac->data + block_mac_block_size(tr->fs), mac, in block_mac_set_mac()
72 block_mac_mac_size(tr->fs)); in block_mac_set_mac()
79 a, b, block_mac_block_size(tr->fs) + block_mac_mac_size(tr->fs)); in block_mac_eq()
86 block_mac_block_size(tr->fs) + block_mac_mac_size(tr->fs)); in block_mac_copy()