diff options
| author | Alex Cope <alexcope@google.com> | 2016-11-14 11:02:54 -0800 |
|---|---|---|
| committer | Eric Biggers <ebiggers@google.com> | 2017-02-10 20:08:37 +0000 |
| commit | 8ea7531e4764805981be72a2b1eed3617af24a38 (patch) | |
| tree | 5336648b77a562c3929afdc6b561253d76234167 /include/crypto | |
| parent | c8bb10b1eec8156fe3efd1543b6431c32434ba28 (diff) | |
UPSTREAM: 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>
(cherry-picked from 75aa0a7cafe951538c7cb7c5ed457a3371ec5bcd)
Bug: 32975945
Signed-off-by: Eric Biggers <ebiggers@google.com>
Change-Id: I37b1ae9544158007f9ee2caf070120f4a42153ab
Diffstat (limited to 'include/crypto')
| -rw-r--r-- | include/crypto/gf128mul.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/crypto/gf128mul.h b/include/crypto/gf128mul.h index da2530e34b26..7217fe6dbe33 100644 --- a/include/crypto/gf128mul.h +++ b/include/crypto/gf128mul.h @@ -177,7 +177,7 @@ void gf128mul_4k_bbe(be128 *a, struct gf128mul_4k *t); static inline void gf128mul_free_4k(struct gf128mul_4k *t) { - kfree(t); + kzfree(t); } |
