diff options
author | LEROY Christophe <christophe.leroy@c-s.fr> | 2017-09-13 06:44:51 -0400 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2017-09-20 05:42:39 -0400 |
commit | afd62fa26343be6445479e75de9f07092a061459 (patch) | |
tree | f74346c70dfa137a37a376a76bf5b85760d269ee | |
parent | 8f182f845d0fa26ecc18d3bdcc3d1077a0ea3a31 (diff) |
crypto: talitos - fix sha224
Kernel crypto tests report the following error at startup
[ 2.752626] alg: hash: Test 4 failed for sha224-talitos
[ 2.757907] 00000000: 30 e2 86 e2 e7 8a dd 0d d7 eb 9f d5 83 fe f1 b0
00000010: 2d 5a 6c a5 f9 55 ea fd 0e 72 05 22
This patch fixes it
Cc: <stable@vger.kernel.org>
Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
-rw-r--r-- | drivers/crypto/talitos.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/crypto/talitos.c b/drivers/crypto/talitos.c index 79791c690858..6596761bc0c8 100644 --- a/drivers/crypto/talitos.c +++ b/drivers/crypto/talitos.c | |||
@@ -1756,9 +1756,9 @@ static int common_nonsnoop_hash(struct talitos_edesc *edesc, | |||
1756 | req_ctx->swinit = 0; | 1756 | req_ctx->swinit = 0; |
1757 | } else { | 1757 | } else { |
1758 | desc->ptr[1] = zero_entry; | 1758 | desc->ptr[1] = zero_entry; |
1759 | /* Indicate next op is not the first. */ | ||
1760 | req_ctx->first = 0; | ||
1761 | } | 1759 | } |
1760 | /* Indicate next op is not the first. */ | ||
1761 | req_ctx->first = 0; | ||
1762 | 1762 | ||
1763 | /* HMAC key */ | 1763 | /* HMAC key */ |
1764 | if (ctx->keylen) | 1764 | if (ctx->keylen) |