summaryrefslogtreecommitdiff
path: root/man3/encrypt.3
diff options
context:
space:
mode:
authorMichael Kerrisk <mtk.manpages@gmail.com>2005-10-19 07:07:02 +0000
committerMichael Kerrisk <mtk.manpages@gmail.com>2005-10-19 07:07:02 +0000
commit63aa9df02fee88a559822c460ab5a30f1d8414ee (patch)
treefedc607745a57e06a1a541feca62e18d51523ddb /man3/encrypt.3
parente511ffb6bcaa9a584412a95e602435827e302033 (diff)
Automated unformatting of parentheses using unformat_parens.sh
Diffstat (limited to 'man3/encrypt.3')
-rw-r--r--man3/encrypt.318
1 files changed, 9 insertions, 9 deletions
diff --git a/man3/encrypt.3 b/man3/encrypt.3
index d70abe46..056db9a1 100644
--- a/man3/encrypt.3
+++ b/man3/encrypt.3
@@ -49,9 +49,9 @@ Each of these requires linking with
.BR \-lcrypt .
.SH DESCRIPTION
These functions encrypt and decrypt 64-bit messages. The
-.B setkey()
+.BR setkey ()
function sets the key used by
-.BR encrypt() .
+.BR encrypt ().
The
.I key
parameter used here is an array of 64 bytes, each of which has
@@ -67,9 +67,9 @@ The result is returned in that same vector.
.PP
These two functions are not reentrant, that is, the key data is
kept in static storage. The functions
-.B setkey_r()
+.BR setkey_r ()
and
-.B encrypt_r()
+.BR encrypt_r ()
are the reentrant versions. They use the following
structure to hold the key data:
.RS
@@ -88,7 +88,7 @@ struct crypt_data {
.fi
.RE
Before calling
-.B setkey_r()
+.BR setkey_r ()
set
.I data->initialized
to zero.
@@ -124,14 +124,14 @@ main() {
In glibc2.2 these functions use the DES algorithm.
.SH "CONFORMING TO"
The functions
-.B encrypt()
+.BR encrypt ()
and
-.B setkey()
+.BR setkey ()
conform to SVID, SUSv2, and POSIX 1003.1-2001.
The functions
-.B encrypt_r()
+.BR encrypt_r ()
and
-.B setkey_r()
+.BR setkey_r ()
are GNU extensions.
.SH "SEE ALSO"
.BR cbc_crypt (3),