mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-11-27 03:33:50 +00:00
Revert "VBoot Reference: Refactor Part 2 - Crypto Libraries"
This reverts commit e018a80a37aaa45681f45f5852f04d20aedd8b2d. Review URL: http://codereview.chromium.org/1593002
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
#ifndef VBOOT_REFERENCE_FILE_KEYS_H_
|
||||
#define VBOOT_REFERENCE_FILE_KEYS_H_
|
||||
|
||||
#include "cryptolib.h"
|
||||
#include "rsa.h"
|
||||
|
||||
/* Read file named [input_file] into a buffer and stores the length into
|
||||
* [len].
|
||||
@@ -25,12 +25,6 @@ uint8_t* BufferFromFile(const char* input_file, uint64_t* len);
|
||||
*/
|
||||
RSAPublicKey* RSAPublicKeyFromFile(const char* input_file);
|
||||
|
||||
/* Returns the appropriate digest for the data in [input_file]
|
||||
* based on the signature [algorithm].
|
||||
* Caller owns the returned digest and must free it.
|
||||
*/
|
||||
uint8_t* DigestFile(char* input_file, int sig_algorithm);
|
||||
|
||||
/* Helper function to invoke external program to calculate signature on
|
||||
* [input_file] using private key [key_file] and signature algorithm
|
||||
* [algorithm].
|
||||
|
||||
Reference in New Issue
Block a user