diff options
Diffstat (limited to 'crypto/sha1_generic.c')
-rw-r--r-- | crypto/sha1_generic.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/sha1_generic.c b/crypto/sha1_generic.c index 42794803c480..7bb047432782 100644 --- a/crypto/sha1_generic.c +++ b/crypto/sha1_generic.c | |||
@@ -64,7 +64,7 @@ int crypto_sha1_update(struct shash_desc *desc, const u8 *data, | |||
64 | src = data + done; | 64 | src = data + done; |
65 | } while (done + SHA1_BLOCK_SIZE <= len); | 65 | } while (done + SHA1_BLOCK_SIZE <= len); |
66 | 66 | ||
67 | memset(temp, 0, sizeof(temp)); | 67 | memzero_explicit(temp, sizeof(temp)); |
68 | partial = 0; | 68 | partial = 0; |
69 | } | 69 | } |
70 | memcpy(sctx->buffer + partial, src, len - done); | 70 | memcpy(sctx->buffer + partial, src, len - done); |