| 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 /* SHA-1, 256 and 512 functions. */ | 6 /* SHA-1, 256 and 512 functions. */ |
| 7 | 7 |
| 8 #ifndef VBOOT_REFERENCE_SHA_H_ | 8 #ifndef VBOOT_REFERENCE_SHA_H_ |
| 9 #define VBOOT_REFERENCE_SHA_H_ | 9 #define VBOOT_REFERENCE_SHA_H_ |
| 10 | 10 |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 uint8_t* DigestFile(char* input_file, int sig_algorithm); | 119 uint8_t* DigestFile(char* input_file, int sig_algorithm); |
| 120 | 120 |
| 121 /* Returns the appropriate digest of [buf] of length | 121 /* Returns the appropriate digest of [buf] of length |
| 122 * [len] based on the signature [algorithm]. | 122 * [len] based on the signature [algorithm]. |
| 123 * Caller owns the returned digest and must free it. | 123 * Caller owns the returned digest and must free it. |
| 124 */ | 124 */ |
| 125 uint8_t* DigestBuf(const uint8_t* buf, uint64_t len, int sig_algorithm); | 125 uint8_t* DigestBuf(const uint8_t* buf, uint64_t len, int sig_algorithm); |
| 126 | 126 |
| 127 | 127 |
| 128 #endif /* VBOOT_REFERENCE_SHA_H_ */ | 128 #endif /* VBOOT_REFERENCE_SHA_H_ */ |
| OLD | NEW |