* f_cbc.c (mit_des_cbc_encrypt): Do not use a variable named "encrypt".
authorEzra Peisach <epeisach@mit.edu>
Thu, 31 May 2001 17:34:39 +0000 (17:34 +0000)
committerEzra Peisach <epeisach@mit.edu>
Thu, 31 May 2001 17:34:39 +0000 (17:34 +0000)
* d3_cbc.c (mit_des3_cbc_encrypt): Likewise.

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

src/lib/crypto/des/ChangeLog
src/lib/crypto/des/d3_cbc.c
src/lib/crypto/des/f_cbc.c

index e13c4e59f9ee6c9ca9ede4b7e392878649d03e8d..59e124871a0afe0a9737f21db824ebad0629b922 100644 (file)
@@ -1,5 +1,8 @@
 2001-05-31  Ezra Peisach  <epeisach@mit.edu>
 
+       * f_cbc.c (mit_des_cbc_encrypt): Do not use a variable named "encrypt".
+       * d3_cbc.c (mit_des3_cbc_encrypt): Likewise.
+
        * des_int.h (mit_des_cbc_encrypt, mit_des3_ecb_encrypt,
        mit_des3_cbc_encrypt): Don't use "encrypt" as argument name.
 
index 84d0af39adb1e58affc52fac17558e1c454d4e27..ca5b075c208fcbb05d1bc142474b2074bfbbc543 100644 (file)
  */
 
 int
-mit_des3_cbc_encrypt(in, out, length, ks1, ks2, ks3, ivec, encrypt)
+mit_des3_cbc_encrypt(in, out, length, ks1, ks2, ks3, ivec, enc)
        const mit_des_cblock FAR *in;
        mit_des_cblock FAR *out;
        unsigned long length;
        const mit_des_key_schedule ks1, ks2, ks3;
        const mit_des_cblock ivec;
-       int encrypt;
+       int enc;
 {
     register unsigned DES_INT32 left, right;
     register unsigned DES_INT32 temp;
@@ -52,7 +52,7 @@ mit_des3_cbc_encrypt(in, out, length, ks1, ks2, ks3, ivec, encrypt)
     /*
      * Deal with encryption and decryption separately.
      */
-    if (encrypt) {
+    if (enc) {
        /*
         * Initialize left and right with the contents of the initial
         * vector.
index b6443328c466a03d462c06fa6684a90b99dab098..e02d0bffa07e00aaf51793567747a13715e01fdb 100644 (file)
  */
 
 int
-mit_des_cbc_encrypt(in, out, length, schedule, ivec, encrypt)
+mit_des_cbc_encrypt(in, out, length, schedule, ivec, enc)
        const mit_des_cblock FAR *in;
        mit_des_cblock FAR *out;
        unsigned long length;
        const mit_des_key_schedule schedule;
        const mit_des_cblock ivec;
-       int encrypt;
+       int enc;
 {
        register unsigned DES_INT32 left, right;
        register unsigned DES_INT32 temp;
@@ -59,7 +59,7 @@ mit_des_cbc_encrypt(in, out, length, schedule, ivec, encrypt)
        /*
         * Deal with encryption and decryption separately.
         */
-       if (encrypt) {
+       if (enc) {
                /*
                 * Initialize left and right with the contents of the initial
                 * vector.