mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-11-23 17:55:01 +00:00
Another in a continued stream of refactoring. This change removes more of the vb1 rsa library code and associated tests, in favor of their vb2 equivalents. This change touches only host-side code and its tests, not firmware. BUG=chromium:611535 BRANCH=none TEST=make runtests; emerge-kevin coreboot depthcharge Change-Id: I1973bc2f03c60da62232e30bab0fa5fe791b6b34 Signed-off-by: Randall Spangler <rspangler@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/400901
22 lines
714 B
C
22 lines
714 B
C
/* 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 "cryptolib.h"
|
|
#include "2sha.h"
|
|
|
|
/* Calculates the appropriate digest for the data in [input_file] based on the
|
|
* hash algorithm [alg] and stores it into [digest], which is of size
|
|
* [digest_size]. Returns VB2_SUCCESS, or non-zero on error.
|
|
*/
|
|
int DigestFile(char *input_file, enum vb2_hash_algorithm alg,
|
|
uint8_t *digest, uint32_t digest_size);
|
|
|
|
#endif /* VBOOT_REFERENCE_FILE_KEYS_H_ */
|