Lines Matching refs:password_hash
110 u8 *password_hash) in nt_password_hash() argument
121 return md4_vector(1, (const u8 **) &pos, &len, password_hash); in nt_password_hash()
131 int hash_nt_password_hash(const u8 *password_hash, u8 *password_hash_hash) in hash_nt_password_hash() argument
134 return md4_vector(1, &password_hash, &len, password_hash_hash); in hash_nt_password_hash()
145 int challenge_response(const u8 *challenge, const u8 *password_hash, in challenge_response() argument
150 if (des_encrypt(challenge, password_hash, response) < 0 || in challenge_response()
151 des_encrypt(challenge, password_hash + 7, response + 8) < 0) in challenge_response()
153 zpwd[0] = password_hash[14]; in challenge_response()
154 zpwd[1] = password_hash[15]; in challenge_response()
177 u8 password_hash[16]; in generate_nt_response() local
181 nt_password_hash(password, password_len, password_hash) || in generate_nt_response()
182 challenge_response(challenge, password_hash, response)) in generate_nt_response()
201 const u8 *password_hash, in generate_nt_response_pwhash() argument
209 challenge_response(challenge, password_hash, response)) in generate_nt_response_pwhash()
228 const u8 *password_hash, in generate_authenticator_response_pwhash() argument
261 if (hash_nt_password_hash(password_hash, password_hash_hash) || in generate_authenticator_response_pwhash()
289 u8 password_hash[16]; in generate_authenticator_response() local
290 if (nt_password_hash(password, password_len, password_hash)) in generate_authenticator_response()
293 password_hash, peer_challenge, auth_challenge, in generate_authenticator_response()
309 u8 password_hash[16]; in nt_challenge_response() local
311 if (nt_password_hash(password, password_len, password_hash) || in nt_challenge_response()
312 challenge_response(challenge, password_hash, response)) in nt_challenge_response()
433 const u8 *password_hash, u8 *pw_block) in encrypt_pw_block_with_password_hash() argument
456 rc4_skip(password_hash, 16, 0, pw_block, PWBLOCK_LEN); in encrypt_pw_block_with_password_hash()
475 u8 password_hash[16]; in new_password_encrypted_with_old_nt_password_hash() local
477 if (nt_password_hash(old_password, old_password_len, password_hash)) in new_password_encrypted_with_old_nt_password_hash()
480 password_hash, in new_password_encrypted_with_old_nt_password_hash()
496 int nt_password_hash_encrypted_with_block(const u8 *password_hash, in nt_password_hash_encrypted_with_block() argument
499 if (des_encrypt(password_hash, block, cypher) < 0 || in nt_password_hash_encrypted_with_block()
500 des_encrypt(password_hash + 8, block + 7, cypher + 8) < 0) in nt_password_hash_encrypted_with_block()