Home
last modified time | relevance | path

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

/linux-6.12.1/fs/smb/client/
Dsmb2transport.c250 memset(shdr->Signature, 0x0, SMB2_SIGNATURE_SIZE); in smb2_calc_signature()
301 memcpy(shdr->Signature, sigptr, SMB2_SIGNATURE_SIZE); in smb2_calc_signature()
588 memset(shdr->Signature, 0x0, SMB2_SIGNATURE_SIZE); in smb3_calc_signature()
629 memcpy(shdr->Signature, sigptr, SMB2_SIGNATURE_SIZE); in smb3_calc_signature()
677 char server_response_sig[SMB2_SIGNATURE_SIZE]; in smb2_verify_signature()
702 memcpy(server_response_sig, shdr->Signature, SMB2_SIGNATURE_SIZE); in smb2_verify_signature()
704 memset(shdr->Signature, 0, SMB2_SIGNATURE_SIZE); in smb2_verify_signature()
711 if (memcmp(server_response_sig, shdr->Signature, SMB2_SIGNATURE_SIZE)) { in smb2_verify_signature()
Dsmb2ops.c4275 cifs_sg_set_buf(&sgtable, sig, SMB2_SIGNATURE_SIZE); in smb2_get_aead_req()
4325 u8 sign[SMB2_SIGNATURE_SIZE] = {}; in crypt_message()
4351 rc = crypto_aead_setauthsize(tfm, SMB2_SIGNATURE_SIZE); in crypt_message()
4363 memcpy(sign, &tr_hdr->Signature, SMB2_SIGNATURE_SIZE); in crypt_message()
4364 crypt_len += SMB2_SIGNATURE_SIZE; in crypt_message()
4382 memcpy(&tr_hdr->Signature, sign, SMB2_SIGNATURE_SIZE); in crypt_message()
Dcifsglob.h2238 nents += DIV_ROUND_UP(offset_in_page(sig) + SMB2_SIGNATURE_SIZE, PAGE_SIZE); in cifs_get_num_sgs()
/linux-6.12.1/fs/smb/server/
Dauth.c1103 smb2_sg_set_buf(&sg[sg_idx], sign, SMB2_SIGNATURE_SIZE); in ksmbd_init_sg()
1116 u8 sign[SMB2_SIGNATURE_SIZE] = {}; in ksmbd_crypt_message()
1160 rc = crypto_aead_setauthsize(tfm, SMB2_SIGNATURE_SIZE); in ksmbd_crypt_message()
1173 memcpy(sign, &tr_hdr->Signature, SMB2_SIGNATURE_SIZE); in ksmbd_crypt_message()
1174 crypt_len += SMB2_SIGNATURE_SIZE; in ksmbd_crypt_message()
1211 memcpy(&tr_hdr->Signature, sign, SMB2_SIGNATURE_SIZE); in ksmbd_crypt_message()
Dsmb2pdu.c8674 char signature_req[SMB2_SIGNATURE_SIZE]; in smb2_check_sign_req()
8691 memcpy(signature_req, hdr->Signature, SMB2_SIGNATURE_SIZE); in smb2_check_sign_req()
8692 memset(hdr->Signature, 0, SMB2_SIGNATURE_SIZE); in smb2_check_sign_req()
8701 if (memcmp(signature, signature_req, SMB2_SIGNATURE_SIZE)) { in smb2_check_sign_req()
8723 memset(hdr->Signature, 0, SMB2_SIGNATURE_SIZE); in smb2_set_sign_rsp()
8734 memcpy(hdr->Signature, signature, SMB2_SIGNATURE_SIZE); in smb2_set_sign_rsp()
8749 char signature_req[SMB2_SIGNATURE_SIZE]; in smb3_check_sign_req()
8781 memcpy(signature_req, hdr->Signature, SMB2_SIGNATURE_SIZE); in smb3_check_sign_req()
8782 memset(hdr->Signature, 0, SMB2_SIGNATURE_SIZE); in smb3_check_sign_req()
8789 if (memcmp(signature, signature_req, SMB2_SIGNATURE_SIZE)) { in smb3_check_sign_req()
[all …]
/linux-6.12.1/fs/smb/common/
Dsmb2pdu.h68 #define SMB2_SIGNATURE_SIZE 16 macro