u-boot-brain/drivers/crypto/fsl
Ruchika Gupta 7f4736bd65 drivers/crypto/fsl : Allocate output ring with size aligned to CACHELNE SIZE
The output ring needs to be invalidated before enqueuing the job to SEC.
While allocation of space to output ring, it should be taken care that the
size is cacheline size aligned inorder to prevent invalidating valid data.

The patch also correct the method of aligning end of structs while flushing caches

    Since start = align(start_of_struct), it is incorrect to assign
    end = align(start + struct_size). It should instead be,
    end = align(start_of_struct + struct_size).

Signed-off-by: Saksham Jain <saksham@nxp.com>
Signed-off-by: Ruchika Gupta <ruchika.gupta@nxp.com>
Reviewed-by: York Sun <york.sun@nxp.com>
2016-02-24 08:40:55 -08:00
..
desc_constr.h crypto/fsl: SEC driver cleanup for 64 bit and endianness 2015-10-29 10:33:57 -07:00
desc.h imx6: Added DEK blob generator command 2015-03-02 09:57:06 +01:00
error.c fsl_sec: Add hardware accelerated SHA256 and SHA1 2014-10-16 14:17:07 -07:00
fsl_blob.c imx6: Added DEK blob generator command 2015-03-02 09:57:06 +01:00
fsl_hash.c crypto/fsl: SEC driver cleanup for 64 bit and endianness 2015-10-29 10:33:57 -07:00
fsl_hash.h crypto/fsl - Add progressive hashing support using hardware acceleration. 2015-02-25 13:20:02 -08:00
fsl_rsa.c DM: crypto/fsl - Add Freescale rsa DM driver 2015-01-29 17:09:58 -07:00
jobdesc.c imx: Refactoring CAAM Job Ring structure and Secure Memory for imx7 2016-02-21 11:20:54 +01:00
jobdesc.h imx6: Added DEK blob generator command 2015-03-02 09:57:06 +01:00
jr.c drivers/crypto/fsl : Allocate output ring with size aligned to CACHELNE SIZE 2016-02-24 08:40:55 -08:00
jr.h drivers/crypto/fsl : Allocate output ring with size aligned to CACHELNE SIZE 2016-02-24 08:40:55 -08:00
Kconfig DM: crypto/fsl - Add Freescale rsa DM driver 2015-01-29 17:09:58 -07:00
Makefile Correct License and Copyright information on few files 2015-08-12 20:47:46 -04:00
rsa_caam.h DM: crypto/fsl - Add Freescale rsa DM driver 2015-01-29 17:09:58 -07:00
sec.c drivers/crypto/fsl: clean-up - use fdt_setprop_u32 helper 2015-08-03 12:06:38 -07:00