diff options
| author | nia <nia@NetBSD.org> | 2021-10-12 12:11:04 +0000 |
|---|---|---|
| committer | nia <nia@NetBSD.org> | 2021-10-12 12:11:04 +0000 |
| commit | 64046b2cb983a1c2a8d010dd80ed2f7bcfcad47b (patch) | |
| tree | 209e3fc3c9612fb12ee4807b86b4c221a684b464 /lib/libcrypt | |
| parent | 949c9fbab53f40237a1400f0a658625f22dd90db (diff) | |
paranoia: use explicit_memset
Diffstat (limited to 'lib/libcrypt')
| -rw-r--r-- | lib/libcrypt/crypt-argon2.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libcrypt/crypt-argon2.c b/lib/libcrypt/crypt-argon2.c index d9cc970ac00..66924fa027f 100644 --- a/lib/libcrypt/crypt-argon2.c +++ b/lib/libcrypt/crypt-argon2.c @@ -254,9 +254,9 @@ __crypt_argon2(const char *pw, const char * salt) 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; |
