-.\" 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)
.\" This is free documentation; you can redistribute it and/or
.\" modify it under the terms of the GNU General Public License as
.\" published by the Free Software Foundation; either version 2 of
.\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
.\" GNU General Public License for more details.
.\"
+.\" You should have received a copy of the GNU General Public
+.\" License along with this manual; if not, see
+.\" <http://www.gnu.org/licenses/>.
+.\" %%%LICENSE_END
+.\"
.\" Modified 2002-07-23 19:21:35 CEST 2002 Walter Harms
.\" <walter.harms@informatik.uni-oldenburg.de>
.\"
.\" 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
set
.I data\->initialized
to zero.
-.SH "RETURN VALUE"
+.SH RETURN VALUE
These functions do not return any value.
.SH ERRORS
Set
.B ENOSYS
The function is not provided.
(For example because of former USA export restrictions.)
-.SH "CONFORMING TO"
+.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 ()
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[]
encrypt(txt, 1); /* decode */
}
.fi
-.SH "SEE ALSO"
+.SH SEE ALSO
.BR cbc_crypt (3),
.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/.