| 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_SIGNATURE_DIGEST_H_ | 6 #ifndef VBOOT_REFERENCE_SIGNATURE_DIGEST_H_ |
| 7 #define VBOOT_REFERENCE_SIGNATURE_DIGEST_H_ | 7 #define VBOOT_REFERENCE_SIGNATURE_DIGEST_H_ |
| 8 | 8 |
| 9 #include <inttypes.h> | 9 #include <inttypes.h> |
| 10 | 10 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 | 26 |
| 27 /* Calculates the signature on a buffer [buf] of length [len] using | 27 /* Calculates the signature on a buffer [buf] of length [len] using |
| 28 * the private RSA key file from [key_file] and signature algorithm | 28 * the private RSA key file from [key_file] and signature algorithm |
| 29 * [algorithm]. | 29 * [algorithm]. |
| 30 * | 30 * |
| 31 * Returns the signature. Caller owns the buffer and must Free() it. | 31 * Returns the signature. Caller owns the buffer and must Free() it. |
| 32 */ | 32 */ |
| 33 uint8_t* SignatureBuf(const uint8_t* buf, uint64_t len, const char* key_file, | 33 uint8_t* SignatureBuf(const uint8_t* buf, uint64_t len, const char* key_file, |
| 34 int algorithm); | 34 int algorithm); |
| 35 #endif /* VBOOT_REFERENCE_SIGNATURE_DIGEST_H_ */ | 35 #endif /* VBOOT_REFERENCE_SIGNATURE_DIGEST_H_ */ |
| OLD | NEW |