66 register unsigned char j;
72 (*key)[i%8]^=(str[i]<<1);
82 j=((j<<4)&0xf0)|((j>>4)&0x0f);
83 j=((j<<2)&0xcc)|((j>>2)&0x33);
84 j=((j<<1)&0xaa)|((j>>1)&0x55);
90 #ifdef EXPERIMENTAL_STR_TO_STRONG_KEY
106 register unsigned char j;
111 #ifdef OLD_STR_TO_KEY
116 (*key2)[i]=(*key1)[i]=(str[i]<<1);
124 (*key2)[i%8]^=(str[i]<<1);
126 (*key1)[i%8]^=(str[i]<<1);
136 (*key1)[i%8]^=(j<<1);
138 (*key2)[i%8]^=(j<<1);
142 j=((j<<4)&0xf0)|((j>>4)&0x0f);
143 j=((j<<2)&0xcc)|((j>>2)&0x33);
144 j=((j<<1)&0xaa)|((j>>1)&0x55);
151 if (length <= 8) memcpy(key2,key1,8);
155 #ifdef EXPERIMENTAL_STR_TO_STRONG_KEY
162 DES_cbc_cksum((
const unsigned char*)str,key1,length,&ks,key1);
163 #ifdef EXPERIMENTAL_STR_TO_STRONG_KEY
170 DES_cbc_cksum((
const unsigned char*)str,key2,length,&ks,key2);