Print this page
first pass

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/libcrypt/common/des_encrypt.c
          +++ new/usr/src/lib/libcrypt/common/des_encrypt.c
↓ open down ↓ 29 lines elided ↑ open up ↑
  30   30  #pragma ident   "%Z%%M% %I%     %E% SMI"
  31   31  
  32   32  #pragma weak _des_encrypt1 = des_encrypt1
  33   33  
  34   34  #include <sys/types.h>
  35   35  
  36   36  void
  37   37  des_encrypt1(char *block, char *L, char *IP, char *R, char *preS, char *E,
  38   38          char KS[][48], char S[][64], char *f, char *tempL, char *P, char *FP)
  39   39  {
  40      -/* EXPORT DELETE START */
  41   40          int     i;
  42   41          int     t, j, k;
  43   42          char    t2;
  44   43  
  45   44          /*
  46   45           * First, permute the bits in the input
  47   46           */
  48   47          for (j = 0; j < 64; j++)
  49   48                  L[j] = block[IP[j]-1];
  50   49          /*
↓ open down ↓ 57 lines elided ↑ open up ↑
 108  107                  t2 = L[j];
 109  108                  L[j] = R[j];
 110  109                  R[j] = t2;
 111  110          }
 112  111          /*
 113  112           * The final output
 114  113           * gets the inverse permutation of the very original.
 115  114           */
 116  115          for (j = 0; j < 64; j++)
 117  116                  block[j] = L[FP[j]-1];
 118      -/* EXPORT DELETE END */
 119  117  }
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX