Home
last modified time | relevance | path

Searched refs:ecc (Results 1 – 12 of 12) sorted by relevance

/system/extras/libfec/
Dfec_open.cpp102 check(f->ecc.rsn > 0 && f->ecc.rsn < FEC_RSM); in parse_ecc_header()
138 if (f->ecc.roots != (int)header.roots) { in parse_ecc_header()
139 error("unexpected number of roots: %d vs %u", f->ecc.roots, in parse_ecc_header()
150 f->ecc.blocks = fec_div_round_up(f->data_size, FEC_BLOCKSIZE); in parse_ecc_header()
151 f->ecc.rounds = fec_div_round_up(f->ecc.blocks, f->ecc.rsn); in parse_ecc_header()
154 (uint32_t)f->ecc.rounds * f->ecc.roots * FEC_BLOCKSIZE) { in parse_ecc_header()
159 f->ecc.size = header.fec_size; in parse_ecc_header()
160 f->ecc.start = header.inp_size; in parse_ecc_header()
170 while (n < f->ecc.size) { in parse_ecc_header()
171 if (len > f->ecc.size - n) { in parse_ecc_header()
[all …]
Davb_utils.cpp128 f->ecc.blocks = fec_div_round_up(f->data_size, FEC_BLOCKSIZE); in parse_avb_image()
129 f->ecc.rounds = fec_div_round_up(f->ecc.blocks, f->ecc.rsn); in parse_avb_image()
130 f->ecc.size = hashtree_descriptor.fec_size; in parse_avb_image()
131 f->ecc.start = hashtree_descriptor.fec_offset; in parse_avb_image()
133 f->ecc.valid = true; in parse_avb_image()
Dfec_read.cpp111 ecc_info *e = &f->ecc; in __ecc_read()
213 rs.reset(init_rs_char(FEC_PARAMS(f->ecc.roots))); in ecc_init()
300 if (f->ecc.start && ecc_init(f, rs, ecc_data) == -1) { in verity_read()
343 if (!f->ecc.start) { in verity_read()
531 } else if (f->ecc.start) { in fec_pread()
532 check(f->ecc.start < f->size); in fec_pread()
Dfec_private.h134 ecc_info ecc; member
/system/bt/gd/security/
DAndroid.bp4 "ecc/multprecision.cc",
5 "ecc/p_256_ecc_pp.cc",
23 "ecc/multipoint_test.cc",
Decdh_keys.cc56 ecc::Point public_key; in GenerateECDHKeyPair()
58 ECC_PointMult(&public_key, &(ecc::curve_p256.G), (uint32_t*)private_key_copy.data()); in GenerateECDHKeyPair()
69 ecc::Point public_key; in ValidateECDHPoint()
77 ecc::Point peer_publ_key, new_publ_key; in ComputeDHKey()
/system/core/fs_mgr/
Dfs_mgr_verity.cpp190 struct fec_ecc_metadata ecc; member
209 if (params->ecc.valid) { in format_verity_table()
214 params->ecc.start / FEC_BLOCKSIZE, params->ecc.blocks, params->ecc.roots); in format_verity_table()
219 params->ecc.start / FEC_BLOCKSIZE, params->ecc.blocks, params->ecc.roots); in format_verity_table()
419 if (fec_ecc_get_metadata(f, &params.ecc) < 0) { in fs_mgr_setup_verity()
420 params.ecc.valid = false; in fs_mgr_setup_verity()
474 if (params.ecc.valid) { in fs_mgr_setup_verity()
477 params.ecc.valid = false; in fs_mgr_setup_verity()
/system/bt/gd/security/ecc/
Dp_256_ecc_pp.h32 namespace ecc {
Dmultprecision.h30 namespace ecc {
Dmultipoint_test.cc25 namespace ecc { namespace
Dp_256_ecc_pp.cc33 namespace ecc { namespace
Dmultprecision.cc30 namespace ecc { namespace