summaryrefslogtreecommitdiff
path: root/lib/libc/string/memset.3
diff options
context:
space:
mode:
authorriastradh <riastradh@NetBSD.org>2013-06-24 04:21:19 +0000
committerriastradh <riastradh@NetBSD.org>2013-06-24 04:21:19 +0000
commitadfdcceb8aad478bc3c5692fb3aff045c0c8ef37 (patch)
treeee62fd1d002750ee339715e953885019cf401475 /lib/libc/string/memset.3
parent8fcb059d64019ef3a03b90cb11f6c6d47aeeb6b9 (diff)
Replace consttime_bcmp/explicit_bzero by consttime_memequal/explicit_memset.
consttime_memequal is the same as the old consttime_bcmp. explicit_memset is to memset as explicit_bzero was to bcmp. Passes amd64 release and i386/ALL, but I'm sure I missed some spots, so please let me know.
Diffstat (limited to 'lib/libc/string/memset.3')
-rw-r--r--lib/libc/string/memset.36
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libc/string/memset.3 b/lib/libc/string/memset.3
index 777b167e804..bc51985b354 100644
--- a/lib/libc/string/memset.3
+++ b/lib/libc/string/memset.3
@@ -30,7 +30,7 @@
.\" SUCH DAMAGE.
.\"
.\" from: @(#)memset.3 8.1 (Berkeley) 6/4/93
-.\" $NetBSD: memset.3,v 1.10 2013/06/23 16:44:06 riastradh Exp $
+.\" $NetBSD: memset.3,v 1.11 2013/06/24 04:21:20 riastradh Exp $
.\"
.Dd June 23, 2013
.Dt MEMSET 3
@@ -67,10 +67,10 @@ if it can prove that the string will not be used by the program again,
for example if it is allocated on the stack and about to out of scope.
If you want to guarantee that zeros are written to memory, for example
to sanitize a buffer holding a cryptographic secret, use
-.Xr explicit_bzero .
+.Xr explicit_memset .
.Sh SEE ALSO
.Xr bzero 3 ,
-.Xr explicit_bzero 3 ,
+.Xr explicit_memset 3 ,
.Xr swab 3
.Sh STANDARDS
The