| Index: src/platform/vboot_reference/include/file_keys.h
|
| diff --git a/src/platform/vboot_reference/include/file_keys.h b/src/platform/vboot_reference/include/file_keys.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..9236172bbbeae95b5bd0b9c5b174abfe6486afca
|
| --- /dev/null
|
| +++ b/src/platform/vboot_reference/include/file_keys.h
|
| @@ -0,0 +1,28 @@
|
| +/* Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
|
| + * Use of this source code is governed by a BSD-style license that can be
|
| + * found in the LICENSE file.
|
| + *
|
| + * Utility functions for file and key handling.
|
| + */
|
| +
|
| +#ifndef VBOOT_REFERENCE_FILE_KEYS_H_
|
| +#define VBOOT_REFERENCE_FILE_KEYS_H_
|
| +
|
| +#include "rsa.h"
|
| +
|
| +/* Read file named [input_file] into a buffer and stores the length into
|
| + * [len].
|
| + *
|
| + * Returns a pointer to the buffer. Caller owns the returned pointer and
|
| + * must free it.
|
| + */
|
| +uint8_t* BufferFromFile(char* input_file, int* len);
|
| +
|
| +/* Read a pre-processed RSA Public Key from file [input_file].
|
| + *
|
| + * Returns a pointer to the read key. Caller owns the returned pointer and
|
| + * must free it.
|
| + */
|
| +RSAPublicKey* RSAPublicKeyFromFile(char* input_file);
|
| +
|
| +#endif /* VBOOT_REFERENCE_FILE_KEYS_H_ */
|
|
|