Deleted Added
sdiff udiff text old ( 50476 ) new ( 57686 )
full compact
1.\" @(#)des_crypt.3 2.1 88/08/11 4.0 RPCSRC; from 1.16 88/03/02 SMI;
2.\" $FreeBSD: head/lib/libc/rpc/des_crypt.3 57686 2000-03-02 09:14:21Z sheldonh $
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
9.B #include <des_crypt.h>
10.LP

--- 38 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.
58Also, regularities in the clear text will
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 ,
70contains the data to be encrypted or decrypted.
71The
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 ---