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()
145 int challenge_response(const u8 *challenge, const u8 *password_hash, in challenge_response()
146 u8 *response) in challenge_response()
148 u8 zpwd[7]; in challenge_response()
171 int generate_nt_response(const u8 *auth_challenge, const u8 *peer_challenge, in generate_nt_response()
172 const u8 *username, size_t username_len, in generate_nt_response()
173 const u8 *password, size_t password_len, in generate_nt_response()
174 u8 *response) in generate_nt_response()
176 u8 challenge[8]; in generate_nt_response()
177 u8 password_hash[16]; in generate_nt_response()
198 int generate_nt_response_pwhash(const u8 *auth_challenge, in generate_nt_response_pwhash()
199 const u8 *peer_challenge, in generate_nt_response_pwhash()
200 const u8 *username, size_t username_len, in generate_nt_response_pwhash()
201 const u8 *password_hash, in generate_nt_response_pwhash()
202 u8 *response) in generate_nt_response_pwhash()
204 u8 challenge[8]; in generate_nt_response_pwhash()
228 const u8 *password_hash, in generate_authenticator_response_pwhash()
229 const u8 *peer_challenge, const u8 *auth_challenge, in generate_authenticator_response_pwhash()
230 const u8 *username, size_t username_len, in generate_authenticator_response_pwhash()
231 const u8 *nt_response, u8 *response) in generate_authenticator_response_pwhash()
233 static const u8 magic1[39] = { in generate_authenticator_response_pwhash()
239 static const u8 magic2[41] = { in generate_authenticator_response_pwhash()
247 u8 password_hash_hash[16], challenge[8]; in generate_authenticator_response_pwhash()
283 int generate_authenticator_response(const u8 *password, size_t password_len, in generate_authenticator_response()
284 const u8 *peer_challenge, in generate_authenticator_response()
285 const u8 *auth_challenge, in generate_authenticator_response()
286 const u8 *username, size_t username_len, in generate_authenticator_response()
287 const u8 *nt_response, u8 *response) in generate_authenticator_response()
289 u8 password_hash[16]; in generate_authenticator_response()
306 int nt_challenge_response(const u8 *challenge, const u8 *password, in nt_challenge_response()
307 size_t password_len, u8 *response) in nt_challenge_response()
309 u8 password_hash[16]; in nt_challenge_response()
325 int get_master_key(const u8 *password_hash_hash, const u8 *nt_response, in get_master_key()
326 u8 *master_key) in get_master_key()
328 static const u8 magic1[27] = { in get_master_key()
335 u8 hash[SHA1_MAC_LEN]; in get_master_key()
357 int get_asymetric_start_key(const u8 *master_key, u8 *session_key, in get_asymetric_start_key()
361 static const u8 magic2[84] = { in get_asymetric_start_key()
372 static const u8 magic3[84] = { in get_asymetric_start_key()
383 static const u8 shs_pad1[40] = { in get_asymetric_start_key()
390 static const u8 shs_pad2[40] = { in get_asymetric_start_key()
396 u8 digest[SHA1_MAC_LEN]; in get_asymetric_start_key()
432 const u8 *password, size_t password_len, in encrypt_pw_block_with_password_hash()
433 const u8 *password_hash, u8 *pw_block) in encrypt_pw_block_with_password_hash()
436 u8 *pos; in encrypt_pw_block_with_password_hash()
471 const u8 *new_password, size_t new_password_len, in new_password_encrypted_with_old_nt_password_hash()
472 const u8 *old_password, size_t old_password_len, in new_password_encrypted_with_old_nt_password_hash()
473 u8 *encrypted_pw_block) in new_password_encrypted_with_old_nt_password_hash()
475 u8 password_hash[16]; 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()
497 const u8 *block, u8 *cypher) in nt_password_hash_encrypted_with_block()
516 const u8 *new_password, size_t new_password_len, in old_nt_password_hash_encrypted_with_new_nt_password_hash()
517 const u8 *old_password, size_t old_password_len, in old_nt_password_hash_encrypted_with_new_nt_password_hash()
518 u8 *encrypted_password_hash) in old_nt_password_hash_encrypted_with_new_nt_password_hash()
520 u8 old_password_hash[16], new_password_hash[16]; in old_nt_password_hash_encrypted_with_new_nt_password_hash()