summaryrefslogtreecommitdiff
path: root/host/lib/include/host_common.h
diff options
context:
space:
mode:
Diffstat (limited to 'host/lib/include/host_common.h')
-rw-r--r--host/lib/include/host_common.h20
1 files changed, 12 insertions, 8 deletions
diff --git a/host/lib/include/host_common.h b/host/lib/include/host_common.h
index 895a675f..c9f9713f 100644
--- a/host/lib/include/host_common.h
+++ b/host/lib/include/host_common.h
@@ -24,17 +24,21 @@
#include "vboot_struct.h"
/**
- * Create a firmware preamble, signed with [signing_key].
+ * Create a firmware preamble.
*
- * Caller owns the returned pointer, and must free it with Free().
+ * @param firmware_version Firmware version
+ * @param kernel_subkey Kernel subkey to store in preamble
+ * @param body_signature Signature of firmware body
+ * @param signing_key Private key to sign header with
+ * @param flags Firmware preamble flags
*
- * Returns NULL if error.
+ * @return The preamble, or NULL if error. Caller must free() it.
*/
-VbFirmwarePreambleHeader *CreateFirmwarePreamble(
- uint64_t firmware_version,
- const VbPublicKey *kernel_subkey,
- const VbSignature *body_signature,
- const VbPrivateKey *signing_key,
+struct vb2_fw_preamble *vb2_create_fw_preamble(
+ uint32_t firmware_version,
+ const struct vb2_packed_key *kernel_subkey,
+ const struct vb2_signature *body_signature,
+ const struct vb2_private_key *signing_key,
uint32_t flags);
/**