]> git.ipfire.org Git - thirdparty/krb5.git/commitdiff
Make DO_FAST_XOR code unconditional in the NSS back end
authorGreg Hudson <ghudson@mit.edu>
Wed, 29 Sep 2010 21:52:57 +0000 (21:52 +0000)
committerGreg Hudson <ghudson@mit.edu>
Wed, 29 Sep 2010 21:52:57 +0000 (21:52 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/branches/nss@24380 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/crypto/nss/enc_provider/enc_gen.c

index 779a502784e099d25e34355776e62041d79ef5e0..92d30b049180b9abc569b67ed5a90fcd477d65e7 100644 (file)
  * or implied warranty.
  */
 
-/* compile options (should move to configure)... */
-#define DO_FAST_XOR 1
-/*#define FAKE_FIPS 1  */
-
 #include "k5-int.h"
 #include "nss_gen.h"
 #include "enc_provider.h"
@@ -143,7 +139,6 @@ xor(unsigned char *x, unsigned char *y, int size)
 {
     int i;
 
-#ifdef DO_FAST_XOR
 #define ALIGNED(x,type) (!(((size_t)(x))&(sizeof(type)-1)))
     if (ALIGNED(x,unsigned long) && ALIGNED(y, unsigned long)
         && ALIGNED(size, unsigned long)) {
@@ -154,7 +149,6 @@ xor(unsigned char *x, unsigned char *y, int size)
         }
         return;
     }
-#endif
     for (i=0; i < size; i++) {
         *x++ ^= *y++;
     }