Skip to content

Commit

Permalink
crypto/ccp: fix digest size capabilities
Browse files Browse the repository at this point in the history
[ upstream commit 4f8c7b4 ]

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: e0d88a3 ("crypto/ccp: support run-time CPU based auth")

Signed-off-by: Amaranath Somalapuram <asomalap@amd.com>
  • Loading branch information
Amaranath Somalapuram authored and kevintraynor committed Dec 11, 2019
1 parent c84bea1 commit 32a21ec
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions drivers/crypto/ccp/ccp_pmd_ops.c
Expand Up @@ -47,9 +47,9 @@
.increment = 1 \
}, \
.digest_size = { \
.min = 20, \
.min = 1, \
.max = 20, \
.increment = 0 \
.increment = 1 \
}, \
.aad_size = { 0 } \
}, } \
Expand Down Expand Up @@ -89,9 +89,9 @@
.increment = 1 \
}, \
.digest_size = { \
.min = 28, \
.min = 1, \
.max = 28, \
.increment = 0 \
.increment = 1 \
}, \
.aad_size = { 0 } \
}, } \
Expand Down Expand Up @@ -173,9 +173,9 @@
.increment = 1 \
}, \
.digest_size = { \
.min = 32, \
.min = 1, \
.max = 32, \
.increment = 0 \
.increment = 1 \
}, \
.aad_size = { 0 } \
}, } \
Expand Down Expand Up @@ -257,9 +257,9 @@
.increment = 1 \
}, \
.digest_size = { \
.min = 48, \
.min = 1, \
.max = 48, \
.increment = 0 \
.increment = 1 \
}, \
.aad_size = { 0 } \
}, } \
Expand Down Expand Up @@ -341,9 +341,9 @@
.increment = 1 \
}, \
.digest_size = { \
.min = 64, \
.min = 1, \
.max = 64, \
.increment = 0 \
.increment = 1 \
}, \
.aad_size = { 0 } \
}, } \
Expand Down Expand Up @@ -383,9 +383,9 @@
.increment = 1 \
}, \
.digest_size = { \
.min = 64, \
.min = 1, \
.max = 64, \
.increment = 0 \
.increment = 1 \
}, \
.aad_size = { 0 } \
}, } \
Expand Down Expand Up @@ -536,9 +536,9 @@
.increment = 1 \
}, \
.digest_size = { \
.min = 16, \
.min = 1, \
.max = 16, \
.increment = 0 \
.increment = 1 \
}, \
.aad_size = { 0 } \
}, } \
Expand Down

0 comments on commit 32a21ec

Please sign in to comment.