| 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 * Utility functions for file and key handling. | 5 * Utility functions for file and key handling. |
| 6 */ | 6 */ |
| 7 | 7 |
| 8 #ifndef VBOOT_REFERENCE_FILE_KEYS_H_ | 8 #ifndef VBOOT_REFERENCE_FILE_KEYS_H_ |
| 9 #define VBOOT_REFERENCE_FILE_KEYS_H_ | 9 #define VBOOT_REFERENCE_FILE_KEYS_H_ |
| 10 | 10 |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 * Caller owns the returned digest and must free it. | 30 * Caller owns the returned digest and must free it. |
| 31 */ | 31 */ |
| 32 uint8_t* DigestFile(char* input_file, int sig_algorithm); | 32 uint8_t* DigestFile(char* input_file, int sig_algorithm); |
| 33 | 33 |
| 34 /* Helper function to invoke external program to calculate signature on | 34 /* Helper function to invoke external program to calculate signature on |
| 35 * [input_file] using private key [key_file] and signature algorithm | 35 * [input_file] using private key [key_file] and signature algorithm |
| 36 * [algorithm]. | 36 * [algorithm]. |
| 37 * | 37 * |
| 38 * Returns the signature. Caller owns the buffer and must Free() it. | 38 * Returns the signature. Caller owns the buffer and must Free() it. |
| 39 */ | 39 */ |
| 40 uint8_t* SignatureFile(const char* input_fie, const char* key_file, | 40 uint8_t* SignatureFile(const char* input_file, const char* key_file, |
| 41 int algorithm); | 41 int algorithm); |
| 42 | 42 |
| 43 #endif /* VBOOT_REFERENCE_FILE_KEYS_H_ */ | 43 #endif /* VBOOT_REFERENCE_FILE_KEYS_H_ */ |
| OLD | NEW |