summaryrefslogtreecommitdiff
path: root/src/lib/libc/crypt/crypt.3
diff options
context:
space:
mode:
authoraaron <>1999-07-09 13:35:15 +0000
committeraaron <>1999-07-09 13:35:15 +0000
commit0c53b543fa453740e95946808621acf8e057db80 (patch)
treee59db8f74612cfe765841e1ae490c8df9c2736b0 /src/lib/libc/crypt/crypt.3
parent25db34ffae569e9ff78fd3f5f6f621ee73da9a2f (diff)
downloadopenbsd-0c53b543fa453740e95946808621acf8e057db80.tar.gz
openbsd-0c53b543fa453740e95946808621acf8e057db80.tar.bz2
openbsd-0c53b543fa453740e95946808621acf8e057db80.zip
- remove all trailing whitespace
* except when it is escaped with a `\' at the end of the line - fix remaining .Nm usage as well - this is from a patch I received from kwesterback@home.com, who has been working on some scripts for fixing formatting errors in mdoc'd man pages Ok, so there could be a cost/benefit debate with this commit, but since I have the patch we might as well commit it...
Diffstat (limited to '')
-rw-r--r--src/lib/libc/crypt/crypt.344
1 files changed, 22 insertions, 22 deletions
diff --git a/src/lib/libc/crypt/crypt.3 b/src/lib/libc/crypt/crypt.3
index 239c9b3089..c22e4d21af 100644
--- a/src/lib/libc/crypt/crypt.3
+++ b/src/lib/libc/crypt/crypt.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: crypt.3,v 1.12 1999/03/18 11:08:33 aaron Exp $ 1.\" $OpenBSD: crypt.3,v 1.13 1999/07/09 13:35:15 aaron Exp $
2.\" 2.\"
3.\" FreeSec: libcrypt 3.\" FreeSec: libcrypt
4.\" 4.\"
@@ -94,42 +94,42 @@ and
94.Fa salt . 94.Fa salt .
95.Ss "MD5" crypt: 95.Ss "MD5" crypt:
96.Pp 96.Pp
97For 97For
98.Tn MD5 98.Tn MD5
99crypt the version number, 99crypt the version number,
100.Fa salt 100.Fa salt
101and the hashed password are separated 101and the hashed password are separated
102by the ``$'' character. The maximum length of a password is limited by 102by the ``$'' character. The maximum length of a password is limited by
103the length counter of the MD5 context, which is about 103the length counter of the MD5 context, which is about
1042**64. A valid MD5 password entry looks like this: 1042**64. A valid MD5 password entry looks like this:
105.Pp 105.Pp
106``$1$caeiHQwX$hsKqOjrFRRN6K32OWkCBf1''. 106``$1$caeiHQwX$hsKqOjrFRRN6K32OWkCBf1''.
107.Pp 107.Pp
108The whole MD5 password string is passed as 108The whole MD5 password string is passed as
109.Fa setting 109.Fa setting
110for interpretation. 110for interpretation.
111.Ss "Blowfish" crypt: 111.Ss "Blowfish" crypt:
112.Pp 112.Pp
113The 113The
114.Tn Blowfish 114.Tn Blowfish
115version of crypt has 128 bits of 115version of crypt has 128 bits of
116.Fa salt 116.Fa salt
117in order to make building 117in order to make building
118dictionaries of common passwords space consuming. The initial state 118dictionaries of common passwords space consuming. The initial state
119of the 119of the
120.Tn Blowfish 120.Tn Blowfish
121cipher is expanded using the 121cipher is expanded using the
122.Fa salt 122.Fa salt
123and the 123and the
124.Fa password 124.Fa password
125repeating the process a variable number of rounds, which is encoded in 125repeating the process a variable number of rounds, which is encoded in
126the password string. The maximum password length is 72. The final Blowfish 126the password string. The maximum password length is 72. The final Blowfish
127password entry is created by encrypting 127password entry is created by encrypting
128the string ``OrpheanBeholderScryDoubt'' with the 128the string ``OrpheanBeholderScryDoubt'' with the
129.Tn Blowfish 129.Tn Blowfish
130state 64 times. 130state 64 times.
131.Pp 131.Pp
132The version number, the logarithm of the number of rounds and 132The version number, the logarithm of the number of rounds and
133the concatenation of salt and 133the concatenation of salt and
134hashed password are separated by the ``$'' character. An encoded ``8'' 134hashed password are separated by the ``$'' character. An encoded ``8''
135would specify 256 rounds. 135would specify 256 rounds.
@@ -137,7 +137,7 @@ A valid Blowfish password looks like this:
137.Pp 137.Pp
138``$2a$12$eIAq8PR8sIUnJ1HaohxX2O9x9Qlm2vK97LJ5dsXdmB.eXF42qjchC''. 138``$2a$12$eIAq8PR8sIUnJ1HaohxX2O9x9Qlm2vK97LJ5dsXdmB.eXF42qjchC''.
139.Pp 139.Pp
140The whole Blowfish password string is passed as 140The whole Blowfish password string is passed as
141.Fa setting 141.Fa setting
142for interpretation. 142for interpretation.
143.Ss "Traditional" crypt: 143.Ss "Traditional" crypt:
@@ -285,13 +285,13 @@ first appeared in
285This library (FreeSec 1.0) was developed outside the United States of America 285This library (FreeSec 1.0) was developed outside the United States of America
286as an unencumbered replacement for the U.S.-only libcrypt encryption 286as an unencumbered replacement for the U.S.-only libcrypt encryption
287library. 287library.
288Programs linked against the 288Programs linked against the
289.Fn crypt 289.Fn crypt
290interface may be exported from the U.S.A. only if they use 290interface may be exported from the U.S.A. only if they use
291.Fn crypt 291.Fn crypt
292solely for authentication purposes and avoid use of 292solely for authentication purposes and avoid use of
293the other programmer interfaces listed above. Special care has been taken 293the other programmer interfaces listed above. Special care has been taken
294in the library so that programs which only use the 294in the library so that programs which only use the
295.Fn crypt 295.Fn crypt
296interface do not pull in the other components. 296interface do not pull in the other components.
297.Sh AUTHOR 297.Sh AUTHOR