UPSTREAM: crypto: gf128mul - Zero memory when freeing multiplication table
authorAlex Cope <alexcope@google.com>
Mon, 14 Nov 2016 19:02:54 +0000 (11:02 -0800)
committerEric Biggers <ebiggers@google.com>
Fri, 10 Feb 2017 20:08:37 +0000 (20:08 +0000)
commit8ea7531e4764805981be72a2b1eed3617af24a38
tree5336648b77a562c3929afdc6b561253d76234167
parentc8bb10b1eec8156fe3efd1543b6431c32434ba28
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
crypto/gf128mul.c
include/crypto/gf128mul.h