summaryrefslogtreecommitdiff
path: root/drivers/crypto/qce/common.h
diff options
context:
space:
mode:
authorSivaprakash Murugesan <sivaprak@codeaurora.org>2020-06-22 09:15:04 +0300
committerHerbert Xu <herbert@gondor.apana.org.au>2020-07-03 07:18:34 +0300
commit8ac1b9ccbfbaeacc0c33433e3e7825593bda366e (patch)
treed13be822b155127e6dbe3e60c154030cae406ac3 /drivers/crypto/qce/common.h
parent5c3a8a661e1bd9d7063485ac2d2ccb512c447129 (diff)
downloadlinux-8ac1b9ccbfbaeacc0c33433e3e7825593bda366e.tar.xz
crypto: qce - support zero length test vectors
crypto test module passes zero length vectors as test input to sha-1 and sha-256. To provide correct output for these vectors, hash zero support has been added as in other crypto drivers. Signed-off-by: Sivaprakash Murugesan <sivaprak@codeaurora.org> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/qce/common.h')
-rw-r--r--drivers/crypto/qce/common.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/crypto/qce/common.h b/drivers/crypto/qce/common.h
index 9f989cba0f1b..85ba16418a04 100644
--- a/drivers/crypto/qce/common.h
+++ b/drivers/crypto/qce/common.h
@@ -87,6 +87,8 @@ struct qce_alg_template {
struct ahash_alg ahash;
} alg;
struct qce_device *qce;
+ const u8 *hash_zero;
+ const u32 digest_size;
};
void qce_cpu_to_be32p_array(__be32 *dst, const u8 *src, unsigned int len);