mirror of
				https://xff.cz/git/u-boot/
				synced 2025-10-31 10:26:10 +01:00 
			
		
		
		
	Driver added for RSA Modular Exponentiation using Freescale Hardware Accelerator CAAM. The driver uses UCLASS_MOD_EXP Signed-off-by: Ruchika Gupta <ruchika.gupta@freescale.com> CC: Simon Glass <sjg@chromium.org> Acked-by: Simon Glass <sjg@chromium.org>
		
			
				
	
	
		
			29 lines
		
	
	
		
			791 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			29 lines
		
	
	
		
			791 B
		
	
	
	
		
			C
		
	
	
	
	
	
| /*
 | |
|  * Copyright 2014 Freescale Semiconductor, Inc.
 | |
|  *
 | |
|  * SPDX-License-Identifier:	GPL-2.0+
 | |
|  */
 | |
| 
 | |
| #ifndef __RSA_CAAM_H
 | |
| #define __RSA_CAAM_H
 | |
| 
 | |
| #include <common.h>
 | |
| 
 | |
| /**
 | |
|  * struct pk_in_params - holder for input to PKHA block in CAAM
 | |
|  * These parameters are required to perform Modular Exponentiation
 | |
|  * using PKHA Block in CAAM
 | |
|  */
 | |
| struct pk_in_params {
 | |
| 	const uint8_t *e;	/* public exponent as byte array */
 | |
| 	uint32_t e_siz;		/* size of e[] in number of bytes */
 | |
| 	const uint8_t *n;	/* modulus as byte array */
 | |
| 	uint32_t n_siz;		/* size of n[] in number of bytes */
 | |
| 	const uint8_t *a;		/* Signature as byte array */
 | |
| 	uint32_t a_siz;		/* size of a[] in number of bytes */
 | |
| 	uint8_t *b;		/* Result exp. modulus in number of bytes */
 | |
| 	uint32_t b_siz;		/* size of b[] in number of bytes */
 | |
| };
 | |
| 
 | |
| #endif
 |