des.3 (206048) | des.3 (215698) |
---|---|
1.\" Automatically generated by Pod::Man v1.37, Pod::Parser v1.37 | 1.\" Automatically generated by Pod::Man 2.22 (Pod::Simple 3.07) |
2.\" 3.\" Standard preamble: 4.\" ======================================================================== | 2.\" 3.\" Standard preamble: 4.\" ======================================================================== |
5.de Sh \" Subsection heading 6.br 7.if t .Sp 8.ne 5 9.PP 10\fB\\$1\fR 11.PP 12.. | |
13.de Sp \" Vertical space (when we can't use .PP) 14.if t .sp .5v 15.if n .sp 16.. 17.de Vb \" Begin verbatim text 18.ft CW 19.nf 20.ne \\$1 21.. 22.de Ve \" End verbatim text 23.ft R 24.fi 25.. 26.\" Set up some character translations and predefined strings. \*(-- will 27.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left | 5.de Sp \" Vertical space (when we can't use .PP) 6.if t .sp .5v 7.if n .sp 8.. 9.de Vb \" Begin verbatim text 10.ft CW 11.nf 12.ne \\$1 13.. 14.de Ve \" End verbatim text 15.ft R 16.fi 17.. 18.\" Set up some character translations and predefined strings. \*(-- will 19.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left |
28.\" double quote, and \*(R" will give a right double quote. | will give a 29.\" real vertical bar. \*(C+ will give a nicer C++. Capital omega is used to 30.\" do unbreakable dashes and therefore won't be available. \*(C` and \*(C' 31.\" expand to `' in nroff, nothing in troff, for use with C<>. 32.tr \(*W-|\(bv\*(Tr | 20.\" double quote, and \*(R" will give a right double quote. \*(C+ will 21.\" give a nicer C++. Capital omega is used to do unbreakable dashes and 22.\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, 23.\" nothing in troff, for use with C<>. 24.tr \(*W- |
33.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' 34.ie n \{\ 35. ds -- \(*W- 36. ds PI pi 37. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch 38. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch 39. ds L" "" 40. ds R" "" 41. ds C` "" 42. ds C' "" 43'br\} 44.el\{\ 45. ds -- \|\(em\| 46. ds PI \(*p 47. ds L" `` 48. ds R" '' 49'br\} 50.\" | 25.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' 26.ie n \{\ 27. ds -- \(*W- 28. ds PI pi 29. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch 30. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch 31. ds L" "" 32. ds R" "" 33. ds C` "" 34. ds C' "" 35'br\} 36.el\{\ 37. ds -- \|\(em\| 38. ds PI \(*p 39. ds L" `` 40. ds R" '' 41'br\} 42.\" |
43.\" Escape single quotes in literal strings from groff's Unicode transform. 44.ie \n(.g .ds Aq \(aq 45.el .ds Aq ' 46.\" |
|
51.\" If the F register is turned on, we'll generate index entries on stderr for | 47.\" If the F register is turned on, we'll generate index entries on stderr for |
52.\" titles (.TH), headers (.SH), subsections (.Sh), items (.Ip), and index | 48.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index |
53.\" entries marked with X<> in POD. Of course, you'll have to process the 54.\" output yourself in some meaningful fashion. | 49.\" entries marked with X<> in POD. Of course, you'll have to process the 50.\" output yourself in some meaningful fashion. |
55.if \nF \{\ | 51.ie \nF \{\ |
56. de IX 57. tm Index:\\$1\t\\n%\t"\\$2" 58.. 59. nr % 0 60. rr F 61.\} | 52. de IX 53. tm Index:\\$1\t\\n%\t"\\$2" 54.. 55. nr % 0 56. rr F 57.\} |
58.el \{\ 59. de IX 60.. 61.\} |
|
62.\" | 62.\" |
63.\" For nroff, turn off justification. Always turn off hyphenation; it makes 64.\" way too many mistakes in technical documents. 65.hy 0 66.if n .na 67.\" | |
68.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2). 69.\" Fear. Run. Save yourself. No user-serviceable parts. 70. \" fudge factors for nroff and troff 71.if n \{\ 72. ds #H 0 73. ds #V .8m 74. ds #F .3m 75. ds #[ \f1 --- 48 unchanged lines hidden (view full) --- 124. ds Th \o'LP' 125. ds ae ae 126. ds Ae AE 127.\} 128.rm #[ #] #H #V #F C 129.\" ======================================================================== 130.\" 131.IX Title "des 3" | 63.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2). 64.\" Fear. Run. Save yourself. No user-serviceable parts. 65. \" fudge factors for nroff and troff 66.if n \{\ 67. ds #H 0 68. ds #V .8m 69. ds #F .3m 70. ds #[ \f1 --- 48 unchanged lines hidden (view full) --- 119. ds Th \o'LP' 120. ds ae ae 121. ds Ae AE 122.\} 123.rm #[ #] #H #V #F C 124.\" ======================================================================== 125.\" 126.IX Title "des 3" |
132.TH des 3 "2010-03-24" "0.9.8n" "OpenSSL" | 127.TH des 3 "2010-11-16" "0.9.8p" "OpenSSL" 128.\" For nroff, turn off justification. Always turn off hyphenation; it makes 129.\" way too many mistakes in technical documents. 130.if n .ad l 131.nh |
133.SH "NAME" 134DES_random_key, DES_set_key, DES_key_sched, DES_set_key_checked, 135DES_set_key_unchecked, DES_set_odd_parity, DES_is_weak_key, 136DES_ecb_encrypt, DES_ecb2_encrypt, DES_ecb3_encrypt, DES_ncbc_encrypt, 137DES_cfb_encrypt, DES_ofb_encrypt, DES_pcbc_encrypt, DES_cfb64_encrypt, 138DES_ofb64_encrypt, DES_xcbc_encrypt, DES_ede2_cbc_encrypt, 139DES_ede2_cfb64_encrypt, DES_ede2_ofb64_encrypt, DES_ede3_cbc_encrypt, 140DES_ede3_cbcm_encrypt, DES_ede3_cfb64_encrypt, DES_ede3_ofb64_encrypt, 141DES_cbc_cksum, DES_quad_cksum, DES_string_to_key, DES_string_to_2keys, 142DES_fcrypt, DES_crypt, DES_enc_read, DES_enc_write \- DES encryption 143.SH "SYNOPSIS" 144.IX Header "SYNOPSIS" 145.Vb 1 146\& #include <openssl/des.h> | 132.SH "NAME" 133DES_random_key, DES_set_key, DES_key_sched, DES_set_key_checked, 134DES_set_key_unchecked, DES_set_odd_parity, DES_is_weak_key, 135DES_ecb_encrypt, DES_ecb2_encrypt, DES_ecb3_encrypt, DES_ncbc_encrypt, 136DES_cfb_encrypt, DES_ofb_encrypt, DES_pcbc_encrypt, DES_cfb64_encrypt, 137DES_ofb64_encrypt, DES_xcbc_encrypt, DES_ede2_cbc_encrypt, 138DES_ede2_cfb64_encrypt, DES_ede2_ofb64_encrypt, DES_ede3_cbc_encrypt, 139DES_ede3_cbcm_encrypt, DES_ede3_cfb64_encrypt, DES_ede3_ofb64_encrypt, 140DES_cbc_cksum, DES_quad_cksum, DES_string_to_key, DES_string_to_2keys, 141DES_fcrypt, DES_crypt, DES_enc_read, DES_enc_write \- DES encryption 142.SH "SYNOPSIS" 143.IX Header "SYNOPSIS" 144.Vb 1 145\& #include <openssl/des.h> |
147.Ve 148.PP 149.Vb 1 | 146\& |
150\& void DES_random_key(DES_cblock *ret); | 147\& void DES_random_key(DES_cblock *ret); |
151.Ve 152.PP 153.Vb 6 | 148\& |
154\& int DES_set_key(const_DES_cblock *key, DES_key_schedule *schedule); 155\& int DES_key_sched(const_DES_cblock *key, DES_key_schedule *schedule); 156\& int DES_set_key_checked(const_DES_cblock *key, 157\& DES_key_schedule *schedule); 158\& void DES_set_key_unchecked(const_DES_cblock *key, 159\& DES_key_schedule *schedule); | 149\& int DES_set_key(const_DES_cblock *key, DES_key_schedule *schedule); 150\& int DES_key_sched(const_DES_cblock *key, DES_key_schedule *schedule); 151\& int DES_set_key_checked(const_DES_cblock *key, 152\& DES_key_schedule *schedule); 153\& void DES_set_key_unchecked(const_DES_cblock *key, 154\& DES_key_schedule *schedule); |
160.Ve 161.PP 162.Vb 2 | 155\& |
163\& void DES_set_odd_parity(DES_cblock *key); 164\& int DES_is_weak_key(const_DES_cblock *key); | 156\& void DES_set_odd_parity(DES_cblock *key); 157\& int DES_is_weak_key(const_DES_cblock *key); |
165.Ve 166.PP 167.Vb 7 | 158\& |
168\& void DES_ecb_encrypt(const_DES_cblock *input, DES_cblock *output, 169\& DES_key_schedule *ks, int enc); 170\& void DES_ecb2_encrypt(const_DES_cblock *input, DES_cblock *output, 171\& DES_key_schedule *ks1, DES_key_schedule *ks2, int enc); 172\& void DES_ecb3_encrypt(const_DES_cblock *input, DES_cblock *output, 173\& DES_key_schedule *ks1, DES_key_schedule *ks2, 174\& DES_key_schedule *ks3, int enc); | 159\& void DES_ecb_encrypt(const_DES_cblock *input, DES_cblock *output, 160\& DES_key_schedule *ks, int enc); 161\& void DES_ecb2_encrypt(const_DES_cblock *input, DES_cblock *output, 162\& DES_key_schedule *ks1, DES_key_schedule *ks2, int enc); 163\& void DES_ecb3_encrypt(const_DES_cblock *input, DES_cblock *output, 164\& DES_key_schedule *ks1, DES_key_schedule *ks2, 165\& DES_key_schedule *ks3, int enc); |
175.Ve 176.PP 177.Vb 18 | 166\& |
178\& void DES_ncbc_encrypt(const unsigned char *input, unsigned char *output, 179\& long length, DES_key_schedule *schedule, DES_cblock *ivec, 180\& int enc); 181\& void DES_cfb_encrypt(const unsigned char *in, unsigned char *out, 182\& int numbits, long length, DES_key_schedule *schedule, 183\& DES_cblock *ivec, int enc); 184\& void DES_ofb_encrypt(const unsigned char *in, unsigned char *out, 185\& int numbits, long length, DES_key_schedule *schedule, 186\& DES_cblock *ivec); 187\& void DES_pcbc_encrypt(const unsigned char *input, unsigned char *output, 188\& long length, DES_key_schedule *schedule, DES_cblock *ivec, 189\& int enc); 190\& void DES_cfb64_encrypt(const unsigned char *in, unsigned char *out, 191\& long length, DES_key_schedule *schedule, DES_cblock *ivec, 192\& int *num, int enc); 193\& void DES_ofb64_encrypt(const unsigned char *in, unsigned char *out, 194\& long length, DES_key_schedule *schedule, DES_cblock *ivec, 195\& int *num); | 167\& void DES_ncbc_encrypt(const unsigned char *input, unsigned char *output, 168\& long length, DES_key_schedule *schedule, DES_cblock *ivec, 169\& int enc); 170\& void DES_cfb_encrypt(const unsigned char *in, unsigned char *out, 171\& int numbits, long length, DES_key_schedule *schedule, 172\& DES_cblock *ivec, int enc); 173\& void DES_ofb_encrypt(const unsigned char *in, unsigned char *out, 174\& int numbits, long length, DES_key_schedule *schedule, 175\& DES_cblock *ivec); 176\& void DES_pcbc_encrypt(const unsigned char *input, unsigned char *output, 177\& long length, DES_key_schedule *schedule, DES_cblock *ivec, 178\& int enc); 179\& void DES_cfb64_encrypt(const unsigned char *in, unsigned char *out, 180\& long length, DES_key_schedule *schedule, DES_cblock *ivec, 181\& int *num, int enc); 182\& void DES_ofb64_encrypt(const unsigned char *in, unsigned char *out, 183\& long length, DES_key_schedule *schedule, DES_cblock *ivec, 184\& int *num); |
196.Ve 197.PP 198.Vb 3 | 185\& |
199\& void DES_xcbc_encrypt(const unsigned char *input, unsigned char *output, 200\& long length, DES_key_schedule *schedule, DES_cblock *ivec, 201\& const_DES_cblock *inw, const_DES_cblock *outw, int enc); | 186\& void DES_xcbc_encrypt(const unsigned char *input, unsigned char *output, 187\& long length, DES_key_schedule *schedule, DES_cblock *ivec, 188\& const_DES_cblock *inw, const_DES_cblock *outw, int enc); |
202.Ve 203.PP 204.Vb 9 | 189\& |
205\& void DES_ede2_cbc_encrypt(const unsigned char *input, 206\& unsigned char *output, long length, DES_key_schedule *ks1, 207\& DES_key_schedule *ks2, DES_cblock *ivec, int enc); 208\& void DES_ede2_cfb64_encrypt(const unsigned char *in, 209\& unsigned char *out, long length, DES_key_schedule *ks1, 210\& DES_key_schedule *ks2, DES_cblock *ivec, int *num, int enc); 211\& void DES_ede2_ofb64_encrypt(const unsigned char *in, 212\& unsigned char *out, long length, DES_key_schedule *ks1, 213\& DES_key_schedule *ks2, DES_cblock *ivec, int *num); | 190\& void DES_ede2_cbc_encrypt(const unsigned char *input, 191\& unsigned char *output, long length, DES_key_schedule *ks1, 192\& DES_key_schedule *ks2, DES_cblock *ivec, int enc); 193\& void DES_ede2_cfb64_encrypt(const unsigned char *in, 194\& unsigned char *out, long length, DES_key_schedule *ks1, 195\& DES_key_schedule *ks2, DES_cblock *ivec, int *num, int enc); 196\& void DES_ede2_ofb64_encrypt(const unsigned char *in, 197\& unsigned char *out, long length, DES_key_schedule *ks1, 198\& DES_key_schedule *ks2, DES_cblock *ivec, int *num); |
214.Ve 215.PP 216.Vb 15 | 199\& |
217\& void DES_ede3_cbc_encrypt(const unsigned char *input, 218\& unsigned char *output, long length, DES_key_schedule *ks1, 219\& DES_key_schedule *ks2, DES_key_schedule *ks3, DES_cblock *ivec, 220\& int enc); 221\& void DES_ede3_cbcm_encrypt(const unsigned char *in, unsigned char *out, 222\& long length, DES_key_schedule *ks1, DES_key_schedule *ks2, 223\& DES_key_schedule *ks3, DES_cblock *ivec1, DES_cblock *ivec2, 224\& int enc); 225\& void DES_ede3_cfb64_encrypt(const unsigned char *in, unsigned char *out, 226\& long length, DES_key_schedule *ks1, DES_key_schedule *ks2, 227\& DES_key_schedule *ks3, DES_cblock *ivec, int *num, int enc); 228\& void DES_ede3_ofb64_encrypt(const unsigned char *in, unsigned char *out, 229\& long length, DES_key_schedule *ks1, 230\& DES_key_schedule *ks2, DES_key_schedule *ks3, 231\& DES_cblock *ivec, int *num); | 200\& void DES_ede3_cbc_encrypt(const unsigned char *input, 201\& unsigned char *output, long length, DES_key_schedule *ks1, 202\& DES_key_schedule *ks2, DES_key_schedule *ks3, DES_cblock *ivec, 203\& int enc); 204\& void DES_ede3_cbcm_encrypt(const unsigned char *in, unsigned char *out, 205\& long length, DES_key_schedule *ks1, DES_key_schedule *ks2, 206\& DES_key_schedule *ks3, DES_cblock *ivec1, DES_cblock *ivec2, 207\& int enc); 208\& void DES_ede3_cfb64_encrypt(const unsigned char *in, unsigned char *out, 209\& long length, DES_key_schedule *ks1, DES_key_schedule *ks2, 210\& DES_key_schedule *ks3, DES_cblock *ivec, int *num, int enc); 211\& void DES_ede3_ofb64_encrypt(const unsigned char *in, unsigned char *out, 212\& long length, DES_key_schedule *ks1, 213\& DES_key_schedule *ks2, DES_key_schedule *ks3, 214\& DES_cblock *ivec, int *num); |
232.Ve 233.PP 234.Vb 8 | 215\& |
235\& DES_LONG DES_cbc_cksum(const unsigned char *input, DES_cblock *output, 236\& long length, DES_key_schedule *schedule, 237\& const_DES_cblock *ivec); 238\& DES_LONG DES_quad_cksum(const unsigned char *input, DES_cblock output[], 239\& long length, int out_count, DES_cblock *seed); 240\& void DES_string_to_key(const char *str, DES_cblock *key); 241\& void DES_string_to_2keys(const char *str, DES_cblock *key1, 242\& DES_cblock *key2); | 216\& DES_LONG DES_cbc_cksum(const unsigned char *input, DES_cblock *output, 217\& long length, DES_key_schedule *schedule, 218\& const_DES_cblock *ivec); 219\& DES_LONG DES_quad_cksum(const unsigned char *input, DES_cblock output[], 220\& long length, int out_count, DES_cblock *seed); 221\& void DES_string_to_key(const char *str, DES_cblock *key); 222\& void DES_string_to_2keys(const char *str, DES_cblock *key1, 223\& DES_cblock *key2); |
243.Ve 244.PP 245.Vb 2 | 224\& |
246\& char *DES_fcrypt(const char *buf, const char *salt, char *ret); 247\& char *DES_crypt(const char *buf, const char *salt); | 225\& char *DES_fcrypt(const char *buf, const char *salt, char *ret); 226\& char *DES_crypt(const char *buf, const char *salt); |
248.Ve 249.PP 250.Vb 4 | 227\& |
251\& int DES_enc_read(int fd, void *buf, int len, DES_key_schedule *sched, 252\& DES_cblock *iv); 253\& int DES_enc_write(int fd, const void *buf, int len, 254\& DES_key_schedule *sched, DES_cblock *iv); 255.Ve 256.SH "DESCRIPTION" 257.IX Header "DESCRIPTION" 258This library contains a fast implementation of the \s-1DES\s0 encryption --- 15 unchanged lines hidden (view full) --- 274\&\fIDES_set_key_checked()\fR or \fIDES_set_key_unchecked()\fR function. 275.PP 276\&\fIDES_set_key_checked()\fR will check that the key passed is of odd parity 277and is not a week or semi-weak key. If the parity is wrong, then \-1 278is returned. If the key is a weak key, then \-2 is returned. If an 279error is returned, the key schedule is not generated. 280.PP 281\&\fIDES_set_key()\fR works like | 228\& int DES_enc_read(int fd, void *buf, int len, DES_key_schedule *sched, 229\& DES_cblock *iv); 230\& int DES_enc_write(int fd, const void *buf, int len, 231\& DES_key_schedule *sched, DES_cblock *iv); 232.Ve 233.SH "DESCRIPTION" 234.IX Header "DESCRIPTION" 235This library contains a fast implementation of the \s-1DES\s0 encryption --- 15 unchanged lines hidden (view full) --- 251\&\fIDES_set_key_checked()\fR or \fIDES_set_key_unchecked()\fR function. 252.PP 253\&\fIDES_set_key_checked()\fR will check that the key passed is of odd parity 254and is not a week or semi-weak key. If the parity is wrong, then \-1 255is returned. If the key is a weak key, then \-2 is returned. If an 256error is returned, the key schedule is not generated. 257.PP 258\&\fIDES_set_key()\fR works like |
282\&\fIDES_set_key_checked()\fR if the \fIDES_check_key\fR flag is non\-zero, | 259\&\fIDES_set_key_checked()\fR if the \fIDES_check_key\fR flag is non-zero, |
283otherwise like \fIDES_set_key_unchecked()\fR. These functions are available 284for compatibility; it is recommended to use a function that does not 285depend on a global variable. 286.PP 287\&\fIDES_set_odd_parity()\fR sets the parity of the passed \fIkey\fR to odd. 288.PP 289\&\fIDES_is_weak_key()\fR returns 1 is the passed key is a weak key, 0 if it 290is ok. The probability that a randomly generated key is weak is --- 20 unchanged lines hidden (view full) --- 311of brute force breaking of \s-1DES\s0 and has the advantage of if \fIks1\fR, 312\&\fIks2\fR and \fIks3\fR are the same, it is equivalent to just encryption 313using \s-1ECB\s0 mode and \fIks1\fR as the key. 314.PP 315The macro \fIDES_ecb2_encrypt()\fR is provided to perform two-key Triple-DES 316encryption by using \fIks1\fR for the final encryption. 317.PP 318\&\fIDES_ncbc_encrypt()\fR encrypts/decrypts using the \fIcipher-block-chaining\fR | 260otherwise like \fIDES_set_key_unchecked()\fR. These functions are available 261for compatibility; it is recommended to use a function that does not 262depend on a global variable. 263.PP 264\&\fIDES_set_odd_parity()\fR sets the parity of the passed \fIkey\fR to odd. 265.PP 266\&\fIDES_is_weak_key()\fR returns 1 is the passed key is a weak key, 0 if it 267is ok. The probability that a randomly generated key is weak is --- 20 unchanged lines hidden (view full) --- 288of brute force breaking of \s-1DES\s0 and has the advantage of if \fIks1\fR, 289\&\fIks2\fR and \fIks3\fR are the same, it is equivalent to just encryption 290using \s-1ECB\s0 mode and \fIks1\fR as the key. 291.PP 292The macro \fIDES_ecb2_encrypt()\fR is provided to perform two-key Triple-DES 293encryption by using \fIks1\fR for the final encryption. 294.PP 295\&\fIDES_ncbc_encrypt()\fR encrypts/decrypts using the \fIcipher-block-chaining\fR |
319(\s-1CBC\s0) mode of \s-1DES\s0. If the \fIencrypt\fR argument is non\-zero, the | 296(\s-1CBC\s0) mode of \s-1DES\s0. If the \fIencrypt\fR argument is non-zero, the |
320routine cipher-block-chain encrypts the cleartext data pointed to by 321the \fIinput\fR argument into the ciphertext pointed to by the \fIoutput\fR 322argument, using the key schedule provided by the \fIschedule\fR argument, 323and initialization vector provided by the \fIivec\fR argument. If the 324\&\fIlength\fR argument is not an integral multiple of eight bytes, the 325last block is copied to a temporary area and zero filled. The output 326is always an integral multiple of eight bytes. 327.PP --- 40 unchanged lines hidden (view full) --- 368be passed to the next call to this function. Since this function runs 369a complete \s-1DES\s0 \s-1ECB\s0 encryption per numbits, this function is only 370suggested for use when sending small numbers of characters. 371.PP 372\&\fIDES_ofb64_encrypt()\fR is the same as \fIDES_cfb64_encrypt()\fR using Output 373Feed Back mode. 374.PP 375\&\fIDES_ede3_ofb64_encrypt()\fR and \fIDES_ede2_ofb64_encrypt()\fR is the same as | 297routine cipher-block-chain encrypts the cleartext data pointed to by 298the \fIinput\fR argument into the ciphertext pointed to by the \fIoutput\fR 299argument, using the key schedule provided by the \fIschedule\fR argument, 300and initialization vector provided by the \fIivec\fR argument. If the 301\&\fIlength\fR argument is not an integral multiple of eight bytes, the 302last block is copied to a temporary area and zero filled. The output 303is always an integral multiple of eight bytes. 304.PP --- 40 unchanged lines hidden (view full) --- 345be passed to the next call to this function. Since this function runs 346a complete \s-1DES\s0 \s-1ECB\s0 encryption per numbits, this function is only 347suggested for use when sending small numbers of characters. 348.PP 349\&\fIDES_ofb64_encrypt()\fR is the same as \fIDES_cfb64_encrypt()\fR using Output 350Feed Back mode. 351.PP 352\&\fIDES_ede3_ofb64_encrypt()\fR and \fIDES_ede2_ofb64_encrypt()\fR is the same as |
376\&\fIDES_ofb64_encrypt()\fR, using Triple\-DES. | 353\&\fIDES_ofb64_encrypt()\fR, using Triple-DES. |
377.PP 378The following functions are included in the \s-1DES\s0 library for 379compatibility with the \s-1MIT\s0 Kerberos library. 380.PP 381\&\fIDES_cbc_cksum()\fR produces an 8 byte checksum based on the input stream 382(via \s-1CBC\s0 encryption). The last 4 bytes of the checksum are returned 383and the complete 8 bytes are placed in \fIoutput\fR. This function is 384used by Kerberos v4. Other applications should use 385\&\fIEVP_DigestInit\fR\|(3) etc. instead. 386.PP 387\&\fIDES_quad_cksum()\fR is a Kerberos v4 function. It returns a 4 byte 388checksum from the input bytes. The algorithm can be iterated over the 389input, depending on \fIout_count\fR, 1, 2, 3 or 4 times. If \fIoutput\fR is | 354.PP 355The following functions are included in the \s-1DES\s0 library for 356compatibility with the \s-1MIT\s0 Kerberos library. 357.PP 358\&\fIDES_cbc_cksum()\fR produces an 8 byte checksum based on the input stream 359(via \s-1CBC\s0 encryption). The last 4 bytes of the checksum are returned 360and the complete 8 bytes are placed in \fIoutput\fR. This function is 361used by Kerberos v4. Other applications should use 362\&\fIEVP_DigestInit\fR\|(3) etc. instead. 363.PP 364\&\fIDES_quad_cksum()\fR is a Kerberos v4 function. It returns a 4 byte 365checksum from the input bytes. The algorithm can be iterated over the 366input, depending on \fIout_count\fR, 1, 2, 3 or 4 times. If \fIoutput\fR is |
390non\-NULL, the 8 bytes generated by each pass are written into | 367non-NULL, the 8 bytes generated by each pass are written into |
391\&\fIoutput\fR. 392.PP 393The following are DES-based transformations: 394.PP 395\&\fIDES_fcrypt()\fR is a fast version of the Unix \fIcrypt\fR\|(3) function. This 396version takes only a small amount of space relative to other fast 397\&\fIcrypt()\fR implementations. This is different to the normal crypt in 398that the third parameter is the buffer that the return value is --- 103 unchanged lines hidden --- | 368\&\fIoutput\fR. 369.PP 370The following are DES-based transformations: 371.PP 372\&\fIDES_fcrypt()\fR is a fast version of the Unix \fIcrypt\fR\|(3) function. This 373version takes only a small amount of space relative to other fast 374\&\fIcrypt()\fR implementations. This is different to the normal crypt in 375that the third parameter is the buffer that the return value is --- 103 unchanged lines hidden --- |