Lines Matching refs:ntlmv2
507 struct ntlmv2_resp *ntlmv2 = (struct ntlmv2_resp *) in CalcNTLMv2_response() local
528 memcpy(ntlmv2->challenge.key, ses->ntlmssp->cryptkey, CIFS_SERVER_CHALLENGE_SIZE); in CalcNTLMv2_response()
530 memcpy(ntlmv2->challenge.key, ses->server->cryptkey, CIFS_SERVER_CHALLENGE_SIZE); in CalcNTLMv2_response()
532 rc = crypto_shash_update(hmacmd5, ntlmv2->challenge.key, hash_len); in CalcNTLMv2_response()
539 rc = crypto_shash_final(hmacmd5, ntlmv2->ntlmv2_hash); in CalcNTLMv2_response()
553 struct ntlmv2_resp *ntlmv2; in setup_ntlmv2_rsp() local
602 ntlmv2 = (struct ntlmv2_resp *) in setup_ntlmv2_rsp()
604 ntlmv2->blob_signature = cpu_to_le32(0x00000101); in setup_ntlmv2_rsp()
605 ntlmv2->reserved = 0; in setup_ntlmv2_rsp()
606 ntlmv2->time = rsp_timestamp; in setup_ntlmv2_rsp()
608 get_random_bytes(&ntlmv2->client_chal, sizeof(ntlmv2->client_chal)); in setup_ntlmv2_rsp()
609 ntlmv2->reserved2 = 0; in setup_ntlmv2_rsp()
648 rc = crypto_shash_update(hmacmd5, ntlmv2->ntlmv2_hash, CIFS_HMAC_MD5_HASH_SIZE); in setup_ntlmv2_rsp()