diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-03-31 10:20:19 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-03-31 13:38:01 +0100 |
commit | 026b17b7d725109f586622755b435ded3673c43a (patch) | |
tree | 685262a3a279833535f2b53584e311ce290aef83 /sal/rtl/digest.cxx | |
parent | 01b615687fe0f39c65e0e8290db434db2f1ef8ac (diff) |
V597: introduce a rtl_secureZeroMemory
Change-Id: Id28046eb318cd3b2ed0b813fd266617547cf6ee2
Diffstat (limited to 'sal/rtl/digest.cxx')
-rw-r--r-- | sal/rtl/digest.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sal/rtl/digest.cxx b/sal/rtl/digest.cxx index 5aba0ea91b67..d8f4c7119142 100644 --- a/sal/rtl/digest.cxx +++ b/sal/rtl/digest.cxx @@ -2071,7 +2071,7 @@ static void __rtl_digest_updatePBKDF2 ( for (k = 0; k < DIGEST_CBLOCK_PBKDF2; k++) T[k] ^= U[k]; } - memset (U, 0, DIGEST_CBLOCK_PBKDF2); + rtl_secureZeroMemory (U, DIGEST_CBLOCK_PBKDF2); } /*======================================================================== @@ -2124,7 +2124,7 @@ rtlDigestError SAL_CALL rtl_digest_PBKDF2 ( /* DK ||= T_(i) */ memcpy (pKeyData, T, nKeyLen); - memset (T, 0, DIGEST_CBLOCK_PBKDF2); + rtl_secureZeroMemory (T, DIGEST_CBLOCK_PBKDF2); } memset (&digest, 0, sizeof (digest)); |