From 5310e6de6714203b17637c874369e214dc3908fa Mon Sep 17 00:00:00 2001 From: Robert Marklund Date: Thu, 7 Oct 2010 20:05:22 +0200 Subject: HCL driver implementation (hash). Major refactoring, checkpatch fixes, documentation of functions, structures, enums. Also moved a lot of code from hash_alg.c to hash_core.c. Fixed problem with incorrect digest when doing HMAC calculations. The problem was that the function that did message pad seems to handle padding for keys incorrectly. Now we do not say how many valid bits there are in the last word when it comes to the key and then the hardware seems to handle the key correctly. Fixed contextsaving so hmac(sha1) passes. There was an if statement checking the DINF bit which was never set. I have removed this and then contextsaving for hmac(sha1) is working. Code up to date with the new arch/arm/mach-ux500 folder structure. Signed-off-by: Joakim Bech ux500: switch to DMAENGINE-based DMA driver Switch all DMA clients to the DMA Engine API, and add the platform hooks for the DMA Engine-based DMA40 driver. Signed-off-by: Rabin Vincent Signed-off-by: Robert Marklund Signed-off-by: Lee Jones --- drivers/crypto/ux500/hash/hash_alg_p.h | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100755 drivers/crypto/ux500/hash/hash_alg_p.h (limited to 'drivers/crypto/ux500/hash/hash_alg_p.h') diff --git a/drivers/crypto/ux500/hash/hash_alg_p.h b/drivers/crypto/ux500/hash/hash_alg_p.h new file mode 100755 index 00000000000..c85faaeba6f --- /dev/null +++ b/drivers/crypto/ux500/hash/hash_alg_p.h @@ -0,0 +1,26 @@ +/*****************************************************************************/ +/** +* � ST-Ericsson, 2009 - All rights reserved +* Reproduction and Communication of this document is strictly prohibited +* unless specifically authorized in writing by ST-Ericsson +* +* static Header file of HASH Processor +* Specification release related to this implementation: A_V2.2 +* AUTHOR : ST-Ericsson +*/ +/*****************************************************************************/ + +#ifndef _HASH_P_H_ +#define _HASH_P_H_ + +/*--------------------------------------------------------------------------* + * Includes * + *--------------------------------------------------------------------------*/ +#include "hash_alg.h" + +/*--------------------------------------------------------------------------* + * Defines * + *--------------------------------------------------------------------------*/ + +#endif /* End _HASH_P_H_ */ + -- cgit v1.2.3