* des.c (des_ecb_encrypt): Do not use a variable named "encrypt".
authorEzra Peisach <epeisach@mit.edu>
Thu, 31 May 2001 17:47:51 +0000 (17:47 +0000)
committerEzra Peisach <epeisach@mit.edu>
Thu, 31 May 2001 17:47:51 +0000 (17:47 +0000)
* enc_dec.c (des_cbc_encrypt): Likewise.
* pcbc_encrypt.c (des_pcbc_encrypt): Likewise.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13255 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/des425/ChangeLog
src/lib/des425/des.c
src/lib/des425/enc_dec.c
src/lib/des425/pcbc_encrypt.c

index ec34efe65aa67b19c4d16913d64ee7e2e6e2642b..cb88239d96556b1a588793def5b110eeb17fa1db 100644 (file)
@@ -1,3 +1,9 @@
+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.
index e4fc70b633b92101ca5f0a6f159f58be1fdf75a8..0be0973323c79a69da2923ee766253504c8e5a6d 100644 (file)
 #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));
 }
index 653ae965e91391d6019bb8407526a45334c73c5b..f7e4ac80e90146e05c54d3f28d82b1117952f50e 100644 (file)
 #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));
 }
 
index d150af51a674d1e0292463f88660200f5f7cf55e..6aa6fd27019a4a67d91c08c621893e120dc2c350 100644 (file)
  * 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;
@@ -45,7 +45,7 @@ des_pcbc_encrypt(in, out, length, schedule, ivec, encrypt)
        /*
         * 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