version 1.7, 1999/07/02 15:18:37 |
version 1.8, 2000/06/16 16:27:32 |
|
|
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
.\" SUCH DAMAGE. |
.\" SUCH DAMAGE. |
.\" |
.\" |
.\" @(#)crypt.3 8.1.1.1 (Berkeley) 8/18/93 |
.\" @(#)crypt.3 8.2 (Berkeley) 12/11/93 |
.\" |
.\" |
.Dd August 18, 1993 |
.Dd December 11, 1993 |
.Dt CRYPT 3 |
.Dt CRYPT 3 |
.Os |
.Os |
.Sh NAME |
.Sh NAME |
Line 79 underscore (``_'') followed by 4 bytes o |
|
Line 79 underscore (``_'') followed by 4 bytes o |
|
of salt. |
of salt. |
Both the iteration |
Both the iteration |
.Fa count |
.Fa count |
and the |
and the |
.Fa salt |
.Fa salt |
are encoded with 6 bits per character, least significant bits first. |
are encoded with 6 bits per character, least significant bits first. |
The values 0 to 63 are encoded by the characters ``./0-9A-Za-z'', |
The values 0 to 63 are encoded by the characters ``./0-9A-Za-z'', |
|
|
is 0, |
is 0, |
the argument |
the argument |
.Fa block |
.Fa block |
is encrypted, otherwise it fails. |
is encrypted, otherwise it |
The encryption is returned in the original |
is decrypted. |
|
The encryption or decryption is returned in the original |
array |
array |
.Fa block |
.Fa block |
after using the |
after using the |
Line 194 significant bit in each character is ign |
|
Line 195 significant bit in each character is ign |
|
character are concatenated to yield a 56-bit key. |
character are concatenated to yield a 56-bit key. |
The function |
The function |
.Fn des_cipher |
.Fn des_cipher |
encrypts the 64-bits stored in the 8 characters at |
encrypts (or decrypts if |
|
.Fa count |
|
is negative) the 64-bits stored in the 8 characters at |
.Fa in |
.Fa in |
using |
using |
.Xr abs 3 |
.Xr abs 3 |