+2001-05-31 Ezra Peisach <epeisach@mit.edu>
+
+ * des.c (des_ecb_encrypt): Do not use a variable named "encrypt".
+ * enc_dec.c (des_cbc_encrypt): Likewise.
+ * pcbc_encrypt.c (des_pcbc_encrypt): Likewise.
+
2001-04-26 Ken Raeburn <raeburn@mit.edu>
* configure.in: Don't use HAS_ANSI_VOLATILE.
#include "des.h"
KRB5_DLLIMP int KRB5_CALLCONV
-des_ecb_encrypt(clear, cipher, schedule, encrypt)
+des_ecb_encrypt(clear, cipher, schedule, enc)
unsigned long *clear;
unsigned long *cipher;
const mit_des_key_schedule schedule;
- int encrypt; /* 0 ==> decrypt, else encrypt */
+ int enc; /* 0 ==> decrypt, else encrypt */
{
const static des_cblock iv;
return (mit_des_cbc_encrypt((const des_cblock *) clear,
(des_cblock *) cipher,
- 8, schedule, iv, encrypt));
+ 8, schedule, iv, enc));
}
#include "des.h"
int
-des_cbc_encrypt(in,out,length,key,iv,encrypt)
+des_cbc_encrypt(in,out,length,key,iv,enc)
krb5_octet *in; /* >= length bytes of input text */
krb5_octet *out; /* >= length bytes of output text */
register unsigned long length; /* in bytes */
const mit_des_key_schedule key; /* precomputed key schedule */
const krb5_octet *iv; /* 8 bytes of ivec */
- int encrypt; /* 0 ==> decrypt, else encrypt */
+ int enc; /* 0 ==> decrypt, else encrypt */
{
return (mit_des_cbc_encrypt((const des_cblock *) in,
(des_cblock *) out,
- length, key, iv, encrypt));
+ length, key, iv, enc));
}
* des_pcbc_encrypt - {en,de}crypt a stream in PCBC mode
*/
KRB5_DLLIMP int KRB5_CALLCONV
-des_pcbc_encrypt(in, out, length, schedule, ivec, encrypt)
+des_pcbc_encrypt(in, out, length, schedule, ivec, enc)
des_cblock *in;
des_cblock *out;
long length;
const des_key_schedule schedule;
des_cblock *ivec;
- int encrypt;
+ int enc;
{
register unsigned DES_INT32 left, right;
register unsigned DES_INT32 temp;
/*
* Deal with encryption and decryption separately.
*/
- if (encrypt) {
+ if (enc) {
/* Initialization isn't really needed here, but gcc
complains because it doesn't understand that the
only case where these can be used uninitialized is