]> Pileus Git - ~andy/linux/blobdiff - drivers/crypto/caam/caamalg.c
crypto: caam - support external seq in/out lengths
[~andy/linux] / drivers / crypto / caam / caamalg.c
index 5c10dc5c0c51ab1523f12389481ae5b3c979d77d..d0f8df1dcec35549812ab24097f7788c4e7ed468 100644 (file)
  * | 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)