OLD | NEW |
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 | 5 |
6 #ifndef VBOOT_REFERENCE_VERIFY_DATA_H_ | 6 #ifndef VBOOT_REFERENCE_VERIFY_DATA_H_ |
7 #define VBOOT_REFERENCE_VERIFY_DATA_H_ | 7 #define VBOOT_REFERENCE_VERIFY_DATA_H_ |
8 | 8 |
9 /* Reads a pre-processed key from [input_file] and | 9 /* Reads a pre-processed key from [input_file] and |
10 * returns it in a RSAPublicKey structure. | 10 * returns it in a RSAPublicKey structure. |
11 * Caller owns the returned key and must free it. | 11 * Caller owns the returned key and must free it. |
12 */ | 12 */ |
13 RSAPublicKey* read_RSAkey(char *input_file); | 13 RSAPublicKey* read_RSAkey(char *input_file); |
14 | 14 |
15 /* Return a signature of [len] bytes read from [input_file]. | 15 /* Return a signature of [len] bytes read from [input_file]. |
16 * Caller owns the returned signature and must free it. | 16 * Caller owns the returned signature and must free it. |
17 */ | 17 */ |
18 uint8_t* read_signature(char *input_file, int len); | 18 uint8_t* read_signature(char *input_file, int len); |
19 | 19 |
20 #endif /* VBOOT_REFERENCE_VERIFY_DATA_H_ */ | 20 #endif /* VBOOT_REFERENCE_VERIFY_DATA_H_ */ |
OLD | NEW |