crypto/ccp: fix digest size capabilities
authorAmaranath Somalapuram <asomalap@amd.com>
Fri, 22 Nov 2019 06:47:47 +0000 (12:17 +0530)
committerAkhil Goyal <akhil.goyal@nxp.com>
Mon, 25 Nov 2019 10:01:36 +0000 (11:01 +0100)
CCP can support varied digest sizes ranging from 1 to some max value
But the current code support only fixed max values.
This patch updates the minimum digest sizes to 1

Fixes: e0d88a394e ("crypto/ccp: support run-time CPU based auth")
Cc: stable@dpdk.org
Signed-off-by: Amaranath Somalapuram <asomalap@amd.com>
drivers/crypto/ccp/ccp_pmd_ops.c

index d5041f0..a19e85e 100644 (file)
@@ -47,9 +47,9 @@
                                         .increment = 1                 \
                                 },                                     \
                                 .digest_size = {                       \
-                                        .min = 20,                     \
+                                        .min = 1,                      \
                                         .max = 20,                     \
-                                        .increment = 0                 \
+                                        .increment = 1                 \
                                 },                                     \
                                 .aad_size = { 0 }                      \
                         }, }                                           \
@@ -89,9 +89,9 @@
                                         .increment = 1                 \
                                 },                                     \
                                 .digest_size = {                       \
-                                        .min = 28,                     \
+                                        .min = 1,                     \
                                         .max = 28,                     \
-                                        .increment = 0                 \
+                                        .increment = 1                 \
                                 },                                     \
                                 .aad_size = { 0 }                      \
                         }, }                                           \
                                         .increment = 1                 \
                                 },                                     \
                                 .digest_size = {                       \
-                                        .min = 32,                     \
+                                        .min = 1,                     \
                                         .max = 32,                     \
-                                        .increment = 0                 \
+                                        .increment = 1                 \
                                 },                                     \
                                 .aad_size = { 0 }                      \
                         }, }                                           \
                                         .increment = 1                 \
                                 },                                     \
                                 .digest_size = {                       \
-                                        .min = 48,                     \
+                                        .min = 1,                     \
                                         .max = 48,                     \
-                                        .increment = 0                 \
+                                        .increment = 1                 \
                                 },                                     \
                                 .aad_size = { 0 }                      \
                         }, }                                           \
                                         .increment = 1                 \
                                 },                                     \
                                 .digest_size = {                       \
-                                        .min = 64,                     \
+                                        .min = 1,                     \
                                         .max = 64,                     \
-                                        .increment = 0                 \
+                                        .increment = 1                 \
                                 },                                     \
                                 .aad_size = { 0 }                      \
                         }, }                                           \
                                         .increment = 1                 \
                                 },                                     \
                                 .digest_size = {                       \
-                                        .min = 64,                     \
+                                        .min = 1,                     \
                                         .max = 64,                     \
-                                        .increment = 0                 \
+                                        .increment = 1                 \
                                 },                                     \
                                 .aad_size = { 0 }                      \
                        }, }                                            \
                                         .increment = 1                 \
                                 },                                     \
                                 .digest_size = {                       \
-                                        .min = 16,                     \
+                                        .min = 1                     \
                                         .max = 16,                     \
-                                        .increment = 0                 \
+                                        .increment = 1                 \
                                 },                                     \
                                 .aad_size = { 0 }                      \
                        }, }                                            \