* pcbc_encrypt.c (des_pcbc_encrypt): Don't pass a temporary variable to
authorKen Raeburn <raeburn@mit.edu>
Wed, 18 Feb 2004 11:04:13 +0000 (11:04 +0000)
committerKen Raeburn <raeburn@mit.edu>
Wed, 18 Feb 2004 11:04:13 +0000 (11:04 +0000)
DES_DO_ENCRYPT and _DECRYPT.  Drop the temporary variable.

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

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

index d4ebd99fd1460f45d66d5d6026f3adb56477a681..17d88274be13e05b8b69fae900ca1505b00dd16d 100644 (file)
@@ -1,3 +1,9 @@
+2004-02-18  Ken Raeburn  <raeburn@mit.edu>
+
+       * pcbc_encrypt.c (des_pcbc_encrypt): Don't pass a temporary
+       variable to DES_DO_ENCRYPT and _DECRYPT.  Drop the temporary
+       variable.
+
 2003-07-17  Ken Raeburn  <raeburn@mit.edu>
 
        * des.c (mit_des_cbc_encrypt): Undef before use.
index ac4b50a6420288762a7dd4c57a793cf9f77b5344..70d7b6b84c8fc5fbcd077e82b121b1bd043d7b70 100644 (file)
@@ -32,7 +32,6 @@ des_pcbc_encrypt(in, out, length, schedule, ivec, enc)
        int enc;
 {
        register unsigned DES_INT32 left, right;
-       register unsigned DES_INT32 temp;
        const unsigned DES_INT32 *kp;
        const unsigned char *ip;
        unsigned char *op;
@@ -114,7 +113,7 @@ des_pcbc_encrypt(in, out, length, schedule, ivec, enc)
                        /*
                         * Encrypt what we have
                         */
-                       DES_DO_ENCRYPT(left, right, temp, kp);
+                       DES_DO_ENCRYPT(left, right, kp);
 
                        /*
                         * Copy the results out
@@ -165,7 +164,7 @@ des_pcbc_encrypt(in, out, length, schedule, ivec, enc)
                        /*
                         * Decrypt this.
                         */
-                       DES_DO_DECRYPT(left, right, temp, kp);
+                       DES_DO_DECRYPT(left, right, kp);
 
                        /*
                         * Xor with the old cipher to get plain