Re: [PATCH v2] crypto: drbg: use memzero_explicit() for clearing sensitive data

2015-01-04 Thread Herbert Xu
On Thu, Nov 27, 2014 at 10:33:02PM +0800, Herbert Xu wrote: > On Wed, Nov 26, 2014 at 01:40:57PM -0500, Nickolaus Woodruff wrote: > > Compiler dead store optimization can sometimes remove final calls > > to memset() used to clear sensitive data at the end of a function. > > Replace trailing memset(

Re: [PATCH v2] crypto: drbg: use memzero_explicit() for clearing sensitive data

2014-11-27 Thread Herbert Xu
On Wed, Nov 26, 2014 at 01:40:57PM -0500, Nickolaus Woodruff wrote: > Compiler dead store optimization can sometimes remove final calls > to memset() used to clear sensitive data at the end of a function. > Replace trailing memset() calls with memzero_explicit() to > preclude unwanted removal. > >

[PATCH v2] crypto: drbg: use memzero_explicit() for clearing sensitive data

2014-11-26 Thread Nickolaus Woodruff
Compiler dead store optimization can sometimes remove final calls to memset() used to clear sensitive data at the end of a function. Replace trailing memset() calls with memzero_explicit() to preclude unwanted removal. Signed-off-by: Nickolaus Woodruff --- Changes in v2: - Move the linux/stri