Lines Matching refs:key1
100 void DES_string_to_2keys(const char *str, DES_cblock *key1, DES_cblock *key2)
106 memset(key1, 0, 8);
112 (*key2)[i] = (*key1)[i] = (str[i] << 1);
119 (*key1)[i % 8] ^= (str[i] << 1);
127 (*key1)[i % 8] ^= (j << 1);
135 (*key1)[7 - (i % 8)] ^= j;
141 memcpy(key2, key1, 8);
143 DES_set_odd_parity(key1);
146 if (DES_is_weak_key(key1))
147 (*key1)[7] ^= 0xF0;
148 DES_set_key(key1, &ks);
150 DES_set_key_unchecked(key1, &ks);
152 DES_cbc_cksum((const unsigned char *)str, key1, length, &ks, key1);
162 DES_set_odd_parity(key1);