]> git.ipfire.org Git - people/ms/u-boot.git/blame - include/rsa-checksum.h
mmc: remove the unnecessary define and fix the wrong bit control
[people/ms/u-boot.git] / include / rsa-checksum.h
CommitLineData
646257d1
HS
1/*
2 * Copyright (c) 2013, Andreas Oetken.
3 *
4 * SPDX-License-Identifier: GPL-2.0+
5*/
6
7#ifndef _RSA_CHECKSUM_H
8#define _RSA_CHECKSUM_H
9
10#include <errno.h>
11#include <image.h>
12#include <sha1.h>
13#include <sha256.h>
14
db1b5f3d 15extern const uint8_t padding_sha256_rsa4096[];
646257d1
HS
16extern const uint8_t padding_sha256_rsa2048[];
17extern const uint8_t padding_sha1_rsa2048[];
18
19void sha256_calculate(const struct image_region region[], int region_count,
20 uint8_t *checksum);
21void sha1_calculate(const struct image_region region[], int region_count,
22 uint8_t *checksum);
23
24#endif