#include <fcntl.h>
#include <inttypes.h>
#include <limits.h>
#include <stdbool.h>
#include <stdio.h>
#include <sys/types.h>
#include <unistd.h>
#include <crypto_utils/android_pubkey.h>
Go to the source code of this file.
|
struct fec_header | __attribute__ ((packed)) |
|
int | fec_open (struct fec_handle **f, const char *path, int mode, int flags, int roots) |
|
int | fec_close (struct fec_handle *f) |
|
int | fec_verity_set_status (struct fec_handle *f, bool enabled) |
|
int | fec_verity_get_metadata (struct fec_handle *f, struct fec_verity_metadata *data) |
|
int | fec_ecc_get_metadata (struct fec_handle *f, struct fec_ecc_metadata *data) |
|
int | fec_get_status (struct fec_handle *f, struct fec_status *s) |
|
int | fec_seek (struct fec_handle *f, int64_t offset, int whence) |
|
ssize_t | fec_read (struct fec_handle *f, void *buf, size_t count) |
|
ssize_t | fec_pread (struct fec_handle *f, void *buf, size_t count, uint64_t offset) |
|
◆ FEC_BLOCKSIZE
#define FEC_BLOCKSIZE 4096 |
◆ FEC_DEFAULT_ROOTS
#define FEC_DEFAULT_ROOTS 2 |
◆ FEC_MAGIC
#define FEC_MAGIC 0xFECFECFE |
◆ FEC_VERSION
◆ SHA256_DIGEST_LENGTH
#define SHA256_DIGEST_LENGTH 32 |
◆ anonymous enum
Enumerator |
---|
FEC_FS_EXT4 | |
FEC_FS_SQUASH | |
FEC_VERITY_DISABLE | |
◆ __attribute__()
◆ fec_close()
◆ fec_ecc_get_metadata()
◆ fec_get_status()
◆ fec_open()
int fec_open |
( |
struct fec_handle ** |
f, |
|
|
const char * |
path, |
|
|
int |
mode, |
|
|
int |
flags, |
|
|
int |
roots |
|
) |
| |
◆ fec_pread()
ssize_t fec_pread |
( |
struct fec_handle * |
f, |
|
|
void * |
buf, |
|
|
size_t |
count, |
|
|
uint64_t |
offset |
|
) |
| |
◆ fec_read()
ssize_t fec_read |
( |
struct fec_handle * |
f, |
|
|
void * |
buf, |
|
|
size_t |
count |
|
) |
| |
◆ fec_seek()
int fec_seek |
( |
struct fec_handle * |
f, |
|
|
int64_t |
offset, |
|
|
int |
whence |
|
) |
| |
◆ fec_verity_get_metadata()
◆ fec_verity_set_status()
int fec_verity_set_status |
( |
struct fec_handle * |
f, |
|
|
bool |
enabled |
|
) |
| |
◆ __attribute__
◆ fec_size
◆ hash
◆ inp_size
◆ magic
◆ roots
◆ size
◆ version