summaryrefslogtreecommitdiff
path: root/drivers/crypto/chelsio/chcr_algo.h
diff options
context:
space:
mode:
authorHarsh Jain <harsh@chelsio.com>2017-04-10 15:54:01 +0300
committerHerbert Xu <herbert@gondor.apana.org.au>2017-04-21 15:30:35 +0300
commit0e93708dabc0e999c7ffcf1e8661b68d96de24fd (patch)
tree8251825b7fe1edc6bab52b35ff1f703563a67c3a /drivers/crypto/chelsio/chcr_algo.h
parent72a56ca97dc163a7a10a654aab6635e30e781070 (diff)
downloadlinux-0e93708dabc0e999c7ffcf1e8661b68d96de24fd.tar.xz
crypto: chcr - Add fallback for AEAD algos
Fallback to sw when I AAD length greater than 511 II Zero length payload II No of sg entries exceeds Request size. Signed-off-by: Harsh Jain <harsh@chelsio.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/chelsio/chcr_algo.h')
-rw-r--r--drivers/crypto/chelsio/chcr_algo.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/crypto/chelsio/chcr_algo.h b/drivers/crypto/chelsio/chcr_algo.h
index ba38bae7ce80..751d06a58101 100644
--- a/drivers/crypto/chelsio/chcr_algo.h
+++ b/drivers/crypto/chelsio/chcr_algo.h
@@ -218,6 +218,10 @@
#define MAX_NK 8
#define CRYPTO_MAX_IMM_TX_PKT_LEN 256
+#define MAX_WR_SIZE 512
+#define MIN_AUTH_SG 2 /*IV + AAD*/
+#define MIN_GCM_SG 2 /* IV + AAD*/
+#define MIN_CCM_SG 3 /*IV+AAD+B0*/
struct algo_param {
unsigned int auth_mode;