Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libcrypt paranoia: use explicit_memset



details:   https://anonhg.NetBSD.org/src/rev/374263b91b15
branches:  trunk
changeset: 1024200:374263b91b15
user:      nia <nia%NetBSD.org@localhost>
date:      Tue Oct 12 12:11:04 2021 +0000

description:
paranoia: use explicit_memset

diffstat:

 lib/libcrypt/crypt-argon2.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (16 lines):

diff -r aeae3e9c6431 -r 374263b91b15 lib/libcrypt/crypt-argon2.c
--- a/lib/libcrypt/crypt-argon2.c       Tue Oct 12 12:03:47 2021 +0000
+++ b/lib/libcrypt/crypt-argon2.c       Tue Oct 12 12:11:04 2021 +0000
@@ -254,9 +254,9 @@
                        blkp);
 
        /* clear buffers */
-       memset(encodebuf, 0, sizeof(encodebuf));
-       memset(saltbuf, 0, sizeof(saltbuf));
-       memset(pwdbuf, 0, sizeof(pwdbuf));
+       explicit_memset(encodebuf, 0, sizeof(encodebuf));
+       explicit_memset(saltbuf, 0, sizeof(saltbuf));
+       explicit_memset(pwdbuf, 0, sizeof(pwdbuf));
 
        /* return encoded str */
        return rbuf;



Home | Main Index | Thread Index | Old Index