mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-11-24 02:05:01 +00:00
This change replaces all calls to the old vboot1 SHA library with their vboot2 equivalents. This is the first in a long series of changes to move the core vboot kernel verification into vb2, and the control/display loop out to depthcharge. BUG=chromium:611535 BRANCH=none TEST=make runtests; build samus firmware and boot it Change-Id: I31986eb766176c0e39a192c5ce15730471c3cf94 Signed-off-by: Randall Spangler <rspangler@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/344342 Tested-by: Daisuke Nojiri <dnojiri@chromium.org> Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
38 lines
1.2 KiB
C
38 lines
1.2 KiB
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.
|
|
*/
|
|
|
|
#ifndef VBOOT_REFERENCE_PADDING_H_
|
|
#define VBOOT_REFERENCE_PADDING_H_
|
|
|
|
#ifndef VBOOT_REFERENCE_CRYPTOLIB_H_
|
|
#error "Do not include this file directly. Use cryptolib.h instead."
|
|
#endif
|
|
|
|
#include "sysincludes.h"
|
|
|
|
extern const uint8_t paddingRSA1024_SHA1[];
|
|
extern const uint8_t paddingRSA1024_SHA256[];
|
|
extern const uint8_t paddingRSA1024_SHA512[];
|
|
extern const uint8_t paddingRSA2048_SHA1[];
|
|
extern const uint8_t paddingRSA2048_SHA256[];
|
|
extern const uint8_t paddingRSA2048_SHA512[];
|
|
extern const uint8_t paddingRSA4096_SHA1[];
|
|
extern const uint8_t paddingRSA4096_SHA256[];
|
|
extern const uint8_t paddingRSA4096_SHA512[];
|
|
extern const uint8_t paddingRSA8192_SHA1[];
|
|
extern const uint8_t paddingRSA8192_SHA256[];
|
|
extern const uint8_t paddingRSA8192_SHA512[];
|
|
|
|
extern const int kNumAlgorithms;
|
|
|
|
extern const int digestinfo_size_map[];
|
|
extern const int siglen_map[];
|
|
extern const uint8_t* const padding_map[];
|
|
extern const int padding_size_map[];
|
|
extern const uint8_t* const hash_digestinfo_map[];
|
|
extern const char* const algo_strings[];
|
|
|
|
#endif /* VBOOT_REFERENCE_PADDING_H_ */
|