Lines Matching defs:keybuf
732 first 8 bytes of 'keybuf'. 'keybuf' better be 8 bytes long or longer. */
733 static void slidebits(unsigned char *keybuf, unsigned char *inbuf)
735 keybuf[0] = inbuf[0];
736 keybuf[1] = (inbuf[0]<<7) | (inbuf[1]>>1);
737 keybuf[2] = (inbuf[1]<<6) | (inbuf[2]>>2);
738 keybuf[3] = (inbuf[2]<<5) | (inbuf[3]>>3);
739 keybuf[4] = (inbuf[3]<<4) | (inbuf[4]>>4);
740 keybuf[5] = (inbuf[4]<<3) | (inbuf[5]>>5);
741 keybuf[6] = (inbuf[5]<<2) | (inbuf[6]>>6);
742 keybuf[7] = (inbuf[6]<<1);
830 unsigned char keybuf[8];
837 slidebits(keybuf, enckey);
838 if (des_key_sched((des_cblock *) keybuf, c->keysched) < 0)
841 slidebits(keybuf, enckey + 7);
842 if (des_key_sched((des_cblock *) keybuf, c->keysched2) < 0)
850 slidebits(keybuf, deckey);
851 if (des_key_sched((des_cblock *) keybuf, c->keysched) < 0)
854 slidebits(keybuf, deckey + 7);
855 if (des_key_sched((des_cblock *) keybuf, c->keysched2) < 0)
957 unsigned char keybuf[8];
964 slidebits(keybuf, enckey);
965 des_key_sched((des_cblock *) keybuf, c->keysched);
973 slidebits(keybuf, deckey);
974 des_key_sched((des_cblock *) keybuf, c->keysched);
1228 * first 8 bytes of 'keybuf'. 'inbuf' better be 8 bytes long or longer.
1235 static void slidebits(unsigned char *keybuf, unsigned char *inbuf)
1237 keybuf[0] = inbuf[0];
1238 keybuf[1] = (inbuf[0]<<7) | (inbuf[1]>>1);
1239 keybuf[2] = (inbuf[1]<<6) | (inbuf[2]>>2);
1240 keybuf[3] = (inbuf[2]<<5) | (inbuf[3]>>3);
1241 keybuf[4] = (inbuf[3]<<4) | (inbuf[4]>>4);
1242 keybuf[5] = (inbuf[4]<<3) | (inbuf[5]>>5);
1243 keybuf[6] = (inbuf[5]<<2) | (inbuf[6]>>6);
1244 keybuf[7] = (inbuf[6]<<1);
1268 unsigned char keybuf[24];
1279 slidebits(keybuf, (unsigned char *)enckey);
1281 slidebits(keybuf + 8, (unsigned char *)enckey + 7);
1282 (void) memcpy(keybuf + 16, keybuf, 8);
1287 template[3].pValue = keybuf;
1352 slidebits(keybuf, (unsigned char *)deckey);
1354 slidebits(keybuf + 8, (unsigned char *)deckey + 7);
1355 (void) memcpy(keybuf + 16, keybuf, 8);