Lines Matching refs:u8
25 static int utf8_to_ucs2(const u8 *utf8_string, size_t utf8_string_len, in utf8_to_ucs2()
26 u8 *ucs2_buffer, size_t ucs2_buffer_size, in utf8_to_ucs2()
32 u8 c = utf8_string[i]; in utf8_to_ucs2()
45 u8 c2 = utf8_string[++i]; in utf8_to_ucs2()
57 u8 c3 = utf8_string[++i]; in utf8_to_ucs2()
81 int challenge_hash(const u8 *peer_challenge, const u8 *auth_challenge, in challenge_hash()
82 const u8 *username, size_t username_len, u8 *challenge) in challenge_hash()
84 u8 hash[SHA1_MAC_LEN]; in challenge_hash()
109 int nt_password_hash(const u8 *password, size_t password_len, in nt_password_hash()
110 u8 *password_hash) in nt_password_hash()
112 u8 buf[512], *pos; in nt_password_hash()
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()
144 void challenge_response(const u8 *challenge, const u8 *password_hash, in challenge_response()
145 u8 *response) in challenge_response()
147 u8 zpwd[7]; in challenge_response()
168 int generate_nt_response(const u8 *auth_challenge, const u8 *peer_challenge, in generate_nt_response()
169 const u8 *username, size_t username_len, in generate_nt_response()
170 const u8 *password, size_t password_len, in generate_nt_response()
171 u8 *response) in generate_nt_response()
173 u8 challenge[8]; in generate_nt_response()
174 u8 password_hash[16]; in generate_nt_response()
195 int generate_nt_response_pwhash(const u8 *auth_challenge, in generate_nt_response_pwhash()
196 const u8 *peer_challenge, in generate_nt_response_pwhash()
197 const u8 *username, size_t username_len, in generate_nt_response_pwhash()
198 const u8 *password_hash, in generate_nt_response_pwhash()
199 u8 *response) in generate_nt_response_pwhash()
201 u8 challenge[8]; in generate_nt_response_pwhash()
225 const u8 *password_hash, in generate_authenticator_response_pwhash()
226 const u8 *peer_challenge, const u8 *auth_challenge, in generate_authenticator_response_pwhash()
227 const u8 *username, size_t username_len, in generate_authenticator_response_pwhash()
228 const u8 *nt_response, u8 *response) in generate_authenticator_response_pwhash()
230 static const u8 magic1[39] = { in generate_authenticator_response_pwhash()
236 static const u8 magic2[41] = { in generate_authenticator_response_pwhash()
244 u8 password_hash_hash[16], challenge[8]; in generate_authenticator_response_pwhash()
280 int generate_authenticator_response(const u8 *password, size_t password_len, in generate_authenticator_response()
281 const u8 *peer_challenge, in generate_authenticator_response()
282 const u8 *auth_challenge, in generate_authenticator_response()
283 const u8 *username, size_t username_len, in generate_authenticator_response()
284 const u8 *nt_response, u8 *response) in generate_authenticator_response()
286 u8 password_hash[16]; in generate_authenticator_response()
303 int nt_challenge_response(const u8 *challenge, const u8 *password, in nt_challenge_response()
304 size_t password_len, u8 *response) in nt_challenge_response()
306 u8 password_hash[16]; in nt_challenge_response()
321 int get_master_key(const u8 *password_hash_hash, const u8 *nt_response, in get_master_key()
322 u8 *master_key) in get_master_key()
324 static const u8 magic1[27] = { in get_master_key()
331 u8 hash[SHA1_MAC_LEN]; in get_master_key()
353 int get_asymetric_start_key(const u8 *master_key, u8 *session_key, in get_asymetric_start_key()
357 static const u8 magic2[84] = { in get_asymetric_start_key()
368 static const u8 magic3[84] = { in get_asymetric_start_key()
379 static const u8 shs_pad1[40] = { in get_asymetric_start_key()
386 static const u8 shs_pad2[40] = { in get_asymetric_start_key()
392 u8 digest[SHA1_MAC_LEN]; in get_asymetric_start_key()
428 const u8 *password, size_t password_len, in encrypt_pw_block_with_password_hash()
429 const u8 *password_hash, u8 *pw_block) in encrypt_pw_block_with_password_hash()
432 u8 *pos; in encrypt_pw_block_with_password_hash()
467 const u8 *new_password, size_t new_password_len, in new_password_encrypted_with_old_nt_password_hash()
468 const u8 *old_password, size_t old_password_len, in new_password_encrypted_with_old_nt_password_hash()
469 u8 *encrypted_pw_block) in new_password_encrypted_with_old_nt_password_hash()
471 u8 password_hash[16]; in new_password_encrypted_with_old_nt_password_hash()
491 void nt_password_hash_encrypted_with_block(const u8 *password_hash, in nt_password_hash_encrypted_with_block()
492 const u8 *block, u8 *cypher) in nt_password_hash_encrypted_with_block()
509 const u8 *new_password, size_t new_password_len, in old_nt_password_hash_encrypted_with_new_nt_password_hash()
510 const u8 *old_password, size_t old_password_len, in old_nt_password_hash_encrypted_with_new_nt_password_hash()
511 u8 *encrypted_password_hash) in old_nt_password_hash_encrypted_with_new_nt_password_hash()
513 u8 old_password_hash[16], new_password_hash[16]; in old_nt_password_hash_encrypted_with_new_nt_password_hash()