pike.git / src / crypt.c

version» Context lines:

pike.git/src/crypt.c:1:   /*   || This file is part of Pike. For copyright information see COPYRIGHT.   || Pike is distributed under GPL, LGPL and MPL. See the file COPYING   || for more information. - || $Id: crypt.c,v 1.6 2003/11/10 10:30:37 grubba Exp $ + || $Id: crypt.c,v 1.7 2003/11/10 14:15:56 nilsson Exp $   */      /*    * From Andy Tanenbaum's book "Computer Networks",    * rewritten in C    */      struct block {    unsigned char b_data[64];   };
pike.git/src/crypt.c:176:    xb = s_boxes[k][r];       *q++ = (char) (xb >> 3) & 1;    *q++ = (char) (xb>>2) & 1;    *q++ = (char) (xb>>1) & 1;    *q++ = (char) (xb & 1);    }    transpose(x, &ptr, 32);   }    - void definekey(char *k) + static inline void definekey(char *k)   {       key = *((struct block *) k);    transpose(&key, &KeyTr1, 56);   }    - void encrypt(char *blck, int edflag) + static void encrypt(char *blck, int edflag)   {    register struct block *p = (struct block *) blck;    register int i;       transpose(p, &InitialTr, 64);    for (i = 15; i>= 0; i--) {    int j = edflag ? i : 15 - i;    register int k;    struct block b, x;