Home
last modified time | relevance | path

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

/system/extras/libfec/
Dfec_verity.cpp471 check(f->data_size > VERITY_METADATA_SIZE); in rewrite_metadata()
472 check(offset <= f->data_size - VERITY_METADATA_SIZE); in rewrite_metadata()
475 new (std::nothrow) uint8_t[VERITY_METADATA_SIZE]); in rewrite_metadata()
482 memset(metadata.get(), 0, VERITY_METADATA_SIZE); in rewrite_metadata()
490 check(sizeof(v->header) + len <= VERITY_METADATA_SIZE); in rewrite_metadata()
493 return raw_pwrite(f->fd, metadata.get(), VERITY_METADATA_SIZE, offset); in rewrite_metadata()
540 check(f->data_size > VERITY_METADATA_SIZE); in verity_parse_header()
542 if (offset > f->data_size - VERITY_METADATA_SIZE) { in verity_parse_header()
Dfec_private.h48 #define VERITY_METADATA_SIZE (8 * FEC_BLOCKSIZE) macro
51 #define VERITY_MAX_TABLE_SIZE (VERITY_METADATA_SIZE - sizeof(verity_header))
Dfec_open.cpp84 return VERITY_METADATA_SIZE + in get_verity_size()
309 uint64_t offset = f->data_size - VERITY_METADATA_SIZE; in load_verity()