blob: 850b2537537219630b6c0d87d2f5ed7c057797c3 [file] [log] [blame]
Heiko Schocher646257d2014-03-03 12:19:26 +01001/*
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
15extern const uint8_t padding_sha256_rsa2048[];
16extern const uint8_t padding_sha1_rsa2048[];
17
18void sha256_calculate(const struct image_region region[], int region_count,
19 uint8_t *checksum);
20void sha1_calculate(const struct image_region region[], int region_count,
21 uint8_t *checksum);
22
23#endif