summaryrefslogtreecommitdiffstats
path: root/crypto
diff options
context:
space:
mode:
authorAlex Cope <alexcope@google.com>2016-11-14 20:02:54 +0100
committerHerbert Xu <herbert@gondor.apana.org.au>2016-11-17 16:34:59 +0100
commit75aa0a7cafe951538c7cb7c5ed457a3371ec5bcd (patch)
tree9cbf746474322cb3dfab8ab135b01145f72508a3 /crypto
parenthwrng: atmel - use clk_disable_unprepare instead of clk_disable (diff)
downloadlinux-75aa0a7cafe951538c7cb7c5ed457a3371ec5bcd.tar.xz
linux-75aa0a7cafe951538c7cb7c5ed457a3371ec5bcd.zip
crypto: gf128mul - Zero memory when freeing multiplication table
GF(2^128) multiplication tables are typically used for secret information, so it's a good idea to zero them on free. Signed-off-by: Alex Cope <alexcope@google.com> Signed-off-by: Eric Biggers <ebiggers@google.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto')
-rw-r--r--crypto/gf128mul.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/gf128mul.c b/crypto/gf128mul.c
index 57c85ddbd852..72015fee533d 100644
--- a/crypto/gf128mul.c
+++ b/crypto/gf128mul.c
@@ -310,8 +310,8 @@ void gf128mul_free_64k(struct gf128mul_64k *t)
int i;
for (i = 0; i < 16; i++)
- kfree(t->t[i]);
- kfree(t);
+ kzfree(t->t[i]);
+ kzfree(t);
}
EXPORT_SYMBOL(gf128mul_free_64k);