From: Ken Raeburn Date: Wed, 18 Feb 2004 11:04:13 +0000 (+0000) Subject: * pcbc_encrypt.c (des_pcbc_encrypt): Don't pass a temporary variable to X-Git-Tag: krb5-1.4-beta1~607 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=6cbd7c37eaeb39633ef43e8136937185ed17d2d5;p=krb5.git * pcbc_encrypt.c (des_pcbc_encrypt): Don't pass a temporary variable to DES_DO_ENCRYPT and _DECRYPT. Drop the temporary variable. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16096 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/des425/ChangeLog b/src/lib/des425/ChangeLog index d4ebd99fd..17d88274b 100644 --- a/src/lib/des425/ChangeLog +++ b/src/lib/des425/ChangeLog @@ -1,3 +1,9 @@ +2004-02-18 Ken Raeburn + + * 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 * des.c (mit_des_cbc_encrypt): Undef before use. diff --git a/src/lib/des425/pcbc_encrypt.c b/src/lib/des425/pcbc_encrypt.c index ac4b50a64..70d7b6b84 100644 --- a/src/lib/des425/pcbc_encrypt.c +++ b/src/lib/des425/pcbc_encrypt.c @@ -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