Home
last modified time | relevance | path

Searched refs:pneg_ctxt (Results 1 – 2 of 2) sorted by relevance

/linux-6.1.9/fs/cifs/
Dsmb2pdu.c436 build_preauth_ctxt(struct smb2_preauth_neg_context *pneg_ctxt) in build_preauth_ctxt() argument
438 pneg_ctxt->ContextType = SMB2_PREAUTH_INTEGRITY_CAPABILITIES; in build_preauth_ctxt()
439 pneg_ctxt->DataLength = cpu_to_le16(38); in build_preauth_ctxt()
440 pneg_ctxt->HashAlgorithmCount = cpu_to_le16(1); in build_preauth_ctxt()
441 pneg_ctxt->SaltLength = cpu_to_le16(SMB311_SALT_SIZE); in build_preauth_ctxt()
442 get_random_bytes(pneg_ctxt->Salt, SMB311_SALT_SIZE); in build_preauth_ctxt()
443 pneg_ctxt->HashAlgorithms = SMB2_PREAUTH_INTEGRITY_SHA512; in build_preauth_ctxt()
447 build_compression_ctxt(struct smb2_compression_capabilities_context *pneg_ctxt) in build_compression_ctxt() argument
449 pneg_ctxt->ContextType = SMB2_COMPRESSION_CAPABILITIES; in build_compression_ctxt()
450 pneg_ctxt->DataLength = in build_compression_ctxt()
[all …]
/linux-6.1.9/fs/ksmbd/
Dsmb2pdu.c736 static void build_preauth_ctxt(struct smb2_preauth_neg_context *pneg_ctxt, in build_preauth_ctxt() argument
739 pneg_ctxt->ContextType = SMB2_PREAUTH_INTEGRITY_CAPABILITIES; in build_preauth_ctxt()
740 pneg_ctxt->DataLength = cpu_to_le16(38); in build_preauth_ctxt()
741 pneg_ctxt->HashAlgorithmCount = cpu_to_le16(1); in build_preauth_ctxt()
742 pneg_ctxt->Reserved = cpu_to_le32(0); in build_preauth_ctxt()
743 pneg_ctxt->SaltLength = cpu_to_le16(SMB311_SALT_SIZE); in build_preauth_ctxt()
744 get_random_bytes(pneg_ctxt->Salt, SMB311_SALT_SIZE); in build_preauth_ctxt()
745 pneg_ctxt->HashAlgorithms = hash_id; in build_preauth_ctxt()
748 static void build_encrypt_ctxt(struct smb2_encryption_neg_context *pneg_ctxt, in build_encrypt_ctxt() argument
751 pneg_ctxt->ContextType = SMB2_ENCRYPTION_CAPABILITIES; in build_encrypt_ctxt()
[all …]