Lines Matching refs:ht
2814 def _get_cmdline_descriptors_for_hashtree_descriptor(self, ht): argument
2828 c += ' {}'.format((ht.image_size // 512)) # size (# sectors)
2829 c += ' verity {}'.format(ht.dm_verity_version) # type and version
2832 c += ' {}'.format(ht.data_block_size) # data_block
2833 c += ' {}'.format(ht.hash_block_size) # hash_block
2834 c += ' {}'.format(ht.image_size // ht.data_block_size) # #blocks
2835 c += ' {}'.format(ht.image_size // ht.data_block_size) # hash_offset
2836 c += ' {}'.format(ht.hash_algorithm) # hash_alg
2837 c += ' {}'.format(ht.root_digest.hex()) # root_digest
2838 c += ' {}'.format(ht.salt.hex()) # salt
2839 if ht.fec_num_roots > 0:
2840 if ht.flags & AvbHashtreeDescriptor.FLAGS_CHECK_AT_MOST_ONCE:
2848 c += ' fec_roots {}'.format(ht.fec_num_roots)
2852 c += ' fec_blocks {}'.format(ht.fec_offset // ht.data_block_size)
2853 c += ' fec_start {}'.format(ht.fec_offset // ht.data_block_size)
2855 if ht.flags & AvbHashtreeDescriptor.FLAGS_CHECK_AT_MOST_ONCE:
2896 ht = None
2899 ht = desc
2902 if not ht:
2905 return self._get_cmdline_descriptors_for_hashtree_descriptor(ht)