1.\" @(#)des_crypt.3 2.1 88/08/11 4.0 RPCSRC; from 1.16 88/03/02 SMI;
| 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 84306 2001-10-01 16:09:29Z ru $
| 2.\" $FreeBSD: head/lib/libc/rpc/des_crypt.3 108037 2002-12-18 12:45:11Z ru $
|
3.\" 4.Dd October 6, 1987 5.Dt DES_CRYPT 3 6.Os 7.Sh NAME 8.Nm des_crypt , ecb_crypt , cbc_crypt , des_setparity 9.Nd "fast DES encryption" 10.Sh LIBRARY 11.Lb libc 12.Sh SYNOPSIS 13.In rpc/des_crypt.h 14.Ft int 15.Fn ecb_crypt "char *key" "char *data" "unsigned datalen" "unsigned mode" 16.Ft int 17.Fn cbc_crypt "char *key" "char *data" "unsigned datalen" "unsigned mode" "char *ivec" 18.Ft void 19.Fn des_setparity "char *key" 20.Sh DESCRIPTION
| 3.\" 4.Dd October 6, 1987 5.Dt DES_CRYPT 3 6.Os 7.Sh NAME 8.Nm des_crypt , ecb_crypt , cbc_crypt , des_setparity 9.Nd "fast DES encryption" 10.Sh LIBRARY 11.Lb libc 12.Sh SYNOPSIS 13.In rpc/des_crypt.h 14.Ft int 15.Fn ecb_crypt "char *key" "char *data" "unsigned datalen" "unsigned mode" 16.Ft int 17.Fn cbc_crypt "char *key" "char *data" "unsigned datalen" "unsigned mode" "char *ivec" 18.Ft void 19.Fn des_setparity "char *key" 20.Sh DESCRIPTION
|
| 21The
|
21.Fn ecb_crypt 22and 23.Fn cbc_crypt
| 22.Fn ecb_crypt 23and 24.Fn cbc_crypt
|
| 25functions
|
24implement the 25.Tn NBS 26.Tn DES 27(Data Encryption Standard). 28These routines are faster and more general purpose than 29.Xr crypt 3 . 30They also are able to utilize 31.Tn DES 32hardware if it is available.
| 26implement the 27.Tn NBS 28.Tn DES 29(Data Encryption Standard). 30These routines are faster and more general purpose than 31.Xr crypt 3 . 32They also are able to utilize 33.Tn DES 34hardware if it is available.
|
| 35The
|
33.Fn ecb_crypt
| 36.Fn ecb_crypt
|
| 37function
|
34encrypts in 35.Tn ECB 36(Electronic Code Book) 37mode, which encrypts blocks of data independently.
| 38encrypts in 39.Tn ECB 40(Electronic Code Book) 41mode, which encrypts blocks of data independently.
|
| 42The
|
38.Fn cbc_crypt
| 43.Fn cbc_crypt
|
| 44function
|
39encrypts in 40.Tn CBC 41(Cipher Block Chaining) 42mode, which chains together 43successive blocks. 44.Tn CBC 45mode protects against insertions, deletions and 46substitutions of blocks.
--- 77 unchanged lines hidden --- | 45encrypts in 46.Tn CBC 47(Cipher Block Chaining) 48mode, which chains together 49successive blocks. 50.Tn CBC 51mode protects against insertions, deletions and 52substitutions of blocks.
--- 77 unchanged lines hidden --- |