2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2025-01-11 23:23:52 +08:00
linux-next/drivers/crypto/caam
Kim Phillips 991c569c5d crypto: caam - fix descriptor length adjustments for protocol descriptors
init_desc, by always ORing with 1 for the descriptor header inclusion
into the descriptor length, and init_sh_desc_pdb, by always specifying
the descriptor length modification for the PDB via options, would not
allow for odd length PDBs to be embedded in the constructed descriptor
length.  Fix this by simply changing the OR to an addition.

also round-up pdb_bytes to the next SEC command unit size, to
allow for, e.g., optional packet header bytes that aren't a
multiple of CAAM_CMD_SZ.

Reported-by: Radu-Andrei BULIE <radu.bulie@freescale.com>
Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
Cc: Yashpal Dutta <yashpal.dutta@freescale.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2012-06-27 14:42:03 +08:00
..
caamalg.c crypto: caam - remove line continuations from ablkcipher_append_src_dst 2012-06-27 14:42:03 +08:00
compat.h crypto: caam - add support for MD5 algorithm variants 2011-11-21 16:21:53 +08:00
ctrl.c crypto: caam - add backward compatible string sec4.0 2012-03-29 16:34:57 +08:00
desc_constr.h crypto: caam - fix descriptor length adjustments for protocol descriptors 2012-06-27 14:42:03 +08:00
desc.h crypto: caam - fix polarity of "propagate error" logic 2011-12-20 15:20:04 +08:00
error.c crypto: caam - ARRAY_SIZE() vs sizeof() 2011-03-27 10:45:17 +08:00
error.h crypto: caam - fix printk recursion for long error texts 2011-05-04 15:15:06 +10:00
intern.h
jr.c crypto: caam - fix input job ring element dma mapping size 2012-06-27 14:42:03 +08:00
jr.h
Kconfig
Makefile
regs.h crypto: caam - remove DECO access initialization code 2011-12-20 15:20:05 +08:00