diff options
author | aaron <> | 1999-07-09 13:35:15 +0000 |
---|---|---|
committer | aaron <> | 1999-07-09 13:35:15 +0000 |
commit | 0c53b543fa453740e95946808621acf8e057db80 (patch) | |
tree | e59db8f74612cfe765841e1ae490c8df9c2736b0 /src | |
parent | 25db34ffae569e9ff78fd3f5f6f621ee73da9a2f (diff) | |
download | openbsd-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.3 | 12 | ||||
-rw-r--r-- | src/lib/libc/crypt/blowfish.3 | 10 | ||||
-rw-r--r-- | src/lib/libc/crypt/crypt.3 | 44 |
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 |
49 | The | 49 | The |
50 | .Fn arc4random | 50 | .Fn arc4random |
51 | function uses the key stream generator employed by the | 51 | function uses the key stream generator employed by the |
52 | arc4 cipher, which uses 8*8 8 bit S-Boxes. The S-Boxes | 52 | arc4 cipher, which uses 8*8 8 bit S-Boxes. The S-Boxes |
53 | can be in about (2**1700) states. | 53 | can be in about (2**1700) states. |
54 | .Pp | 54 | .Pp |
55 | The | 55 | The |
56 | .Fn arc4random_stir | 56 | .Fn arc4random_stir |
57 | function reads data from | 57 | function reads data from |
58 | .Pa /dev/arandom | 58 | .Pa /dev/arandom |
59 | and uses it to permute the S-Boxes via | 59 | and uses it to permute the S-Boxes via |
60 | .Fn arc4random_addrandom . | 60 | .Fn arc4random_addrandom . |
61 | .Pp | 61 | .Pp |
62 | There is no need to call | 62 | There is no need to call |
63 | .Fn arc4random_stir | 63 | .Fn arc4random_stir |
64 | before using | 64 | before 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 |
74 | An algorithm call | 74 | An algorithm call |
75 | .Pa RC4 | 75 | .Pa RC4 |
76 | was designed by RSA Data Security, Inc. It was considered a trade secret, | 76 | was designed by RSA Data Security, Inc. It was considered a trade secret, |
77 | but not trademarked. | 77 | but not trademarked. |
78 | A clone of this was posted anonymously to the USENET and was confirmed to | 78 | A 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 | |||
81 | nothing about the situation. | 81 | nothing about the situation. |
82 | Since | 82 | Since |
83 | .Pa RC4 | 83 | .Pa RC4 |
84 | used to be a trade secret, the cipher is now referred to as | 84 | used 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 |
75 | is used for decrypting Blowfish encrypted blocks. | 75 | is used for decrypting Blowfish encrypted blocks. |
76 | .Pp | 76 | .Pp |
77 | The functions | 77 | The functions |
78 | .Fn blf_ecb_encrypt | 78 | .Fn blf_ecb_encrypt |
79 | and | 79 | and |
80 | .Fn blf_ecb_decrypt | 80 | .Fn blf_ecb_decrypt |
81 | are used for encrypting and decrypting octet streams in ECB mode. | 81 | are used for encrypting and decrypting octet streams in ECB mode. |
82 | The functions | 82 | The functions |
83 | .Fn blf_cbc_encrypt | 83 | .Fn blf_cbc_encrypt |
84 | and | 84 | and |
85 | .Fn blf_cbc_decrypt | 85 | .Fn blf_cbc_decrypt |
86 | are used for encrypting and decrypting octet streams in | 86 | are used for encrypting and decrypting octet streams in |
87 | Cipherblock Chaining Mode (CBC). | 87 | Cipherblock 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 |
97 | For | 97 | For |
98 | .Tn MD5 | 98 | .Tn MD5 |
99 | crypt the version number, | 99 | crypt the version number, |
100 | .Fa salt | 100 | .Fa salt |
101 | and the hashed password are separated | 101 | and the hashed password are separated |
102 | by the ``$'' character. The maximum length of a password is limited by | 102 | by the ``$'' character. The maximum length of a password is limited by |
103 | the length counter of the MD5 context, which is about | 103 | the length counter of the MD5 context, which is about |
104 | 2**64. A valid MD5 password entry looks like this: | 104 | 2**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 |
108 | The whole MD5 password string is passed as | 108 | The whole MD5 password string is passed as |
109 | .Fa setting | 109 | .Fa setting |
110 | for interpretation. | 110 | for interpretation. |
111 | .Ss "Blowfish" crypt: | 111 | .Ss "Blowfish" crypt: |
112 | .Pp | 112 | .Pp |
113 | The | 113 | The |
114 | .Tn Blowfish | 114 | .Tn Blowfish |
115 | version of crypt has 128 bits of | 115 | version of crypt has 128 bits of |
116 | .Fa salt | 116 | .Fa salt |
117 | in order to make building | 117 | in order to make building |
118 | dictionaries of common passwords space consuming. The initial state | 118 | dictionaries of common passwords space consuming. The initial state |
119 | of the | 119 | of the |
120 | .Tn Blowfish | 120 | .Tn Blowfish |
121 | cipher is expanded using the | 121 | cipher is expanded using the |
122 | .Fa salt | 122 | .Fa salt |
123 | and the | 123 | and the |
124 | .Fa password | 124 | .Fa password |
125 | repeating the process a variable number of rounds, which is encoded in | 125 | repeating the process a variable number of rounds, which is encoded in |
126 | the password string. The maximum password length is 72. The final Blowfish | 126 | the password string. The maximum password length is 72. The final Blowfish |
127 | password entry is created by encrypting | 127 | password entry is created by encrypting |
128 | the string ``OrpheanBeholderScryDoubt'' with the | 128 | the string ``OrpheanBeholderScryDoubt'' with the |
129 | .Tn Blowfish | 129 | .Tn Blowfish |
130 | state 64 times. | 130 | state 64 times. |
131 | .Pp | 131 | .Pp |
132 | The version number, the logarithm of the number of rounds and | 132 | The version number, the logarithm of the number of rounds and |
133 | the concatenation of salt and | 133 | the concatenation of salt and |
134 | hashed password are separated by the ``$'' character. An encoded ``8'' | 134 | hashed password are separated by the ``$'' character. An encoded ``8'' |
135 | would specify 256 rounds. | 135 | would 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 |
140 | The whole Blowfish password string is passed as | 140 | The whole Blowfish password string is passed as |
141 | .Fa setting | 141 | .Fa setting |
142 | for interpretation. | 142 | for interpretation. |
143 | .Ss "Traditional" crypt: | 143 | .Ss "Traditional" crypt: |
@@ -285,13 +285,13 @@ first appeared in | |||
285 | This library (FreeSec 1.0) was developed outside the United States of America | 285 | This library (FreeSec 1.0) was developed outside the United States of America |
286 | as an unencumbered replacement for the U.S.-only libcrypt encryption | 286 | as an unencumbered replacement for the U.S.-only libcrypt encryption |
287 | library. | 287 | library. |
288 | Programs linked against the | 288 | Programs linked against the |
289 | .Fn crypt | 289 | .Fn crypt |
290 | interface may be exported from the U.S.A. only if they use | 290 | interface may be exported from the U.S.A. only if they use |
291 | .Fn crypt | 291 | .Fn crypt |
292 | solely for authentication purposes and avoid use of | 292 | solely for authentication purposes and avoid use of |
293 | the other programmer interfaces listed above. Special care has been taken | 293 | the other programmer interfaces listed above. Special care has been taken |
294 | in the library so that programs which only use the | 294 | in the library so that programs which only use the |
295 | .Fn crypt | 295 | .Fn crypt |
296 | interface do not pull in the other components. | 296 | interface do not pull in the other components. |
297 | .Sh AUTHOR | 297 | .Sh AUTHOR |