des_crypt.3 (7f3dea244c40159a41ab22da77a434d7c5b5e85a) des_crypt.3 (c6ff3a1bf74d96278726113478b2c66884aab584)
1.\" @(#)des_crypt.3 2.1 88/08/11 4.0 RPCSRC; from 1.16 88/03/02 SMI;
2.\" $FreeBSD$
3.\"
4.TH DES_CRYPT 3 "6 October 1987"
5.SH NAME
6des_crypt, ecb_crypt, cbc_crypt, des_setparity \- fast DES encryption
7.SH SYNOPSIS
8.nf

--- 40 unchanged lines hidden (view full) ---

49.B cbc_crypt(\|)
50encrypts in
51.SM CBC
52(Cipher Block Chaining)
53mode, which chains together
54successive blocks.
55.SM CBC
56mode protects against insertions, deletions and
1.\" @(#)des_crypt.3 2.1 88/08/11 4.0 RPCSRC; from 1.16 88/03/02 SMI;
2.\" $FreeBSD$
3.\"
4.TH DES_CRYPT 3 "6 October 1987"
5.SH NAME
6des_crypt, ecb_crypt, cbc_crypt, des_setparity \- fast DES encryption
7.SH SYNOPSIS
8.nf

--- 40 unchanged lines hidden (view full) ---

49.B cbc_crypt(\|)
50encrypts in
51.SM CBC
52(Cipher Block Chaining)
53mode, which chains together
54successive blocks.
55.SM CBC
56mode protects against insertions, deletions and
57substitutions of blocks. Also, regularities in the clear text will
57substitutions of blocks.
58Also, regularities in the clear text will
58not appear in the cipher text.
59.LP
60Here is how to use these routines. The first parameter,
61.IR key ,
62is the 8-byte encryption key with parity.
63To set the key's parity, which for
64.SM DES
65is in the low bit of each byte, use
66.IR des_setparity .
67The second parameter,
68.IR data ,
59not appear in the cipher text.
60.LP
61Here is how to use these routines. The first parameter,
62.IR key ,
63is the 8-byte encryption key with parity.
64To set the key's parity, which for
65.SM DES
66is in the low bit of each byte, use
67.IR des_setparity .
68The second parameter,
69.IR data ,
69contains the data to be encrypted or decrypted. The
70contains the data to be encrypted or decrypted.
71The
70third parameter,
71.IR datalen ,
72is the length in bytes of
73.IR data ,
74which must be a multiple of 8. The fourth parameter,
75.IR mode ,
76is formed by
77.SM OR\s0'ing

--- 51 unchanged lines hidden ---
72third parameter,
73.IR datalen ,
74is the length in bytes of
75.IR data ,
76which must be a multiple of 8. The fourth parameter,
77.IR mode ,
78is formed by
79.SM OR\s0'ing

--- 51 unchanged lines hidden ---