diff options
author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-12-04 09:01:36 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-12-31 10:48:53 +0100 |
commit | 26a5d10c7f4f9edc8a09f0301cc5ca55844db375 (patch) | |
tree | 860250b320df596fff2c7af58bde02be2c6ee109 /crypto/drbg.c | |
parent | bc856b9e798dc80d0f0d047b9221c6e1fc27db2b (diff) | |
download | linux-crypto-26a5d10c7f4f9edc8a09f0301cc5ca55844db375.tar.gz linux-crypto-26a5d10c7f4f9edc8a09f0301cc5ca55844db375.zip |
crypto: asym_tpm: correct zero out potential secrets
The function derive_pub_key() should be calling memzero_explicit()
instead of memset() in case the complier decides to optimize away the
call to memset() because it "knows" no one is going to touch the memory
anymore.
Cc: stable <stable@vger.kernel.org>
Reported-by: Ilil Blum Shem-Tov <ilil.blum.shem-tov@intel.com>
Tested-by: Ilil Blum Shem-Tov <ilil.blum.shem-tov@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Link: https://lore.kernel.org/r/X8ns4AfwjKudpyfe@kroah.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'crypto/drbg.c')
0 files changed, 0 insertions, 0 deletions