src/boot/boot-secret.h
raw| 1 | /* SPDX-License-Identifier: LGPL-2.1-or-later */ |
| 2 | #pragma once |
| 3 | |
| 4 | #include "efi.h" |
| 5 | #include "pe.h" |
| 6 | #include "proto/loaded-image.h" |
| 7 | |
| 8 | #define BOOT_SECRET_SIZE 32U |
| 9 | |
| 10 | EFI_STATUS prepare_boot_secret( |
| 11 | EFI_LOADED_IMAGE_PROTOCOL *loaded_image, |
| 12 | const PeSectionVector *osrel_section, |
| 13 | uint8_t ret[static BOOT_SECRET_SIZE]); |