summaryrefslogtreecommitdiff
path: root/src
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
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 'src')
-rw-r--r--src/lib/libc/crypt/arc4random.312
-rw-r--r--src/lib/libc/crypt/blowfish.310
-rw-r--r--src/lib/libc/crypt/crypt.344
3 files changed, 33 insertions, 33 deletions
diff --git a/src/lib/libc/crypt/arc4random.3 b/src/lib/libc/crypt/arc4random.3
index 988de1d0f6..b10115c4d8 100644
--- a/src/lib/libc/crypt/arc4random.3
+++ b/src/lib/libc/crypt/arc4random.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: arc4random.3,v 1.10 1999/07/04 18:59:42 aaron Exp $ 1.\" $OpenBSD: arc4random.3,v 1.11 1999/07/09 13:35:15 aaron Exp $
2.\" Copyright 1997 Niels Provos <provos@physnet.uni-hamburg.de> 2.\" Copyright 1997 Niels Provos <provos@physnet.uni-hamburg.de>
3.\" All rights reserved. 3.\" All rights reserved.
4.\" 4.\"
@@ -47,19 +47,19 @@
47.Fn arc4random_addrandom "u_char *dat" "int datlen" 47.Fn arc4random_addrandom "u_char *dat" "int datlen"
48.Sh DESCRIPTION 48.Sh DESCRIPTION
49The 49The
50.Fn arc4random 50.Fn arc4random
51function uses the key stream generator employed by the 51function uses the key stream generator employed by the
52arc4 cipher, which uses 8*8 8 bit S-Boxes. The S-Boxes 52arc4 cipher, which uses 8*8 8 bit S-Boxes. The S-Boxes
53can be in about (2**1700) states. 53can be in about (2**1700) states.
54.Pp 54.Pp
55The 55The
56.Fn arc4random_stir 56.Fn arc4random_stir
57function reads data from 57function reads data from
58.Pa /dev/arandom 58.Pa /dev/arandom
59and uses it to permute the S-Boxes via 59and uses it to permute the S-Boxes via
60.Fn arc4random_addrandom . 60.Fn arc4random_addrandom .
61.Pp 61.Pp
62There is no need to call 62There is no need to call
63.Fn arc4random_stir 63.Fn arc4random_stir
64before using 64before using
65.Fn arc4random , 65.Fn arc4random ,
@@ -72,7 +72,7 @@ automatically initializes itself.
72.Xr random 3 72.Xr random 3
73.Sh HISTORY 73.Sh HISTORY
74An algorithm call 74An algorithm call
75.Pa RC4 75.Pa RC4
76was designed by RSA Data Security, Inc. It was considered a trade secret, 76was designed by RSA Data Security, Inc. It was considered a trade secret,
77but not trademarked. 77but not trademarked.
78A clone of this was posted anonymously to the USENET and was confirmed to 78A clone of this was posted anonymously to the USENET and was confirmed to
@@ -81,5 +81,5 @@ Because of the trade secret situation, RSA Data Security, Inc. can do
81nothing about the situation. 81nothing about the situation.
82Since 82Since
83.Pa RC4 83.Pa RC4
84used to be a trade secret, the cipher is now referred to as 84used to be a trade secret, the cipher is now referred to as
85.Pa ARC4 . 85.Pa ARC4 .
diff --git a/src/lib/libc/crypt/blowfish.3 b/src/lib/libc/crypt/blowfish.3
index 0ab44d21d2..647c8cb6b2 100644
--- a/src/lib/libc/crypt/blowfish.3
+++ b/src/lib/libc/crypt/blowfish.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: blowfish.3,v 1.4 1999/05/23 14:10:58 aaron Exp $ 1.\" $OpenBSD: blowfish.3,v 1.5 1999/07/09 13:35:15 aaron Exp $
2.\" Copyright 1997 Niels Provos <provos@physnet.uni-hamburg.de> 2.\" Copyright 1997 Niels Provos <provos@physnet.uni-hamburg.de>
3.\" All rights reserved. 3.\" All rights reserved.
4.\" 4.\"
@@ -74,15 +74,15 @@ must be even.
74.Fn blf_dec 74.Fn blf_dec
75is used for decrypting Blowfish encrypted blocks. 75is used for decrypting Blowfish encrypted blocks.
76.Pp 76.Pp
77The functions 77The functions
78.Fn blf_ecb_encrypt 78.Fn blf_ecb_encrypt
79and 79and
80.Fn blf_ecb_decrypt 80.Fn blf_ecb_decrypt
81are used for encrypting and decrypting octet streams in ECB mode. 81are used for encrypting and decrypting octet streams in ECB mode.
82The functions 82The functions
83.Fn blf_cbc_encrypt 83.Fn blf_cbc_encrypt
84and 84and
85.Fn blf_cbc_decrypt 85.Fn blf_cbc_decrypt
86are used for encrypting and decrypting octet streams in 86are used for encrypting and decrypting octet streams in
87Cipherblock Chaining Mode (CBC). 87Cipherblock Chaining Mode (CBC).
88.Pp 88.Pp
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