eif.h 705 B

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