OSDN Git Service

LDP: Update original to LDP v3.79
[linuxjm/LDP_man-pages.git] / original / man3 / encrypt.3
index 411cb22..5db435b 100644 (file)
@@ -1,4 +1,4 @@
-.\" Copyright 2000 Nicolás Lichtmaier <nick@debian.org>
+.\" Copyright 2000 Nicolás Lichtmaier <nick@debian.org>
 .\" Created 2000-07-22 00:52-0300
 .\"
 .\" %%%LICENSE_START(GPLv2+_DOC_FULL)
@@ -27,7 +27,7 @@
 .\"
 .\" Modified 2003-04-04, aeb
 .\"
-.TH ENCRYPT 3 2003-04-04 "" "Linux Programmer's Manual"
+.TH ENCRYPT 3 2013-07-22 "" "Linux Programmer's Manual"
 .SH NAME
 encrypt, setkey, encrypt_r, setkey_r \- encrypt 64-bit messages
 .SH SYNOPSIS
@@ -121,6 +121,19 @@ On success, it is unchanged.
 .B ENOSYS
 The function is not provided.
 (For example because of former USA export restrictions.)
+.SH ATTRIBUTES
+.SS Multithreading (see pthreads(7))
+The
+.BR encrypt ()
+and
+.BR setkey ()
+functions are not thread-safe.
+.LP
+The
+.BR encrypt_r ()
+and
+.BR setkey_r ()
+functions are thread-safe.
 .SH CONFORMING TO
 The functions
 .BR encrypt ()
@@ -133,10 +146,10 @@ and
 .BR setkey_r ()
 are GNU extensions.
 .SH NOTES
-In glibc 2.2 these functions use the DES algorithm.
+In glibc 2.2, these functions use the DES algorithm.
 .SH EXAMPLE
 You need to link with libcrypt to compile this example with glibc.
-To do useful work the
+To do useful work, the
 .I key[]
 and
 .I txt[]
@@ -163,3 +176,12 @@ main(void)
 .BR crypt (3),
 .BR ecb_crypt (3),
 .\" .BR fcrypt (3)
+.SH COLOPHON
+This page is part of release 3.79 of the Linux
+.I man-pages
+project.
+A description of the project,
+information about reporting bugs,
+and the latest version of this page,
+can be found at
+\%http://www.kernel.org/doc/man\-pages/.