Searched refs:fec_handle (Results 1 – 7 of 7) sorted by relevance
/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 | fec_private.h | 99 struct fec_handle { struct 113 extern bool raw_pread(fec_handle *f, void *buf, size_t count, argument 115 extern bool raw_pwrite(fec_handle *f, const void *buf, size_t count, 119 typedef ssize_t (*read_func)(fec_handle *f, uint8_t *dest, size_t count, 122 extern ssize_t process(fec_handle *f, uint8_t *buf, size_t count, 129 extern int verity_parse_header(fec_handle *f, uint64_t offset); 131 extern bool verity_check_block(fec_handle *f, const uint8_t *expected,
|
D | fec_open.cpp | 90 static int find_verity_offset(fec_handle *f, uint64_t *offset) in find_verity_offset() 100 static int parse_ecc_header(fec_handle *f, uint64_t offset) in parse_ecc_header() 199 static int parse_ecc(fec_handle *f, uint64_t offset) in parse_ecc() 221 static int get_squashfs_size(fec_handle *f, uint64_t *offset) in get_squashfs_size() 249 static int get_ext4_size(fec_handle *f, uint64_t *offset) in get_ext4_size() 276 static int get_fs_size(fec_handle *f, uint64_t *offset) in get_fs_size() 305 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 | fec_read.cpp | 69 static inline bool is_erasure(fec_handle *f, uint64_t offset, in is_erasure() 87 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() 404 int fec_seek(struct fec_handle *f, int64_t offset, int whence) in fec_seek() 445 ssize_t fec_read(struct fec_handle *f, void *buf, size_t count) in fec_read() 472 bool raw_pread(fec_handle *f, void *buf, size_t count, uint64_t offset) in raw_pread() 496 bool raw_pwrite(fec_handle *f, const void *buf, size_t count, uint64_t offset) in raw_pwrite() [all …]
|
D | fec_verity.cpp | 120 static inline int verity_hash(fec_handle *f, const uint8_t *block, in verity_hash() 140 bool verity_check_block(fec_handle *f, const uint8_t *expected, in verity_check_block() 159 static bool ecc_read_hashes(fec_handle *f, uint64_t hash_offset, in ecc_read_hashes() 185 static int verify_tree(fec_handle *f, const uint8_t *root) in verify_tree() 327 static int parse_table(fec_handle *f, uint64_t offset, uint32_t size, bool useecc) in parse_table() 477 static int rewrite_metadata(fec_handle *f, uint64_t offset) in rewrite_metadata() 505 static int validate_header(const fec_handle *f, const verity_header *header, in validate_header() 546 int verity_parse_header(fec_handle *f, uint64_t offset) in verity_parse_header() 636 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()
|
/system/core/fs_mgr/ |
D | fs_mgr_verity.cpp | 580 struct fec_handle *f = NULL; in compare_last_signature() 759 struct fec_handle *f = NULL; in fs_mgr_setup_verity()
|