diff options
author | Yuan Kang | 2012-06-23 02:48:43 +0200 |
---|---|---|
committer | Herbert Xu | 2012-06-27 08:42:04 +0200 |
commit | 6ec47334935ffbc3eccc227ed22ab716be9942f1 (patch) | |
tree | fe882ecd0a2d53b48a20ab1ec16f170049f7319c /drivers/crypto/caam/caamalg.c | |
parent | crypto: caam - add PDB (Protocol Descriptor Block) definitions (diff) | |
download | kernel-qcow2-linux-6ec47334935ffbc3eccc227ed22ab716be9942f1.tar.gz kernel-qcow2-linux-6ec47334935ffbc3eccc227ed22ab716be9942f1.tar.xz kernel-qcow2-linux-6ec47334935ffbc3eccc227ed22ab716be9942f1.zip |
crypto: caam - support external seq in/out lengths
functions for external storage of seq in/out lengths,
i.e., for 32-bit lengths.
These type-dependent functions automatically determine whether to
store the length internally (embedded in the command header word) or
externally (after the address pointer), based on size of the type
given.
Signed-off-by: Yuan Kang <Yuan.Kang@freescale.com>
Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/caam/caamalg.c')
-rw-r--r-- | drivers/crypto/caam/caamalg.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/crypto/caam/caamalg.c b/drivers/crypto/caam/caamalg.c index 5c10dc5c0c51..d0f8df1dcec3 100644 --- a/drivers/crypto/caam/caamalg.c +++ b/drivers/crypto/caam/caamalg.c @@ -37,9 +37,10 @@ * | ShareDesc Pointer | * | SEQ_OUT_PTR | * | (output buffer) | + * | (output length) | * | SEQ_IN_PTR | * | (input buffer) | - * | LOAD (to DECO) | + * | (input length) | * --------------------- */ @@ -62,7 +63,7 @@ #define CAAM_MAX_IV_LENGTH 16 /* length of descriptors text */ -#define DESC_JOB_IO_LEN (CAAM_CMD_SZ * 3 + CAAM_PTR_SZ * 3) +#define DESC_JOB_IO_LEN (CAAM_CMD_SZ * 5 + CAAM_PTR_SZ * 3) #define DESC_AEAD_BASE (4 * CAAM_CMD_SZ) #define DESC_AEAD_ENC_LEN (DESC_AEAD_BASE + 16 * CAAM_CMD_SZ) |