diff options
| author | Alex Cope <alexcope@google.com> | 2016-11-14 14:02:54 -0500 |
|---|---|---|
| committer | Herbert Xu <herbert@gondor.apana.org.au> | 2016-11-17 10:34:59 -0500 |
| commit | 75aa0a7cafe951538c7cb7c5ed457a3371ec5bcd (patch) | |
| tree | 9cbf746474322cb3dfab8ab135b01145f72508a3 /include/crypto | |
| parent | b516b88a7946c92d418c8ad2673b94ea568d1cf5 (diff) | |
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 '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 b611aa99f9b4..592d47e565a8 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); | |||
| 177 | 177 | ||
| 178 | static inline void gf128mul_free_4k(struct gf128mul_4k *t) | 178 | static inline void gf128mul_free_4k(struct gf128mul_4k *t) |
| 179 | { | 179 | { |
| 180 | kfree(t); | 180 | kzfree(t); |
| 181 | } | 181 | } |
| 182 | 182 | ||
| 183 | 183 | ||
