/system/extras/libfec/include/fec/ |
D | io.h | 87 struct fec_handle; 90 extern int fec_open(struct fec_handle **f, const char *path, int mode, 93 extern int fec_close(struct fec_handle *f); 95 extern int fec_verity_set_status(struct fec_handle *f, bool enabled); 97 extern int fec_verity_get_metadata(struct fec_handle *f, 100 extern int fec_ecc_get_metadata(struct fec_handle *f, 103 extern int fec_get_status(struct fec_handle *f, struct fec_status *s); 105 extern int fec_seek(struct fec_handle *f, int64_t offset, int whence); 107 extern ssize_t fec_read(struct fec_handle *f, void *buf, size_t count); 109 extern ssize_t fec_pread(struct fec_handle *f, void *buf, size_t count, [all …]
|
/system/extras/libfec/ |
D | avb_utils.h | 22 struct fec_handle; 27 int parse_vbmeta_from_footer(fec_handle *f, std::vector<uint8_t> *vbmeta); 30 int parse_avb_image(fec_handle *f, const std::vector<uint8_t> &vbmeta);
|
D | fec_open.cpp | 89 static int find_verity_offset(fec_handle *f, uint64_t *offset) in find_verity_offset() 99 static int parse_ecc_header(fec_handle *f, uint64_t offset) in parse_ecc_header() 198 static int parse_ecc(fec_handle *f, uint64_t offset) in parse_ecc() 220 static int get_squashfs_size(fec_handle *f, uint64_t *offset) in get_squashfs_size() 248 static int get_ext4_size(fec_handle *f, uint64_t *offset) in get_ext4_size() 275 static int get_fs_size(fec_handle *f, uint64_t *offset) in get_fs_size() 304 static int load_verity(fec_handle *f) in load_verity() 346 static int load_ecc(fec_handle *f) in load_ecc() 363 static int get_size(fec_handle *f) in get_size() 394 static void reset_handle(fec_handle *f) in reset_handle() [all …]
|
D | avb_utils_stub.cpp | 19 int parse_vbmeta_from_footer(fec_handle* /* f */, in parse_vbmeta_from_footer() argument 24 int parse_avb_image(fec_handle* /* f */, in parse_avb_image() argument
|
D | fec_private.h | 100 int verify_tree(const fec_handle *f, const uint8_t *root); 103 bool ecc_read_hashes(fec_handle *f, uint64_t hash_offset, uint8_t *hash, 133 struct fec_handle { struct 157 typedef ssize_t (*read_func)(fec_handle *f, uint8_t *dest, size_t count, argument 160 extern ssize_t process(fec_handle *f, uint8_t *buf, size_t count, 168 extern int verity_parse_header(fec_handle *f, uint64_t offset);
|
D | fec_read.cpp | 69 static inline bool is_erasure(fec_handle *f, uint64_t offset, in is_erasure() 86 static inline bool is_zero(fec_handle *f, uint64_t offset) in is_zero() 107 static int __ecc_read(fec_handle *f, void *rs, uint8_t *dest, uint64_t offset, in __ecc_read() 208 static int ecc_init(fec_handle *f, rs_unique_ptr& rs, in ecc_init() 234 static ssize_t ecc_read(fec_handle *f, uint8_t *dest, size_t count, in ecc_read() 285 static ssize_t verity_read(fec_handle *f, uint8_t *dest, size_t count, in verity_read() 403 int fec_seek(struct fec_handle *f, int64_t offset, int whence) in fec_seek() 444 ssize_t fec_read(struct fec_handle *f, void *buf, size_t count) in fec_read() 516 ssize_t fec_pread(struct fec_handle *f, void *buf, size_t count, in fec_pread()
|
D | fec_verity.cpp | 181 bool hashtree_info::ecc_read_hashes(fec_handle *f, uint64_t hash_offset, in ecc_read_hashes() 204 int hashtree_info::verify_tree(const fec_handle *f, const uint8_t *root) { in verify_tree() 226 if (!ecc_read_hashes(const_cast<fec_handle *>(f), 0, nullptr, in verify_tree() 291 if (!ecc_read_hashes(const_cast<fec_handle *>(f), in verify_tree() 342 static int parse_table(fec_handle *f, uint64_t offset, uint32_t size, bool useecc) in parse_table() 468 static int rewrite_metadata(fec_handle *f, uint64_t offset) in rewrite_metadata() 496 static int validate_header(const fec_handle *f, const verity_header *header, in validate_header() 537 int verity_parse_header(fec_handle *f, uint64_t offset) in verity_parse_header() 627 int fec_verity_set_status(struct fec_handle *f, bool enabled) in fec_verity_set_status()
|
D | fec_process.cpp | 21 fec_handle *f; 43 ssize_t process(fec_handle *f, uint8_t *buf, size_t count, uint64_t offset, in process()
|
D | avb_utils.cpp | 24 int parse_vbmeta_from_footer(fec_handle *f, std::vector<uint8_t> *vbmeta) { in parse_vbmeta_from_footer() 65 int parse_avb_image(fec_handle *f, const std::vector<uint8_t> &vbmeta) { in parse_avb_image()
|
/system/extras/libfec/test/ |
D | fec_unittest.cpp | 133 struct fec_handle *handle = nullptr; in TEST_F() 135 std::unique_ptr<fec_handle> guard(handle); in TEST_F() 169 struct fec_handle *handle = nullptr; in TEST_F() 171 std::unique_ptr<fec_handle> guard(handle); in TEST_F() 211 struct fec_handle *handle = nullptr; in TEST_F() 214 std::unique_ptr<fec_handle> guard(handle); in TEST_F() 226 struct fec_handle *handle = nullptr; in TEST_F() 228 std::unique_ptr<fec_handle> guard(handle); in TEST_F() 265 struct fec_handle *handle = nullptr; in TEST_F() 267 std::unique_ptr<fec_handle> guard(handle); in TEST_F() [all …]
|
/system/core/fs_mgr/ |
D | fs_mgr_verity.cpp | 384 struct fec_handle *f = NULL; in fs_mgr_setup_verity()
|