~pmdj/ubuntu/trusty/qemu/2.9+applesmc+fadtv3

« back to all changes in this revision

Viewing changes to roms/u-boot/include/rsa-checksum.h

  • Committer: Phil Dennis-Jordan
  • Date: 2017-07-21 08:03:43 UTC
  • mfrom: (1.1.1)
  • Revision ID: phil@philjordan.eu-20170721080343-2yr2vdj7713czahv
New upstream release 2.9.0.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
 
 
15
extern const uint8_t padding_sha256_rsa4096[];
 
16
extern const uint8_t padding_sha256_rsa2048[];
 
17
extern const uint8_t padding_sha1_rsa2048[];
 
18
 
 
19
void sha256_calculate(const struct image_region region[], int region_count,
 
20
                      uint8_t *checksum);
 
21
void sha1_calculate(const struct image_region region[], int region_count,
 
22
                    uint8_t *checksum);
 
23
 
 
24
#endif