Skip to content
Commit 421d82f5 authored by Nickolaus Woodruff's avatar Nickolaus Woodruff Committed by Herbert Xu
Browse files

crypto: drbg - use memzero_explicit() for clearing sensitive data



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: default avatarNickolaus Woodruff <nickolauswoodruff@gmail.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 0653a7cf
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment