mirror of
				https://github.com/smaeul/u-boot.git
				synced 2025-10-30 19:48:19 +00:00 
			
		
		
		
	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
 |