Lines Matching refs:key
192 dohash(char *out, char *in, char *key, int forw) in dohash() argument
219 permute(pk1, key, perm1, 56); in dohash()
304 str_to_key(unsigned char *str, unsigned char *key) in str_to_key() argument
308 key[0] = str[0] >> 1; in str_to_key()
309 key[1] = ((str[0] & 0x01) << 6) | (str[1] >> 2); in str_to_key()
310 key[2] = ((str[1] & 0x03) << 5) | (str[2] >> 3); in str_to_key()
311 key[3] = ((str[2] & 0x07) << 4) | (str[3] >> 4); in str_to_key()
312 key[4] = ((str[3] & 0x0F) << 3) | (str[4] >> 5); in str_to_key()
313 key[5] = ((str[4] & 0x1F) << 2) | (str[5] >> 6); in str_to_key()
314 key[6] = ((str[5] & 0x3F) << 1) | (str[6] >> 7); in str_to_key()
315 key[7] = str[6] & 0x7F; in str_to_key()
317 key[i] = (key[i] << 1); in str_to_key()
321 smbhash(unsigned char *out, const unsigned char *in, unsigned char *key, in smbhash() argument
337 str_to_key(key, key2); in smbhash()
391 cred_hash1(unsigned char *out, unsigned char *in, unsigned char *key)
395 smbhash(buf, in, key, 1);
396 smbhash(out, buf, key + 9, 1);
400 cred_hash2(unsigned char *out, unsigned char *in, unsigned char *key)
405 smbhash(buf, in, key, 1);
406 key2[0] = key[7];
411 cred_hash3(unsigned char *out, unsigned char *in, unsigned char *key, int forw)
415 smbhash(out, in, key, forw);
416 key2[0] = key[7];