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

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

Issue 2809037: Make vboot_reference build in MSVC command line environment. (Closed) Base URL: ssh://git@chromiumos-git/vboot_reference.git
Patch Set: Integrated trunk changes. Created 10 years, 5 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
« no previous file with comments | « host/include/host_misc.h ('k') | msc/README.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* Copyright (c) 2010 The Chromium OS Authors. All rights reserved. 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 2 * Use of this source code is governed by a BSD-style license that can be
3 * found in the LICENSE file. 3 * found in the LICENSE file.
4 * 4 *
5 * Host-side functions for verified boot. 5 * Host-side functions for verified boot.
6 */ 6 */
7 7
8 #ifndef VBOOT_REFERENCE_HOST_SIGNATURE_H_ 8 #ifndef VBOOT_REFERENCE_HOST_SIGNATURE_H_
9 #define VBOOT_REFERENCE_HOST_SIGNATURE_H_ 9 #define VBOOT_REFERENCE_HOST_SIGNATURE_H_
10 10
11 #include <stdint.h>
12
13 #include "cryptolib.h" 11 #include "cryptolib.h"
14 #include "host_key.h" 12 #include "host_key.h"
15 #include "utility.h" 13 #include "utility.h"
16 #include "vboot_struct.h" 14 #include "vboot_struct.h"
17 15
18 16
19 /* Initialize a signature struct. */ 17 /* Initialize a signature struct. */
20 void SignatureInit(VbSignature* sig, uint8_t* sig_data, 18 void SignatureInit(VbSignature* sig, uint8_t* sig_data,
21 uint64_t sig_size, uint64_t data_size); 19 uint64_t sig_size, uint64_t data_size);
22 20
(...skipping 16 matching lines...) Expand all
39 37
40 38
41 /* Calculates a signature for the data using the specified key. 39 /* Calculates a signature for the data using the specified key.
42 * Caller owns the returned pointer, and must free it with Free(). 40 * Caller owns the returned pointer, and must free it with Free().
43 * 41 *
44 * Returns NULL if error. */ 42 * Returns NULL if error. */
45 VbSignature* CalculateSignature(const uint8_t* data, uint64_t size, 43 VbSignature* CalculateSignature(const uint8_t* data, uint64_t size,
46 const VbPrivateKey* key); 44 const VbPrivateKey* key);
47 45
48 #endif /* VBOOT_REFERENCE_HOST_SIGNATURE_H_ */ 46 #endif /* VBOOT_REFERENCE_HOST_SIGNATURE_H_ */
OLDNEW
« no previous file with comments | « host/include/host_misc.h ('k') | msc/README.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698