summaryrefslogtreecommitdiff
path: root/arch/powerpc/crypto/sha1.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/powerpc/crypto/sha1.c')
-rw-r--r--arch/powerpc/crypto/sha1.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/crypto/sha1.c b/arch/powerpc/crypto/sha1.c
index 0f88c7b41119..d3feba5a275f 100644
--- a/arch/powerpc/crypto/sha1.c
+++ b/arch/powerpc/crypto/sha1.c
@@ -66,7 +66,7 @@ static int sha1_update(struct shash_desc *desc, const u8 *data,
src = data + done;
} while (done + 63 < len);
- memset(temp, 0, sizeof(temp));
+ memzero_explicit(temp, sizeof(temp));
partial = 0;
}
memcpy(sctx->buffer + partial, src, len - done);