mirror of
				https://github.com/torvalds/linux.git
				synced 2025-11-04 10:40:15 +02:00 
			
		
		
		
	crypto: caam/qi2 - add support for ahash algorithms
Add support for unkeyed and keyed (hmac) md5, sha algorithms. Signed-off-by: Horia Geantă <horia.geanta@nxp.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
		
							parent
							
								
									0efa7579f3
								
							
						
					
					
						commit
						3f16f6c9d6
					
				
					 3 changed files with 1750 additions and 1 deletions
				
			
		| 
						 | 
					@ -160,6 +160,7 @@ config CRYPTO_DEV_FSL_DPAA2_CAAM
 | 
				
			||||||
	select CRYPTO_BLKCIPHER
 | 
						select CRYPTO_BLKCIPHER
 | 
				
			||||||
	select CRYPTO_AUTHENC
 | 
						select CRYPTO_AUTHENC
 | 
				
			||||||
	select CRYPTO_AEAD
 | 
						select CRYPTO_AEAD
 | 
				
			||||||
 | 
						select CRYPTO_HASH
 | 
				
			||||||
	help
 | 
						help
 | 
				
			||||||
	  CAAM driver for QorIQ Data Path Acceleration Architecture 2.
 | 
						  CAAM driver for QorIQ Data Path Acceleration Architecture 2.
 | 
				
			||||||
	  It handles DPSECI DPAA2 objects that sit on the Management Complex
 | 
						  It handles DPSECI DPAA2 objects that sit on the Management Complex
 | 
				
			||||||
| 
						 | 
					@ -174,4 +175,5 @@ config CRYPTO_DEV_FSL_CAAM_CRYPTO_API_DESC
 | 
				
			||||||
		      CRYPTO_DEV_FSL_DPAA2_CAAM)
 | 
							      CRYPTO_DEV_FSL_DPAA2_CAAM)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
config CRYPTO_DEV_FSL_CAAM_AHASH_API_DESC
 | 
					config CRYPTO_DEV_FSL_CAAM_AHASH_API_DESC
 | 
				
			||||||
	def_tristate (CRYPTO_DEV_FSL_CAAM_AHASH_API)
 | 
						def_tristate (CRYPTO_DEV_FSL_CAAM_AHASH_API || \
 | 
				
			||||||
 | 
							      CRYPTO_DEV_FSL_DPAA2_CAAM)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
										
											
												File diff suppressed because it is too large
												Load diff
											
										
									
								
							| 
						 | 
					@ -158,6 +158,22 @@ struct skcipher_edesc {
 | 
				
			||||||
	struct dpaa2_sg_entry sgt[0];
 | 
						struct dpaa2_sg_entry sgt[0];
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					/*
 | 
				
			||||||
 | 
					 * ahash_edesc - s/w-extended ahash descriptor
 | 
				
			||||||
 | 
					 * @dst_dma: I/O virtual address of req->result
 | 
				
			||||||
 | 
					 * @qm_sg_dma: I/O virtual address of h/w link table
 | 
				
			||||||
 | 
					 * @src_nents: number of segments in input scatterlist
 | 
				
			||||||
 | 
					 * @qm_sg_bytes: length of dma mapped qm_sg space
 | 
				
			||||||
 | 
					 * @sgt: pointer to h/w link table
 | 
				
			||||||
 | 
					 */
 | 
				
			||||||
 | 
					struct ahash_edesc {
 | 
				
			||||||
 | 
						dma_addr_t dst_dma;
 | 
				
			||||||
 | 
						dma_addr_t qm_sg_dma;
 | 
				
			||||||
 | 
						int src_nents;
 | 
				
			||||||
 | 
						int qm_sg_bytes;
 | 
				
			||||||
 | 
						struct dpaa2_sg_entry sgt[0];
 | 
				
			||||||
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/**
 | 
					/**
 | 
				
			||||||
 * caam_flc - Flow Context (FLC)
 | 
					 * caam_flc - Flow Context (FLC)
 | 
				
			||||||
 * @flc: Flow Context options
 | 
					 * @flc: Flow Context options
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue