summaryrefslogtreecommitdiff
path: root/crypto/internal.h
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2023-06-26 13:33:44 +0300
committerHerbert Xu <herbert@gondor.apana.org.au>2023-06-27 10:40:24 +0300
commit891ebfdfa3d08bf55ebec523c99bb68ac9c34cf7 (patch)
tree8f660671f3ce35b37a746dd3a624273b503389fa /crypto/internal.h
parent767cfee8368f43c6d6c58cdf8c2d143a027fa55f (diff)
downloadlinux-891ebfdfa3d08bf55ebec523c99bb68ac9c34cf7.tar.xz
crypto: sig - Fix verify call
The dst SG list needs to be set to NULL for verify calls. Do this as otherwise the underlying algorithm may fail. Furthermore the digest needs to be copied just like the source. Fixes: 6cb8815f41a9 ("crypto: sig - Add interface for sign/verify") Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/internal.h')
-rw-r--r--crypto/internal.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/internal.h b/crypto/internal.h
index e3cf5a658d51..63e59240d5fb 100644
--- a/crypto/internal.h
+++ b/crypto/internal.h
@@ -44,7 +44,7 @@ struct crypto_akcipher_sync_data {
struct akcipher_request *req;
struct crypto_wait cwait;
- struct scatterlist sg[2];
+ struct scatterlist sg;
u8 *buf;
};