Home
last modified time | relevance | path

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

/system/extras/libfec/
Dfec_verity.cpp480 check(f->data_size > VERITY_METADATA_SIZE); in rewrite_metadata()
481 check(offset <= f->data_size - VERITY_METADATA_SIZE); in rewrite_metadata()
484 new (std::nothrow) uint8_t[VERITY_METADATA_SIZE]); in rewrite_metadata()
491 memset(metadata.get(), 0, VERITY_METADATA_SIZE); in rewrite_metadata()
499 check(sizeof(v->header) + len <= VERITY_METADATA_SIZE); in rewrite_metadata()
502 return raw_pwrite(f, metadata.get(), VERITY_METADATA_SIZE, offset); in rewrite_metadata()
549 check(f->data_size > VERITY_METADATA_SIZE); in verity_parse_header()
551 if (offset > f->data_size - VERITY_METADATA_SIZE) { in verity_parse_header()
Dfec_private.h47 #define VERITY_METADATA_SIZE (8 * FEC_BLOCKSIZE) macro
50 #define VERITY_MAX_TABLE_SIZE (VERITY_METADATA_SIZE - sizeof(verity_header))
Dfec_open.cpp86 return VERITY_METADATA_SIZE + verity_get_size(size, NULL, NULL); in get_verity_size()
310 uint64_t offset = f->data_size - VERITY_METADATA_SIZE; in load_verity()