Home
last modified time | relevance | path

Searched refs:ntlmssp (Results 1 – 6 of 6) sorted by relevance

/linux-6.12.1/fs/smb/client/
Dsess.c912 ses->ntlmssp->client_flags, server_flags); in decode_ntlmssp_challenge()
914 if ((ses->ntlmssp->client_flags & (NTLMSSP_NEGOTIATE_SEAL | NTLMSSP_NEGOTIATE_SIGN)) && in decode_ntlmssp_challenge()
929 if ((ses->ntlmssp->client_flags & NTLMSSP_NEGOTIATE_KEY_XCH) && in decode_ntlmssp_challenge()
934 ses->ntlmssp->server_flags = server_flags; in decode_ntlmssp_challenge()
936 memcpy(ses->ntlmssp->cryptkey, pblob->Challenge, CIFS_CRYPTO_KEY_SIZE); in decode_ntlmssp_challenge()
1057 if (!server->session_estab || ses->ntlmssp->sesskey_per_smbsess) in build_ntlmssp_negotiate_blob()
1061 ses->ntlmssp->client_flags = flags; in build_ntlmssp_negotiate_blob()
1119 if (!server->session_estab || ses->ntlmssp->sesskey_per_smbsess) in build_ntlmssp_smb3_negotiate_blob()
1128 ses->ntlmssp->client_flags = flags; in build_ntlmssp_smb3_negotiate_blob()
1184 flags = ses->ntlmssp->server_flags | NTLMSSP_REQUEST_TARGET | in build_ntlmssp_auth_blob()
[all …]
Dcifsencrypt.c528 memcpy(ntlmv2->challenge.key, ses->ntlmssp->cryptkey, CIFS_SERVER_CHALLENGE_SIZE); in CalcNTLMv2_response()
684 cifs_arc4_crypt(ctx_arc4, ses->ntlmssp->ciphertext, sec_key, in calc_seckey()
Dsmb2pdu.c1732 ses->ntlmssp = kmalloc(sizeof(struct ntlmssp_auth), GFP_KERNEL); in SMB2_sess_auth_rawntlmssp_negotiate()
1733 if (!ses->ntlmssp) { in SMB2_sess_auth_rawntlmssp_negotiate()
1737 ses->ntlmssp->sesskey_per_smbsess = true; in SMB2_sess_auth_rawntlmssp_negotiate()
1802 kfree_sensitive(ses->ntlmssp); in SMB2_sess_auth_rawntlmssp_negotiate()
1803 ses->ntlmssp = NULL; in SMB2_sess_auth_rawntlmssp_negotiate()
1880 kfree_sensitive(ses->ntlmssp); in SMB2_sess_auth_rawntlmssp_authenticate()
1881 ses->ntlmssp = NULL; in SMB2_sess_auth_rawntlmssp_authenticate()
Dcifsglob.h1085 struct ntlmssp_auth *ntlmssp; /* ciphertext, flags, server challenge */ member
/linux-6.12.1/fs/smb/server/
Dauth.c347 domain_name, conn->ntlmssp.cryptkey); in ksmbd_decode_ntlmssp_auth_blob()
351 if (conn->ntlmssp.client_flags & NTLMSSP_NEGOTIATE_KEY_XCH) { in ksmbd_decode_ntlmssp_auth_blob()
401 conn->ntlmssp.client_flags = le32_to_cpu(negblob->NegotiateFlags); in ksmbd_decode_ntlmssp_neg_blob()
421 int cflags = conn->ntlmssp.client_flags; in ksmbd_build_ntlmssp_challenge_blob()
475 get_random_bytes(conn->ntlmssp.cryptkey, sizeof(__u64)); in ksmbd_build_ntlmssp_challenge_blob()
476 memcpy(chgblob->Challenge, conn->ntlmssp.cryptkey, in ksmbd_build_ntlmssp_challenge_blob()
Dconnection.h73 struct ntlmssp_auth ntlmssp; member