1*63d2a5c7SDorjoy Chowdhury /* 2*63d2a5c7SDorjoy Chowdhury * EIF (Enclave Image Format) related helpers 3*63d2a5c7SDorjoy Chowdhury * 4*63d2a5c7SDorjoy Chowdhury * Copyright (c) 2024 Dorjoy Chowdhury <dorjoychy111@gmail.com> 5*63d2a5c7SDorjoy Chowdhury * 6*63d2a5c7SDorjoy Chowdhury * This work is licensed under the terms of the GNU GPL, version 2 or 7*63d2a5c7SDorjoy Chowdhury * (at your option) any later version. See the COPYING file in the 8*63d2a5c7SDorjoy Chowdhury * top-level directory. 9*63d2a5c7SDorjoy Chowdhury */ 10*63d2a5c7SDorjoy Chowdhury 11*63d2a5c7SDorjoy Chowdhury #ifndef HW_CORE_EIF_H 12*63d2a5c7SDorjoy Chowdhury #define HW_CORE_EIF_H 13*63d2a5c7SDorjoy Chowdhury 14*63d2a5c7SDorjoy Chowdhury bool read_eif_file(const char *eif_path, const char *machine_initrd, 15*63d2a5c7SDorjoy Chowdhury char **kernel_path, char **initrd_path, 16*63d2a5c7SDorjoy Chowdhury char **kernel_cmdline, uint8_t *image_sha384, 17*63d2a5c7SDorjoy Chowdhury uint8_t *bootstrap_sha384, uint8_t *app_sha384, 18*63d2a5c7SDorjoy Chowdhury uint8_t *fingerprint_sha384, bool *signature_found, 19*63d2a5c7SDorjoy Chowdhury Error **errp); 20*63d2a5c7SDorjoy Chowdhury 21*63d2a5c7SDorjoy Chowdhury #endif 22*63d2a5c7SDorjoy Chowdhury 23