Print this page
first pass

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/libcrypt/common/des_decrypt.c
          +++ new/usr/src/lib/libcrypt/common/des_decrypt.c
↓ open down ↓ 28 lines elided ↑ open up ↑
  29   29   */
  30   30  
  31   31  #pragma ident   "%Z%%M% %I%     %E% SMI"
  32   32  /*LINTLIBRARY*/
  33   33  
  34   34  #include <sys/types.h>
  35   35  
  36   36  void
  37   37  _des_decrypt1(char *block, char *L, char *IP, char *R, char *preS, char *E, char KS[][48], char S[][64], char *f, char *tempL, char *P, char *FP)
  38   38  {
  39      -/* EXPORT DELETE START */
  40   39          int     i, ii;
  41   40          int     t, j, k;
  42   41          char    t2;
  43   42  
  44   43          /*
  45   44           * First, permute the bits in the input
  46   45           */
  47   46          for (j = 0; j < 64; j++)
  48   47                  L[j] = block[IP[j]-1];
  49   48          /*
↓ open down ↓ 58 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