mirror of
				https://github.com/smaeul/u-boot.git
				synced 2025-10-30 11:38:15 +00:00 
			
		
		
		
	As part of bringing the master branch back in to next, we need to allow for all of these changes to exist here. Reported-by: Jonas Karlman <jonas@kwiboo.se> Signed-off-by: Tom Rini <trini@konsulko.com>
		
			
				
	
	
		
			21 lines
		
	
	
		
			489 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			489 B
		
	
	
	
		
			C
		
	
	
	
	
	
| // SPDX-License-Identifier: GPL-2.0-only
 | |
| /*
 | |
|  * sha256_ce_glue.c - SHA-256 secure hash using ARMv8 Crypto Extensions
 | |
|  *
 | |
|  * Copyright (C) 2022 Linaro Ltd <loic.poulain@linaro.org>
 | |
|  */
 | |
| 
 | |
| #include <u-boot/sha256.h>
 | |
| 
 | |
| extern void sha256_armv8_ce_process(uint32_t state[8], uint8_t const *src,
 | |
| 				    uint32_t blocks);
 | |
| 
 | |
| void sha256_process(sha256_context *ctx, const unsigned char *data,
 | |
| 		    unsigned int blocks)
 | |
| {
 | |
| 	if (!blocks)
 | |
| 		return;
 | |
| 
 | |
| 	sha256_armv8_ce_process(ctx->state, data, blocks);
 | |
| }
 |