Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(343)

Side by Side Diff: host/include/host_common.h

Issue 2745007: Major refactoring of structures, with unit tests. (Closed) Base URL: ssh://gitrw.chromium.org/vboot_reference.git
Patch Set: Implemented LoadFirmware2() Created 10 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 /* Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
2 * Use of this source code is governed by a BSD-style license that can be
3 * found in the LICENSE file.
4 *
5 * Host-side functions for verified boot.
6 */
7
8 #ifndef VBOOT_REFERENCE_HOST_COMMON_H_
9 #define VBOOT_REFERENCE_HOST_COMMON_H_
10
11 #include <stdint.h>
12
13 #include "cryptolib.h"
14 #include "host_key.h"
15 #include "host_signature.h"
16 #include "utility.h"
17 #include "vboot_struct.h"
18
19
20 /* Create a key block header containing [data_key] and [flags], signed
21 * by [signing_key]. Caller owns the returned pointer, and must free
22 * it with Free(). */
23 VbKeyBlockHeader* CreateKeyBlock(const VbPublicKey* data_key,
24 const VbPrivateKey* signing_key,
25 uint64_t flags);
26
27
28 /* Creates a firmware preamble, signed with [signing_key].
29 * Caller owns the returned pointer, and must free it with Free().
30 *
31 * Returns NULL if error. */
32 VbFirmwarePreambleHeader* CreateFirmwarePreamble(
33 uint64_t firmware_version,
34 const VbPublicKey* kernel_subkey,
35 const VbSignature* body_signature,
36 const VbPrivateKey* signing_key);
37
38
39 /* Creates a kernel preamble, signed with [signing_key].
40 * Caller owns the returned pointer, and must free it with Free().
41 *
42 * Returns NULL if error. */
43 VbKernelPreambleHeader* CreateKernelPreamble(
44 uint64_t kernel_version,
45 uint64_t body_load_address,
46 uint64_t bootloader_address,
47 uint64_t bootloader_size,
48 const VbSignature* body_signature,
49 const VbPrivateKey* signing_key);
50
51 #endif /* VBOOT_REFERENCE_HOST_COMMON_H_ */
OLDNEW
« no previous file with comments | « host/Makefile ('k') | host/include/host_key.h » ('j') | host/lib/host_key.c » ('J')

Powered by Google App Engine
This is Rietveld 408576698