mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-08-17 15:38:51 +09:00
![Jeroen Hofstee](/assets/img/avatar_default.png)
commit 18b06652cd
"tools: include u-boot version of sha256.h"
unconditionally forced the sha256.h from u-boot to be used
for tools instead of the host version. This is fragile though
as it will also include the host version. Therefore move it
to include/u-boot to join u-boot/md5.h etc which were renamed
for the same reason.
cc: Simon Glass <sjg@chromium.org>
Signed-off-by: Jeroen Hofstee <jeroen@myspectrum.nl>
25 lines
581 B
C
25 lines
581 B
C
/*
|
|
* Copyright (c) 2013, Andreas Oetken.
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0+
|
|
*/
|
|
|
|
#ifndef _RSA_CHECKSUM_H
|
|
#define _RSA_CHECKSUM_H
|
|
|
|
#include <errno.h>
|
|
#include <image.h>
|
|
#include <u-boot/sha1.h>
|
|
#include <u-boot/sha256.h>
|
|
|
|
extern const uint8_t padding_sha256_rsa4096[];
|
|
extern const uint8_t padding_sha256_rsa2048[];
|
|
extern const uint8_t padding_sha1_rsa2048[];
|
|
|
|
void sha256_calculate(const struct image_region region[], int region_count,
|
|
uint8_t *checksum);
|
|
void sha1_calculate(const struct image_region region[], int region_count,
|
|
uint8_t *checksum);
|
|
|
|
#endif
|