Home
last modified time | relevance | path

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

/Linux-v5.15/fs/cifs/
Dsmb2pdu.c412 build_preauth_ctxt(struct smb2_preauth_neg_context *pneg_ctxt) in build_preauth_ctxt() argument
414 pneg_ctxt->ContextType = SMB2_PREAUTH_INTEGRITY_CAPABILITIES; in build_preauth_ctxt()
415 pneg_ctxt->DataLength = cpu_to_le16(38); in build_preauth_ctxt()
416 pneg_ctxt->HashAlgorithmCount = cpu_to_le16(1); in build_preauth_ctxt()
417 pneg_ctxt->SaltLength = cpu_to_le16(SMB311_LINUX_CLIENT_SALT_SIZE); in build_preauth_ctxt()
418 get_random_bytes(pneg_ctxt->Salt, SMB311_LINUX_CLIENT_SALT_SIZE); in build_preauth_ctxt()
419 pneg_ctxt->HashAlgorithms = SMB2_PREAUTH_INTEGRITY_SHA512; in build_preauth_ctxt()
423 build_compression_ctxt(struct smb2_compression_capabilities_context *pneg_ctxt) in build_compression_ctxt() argument
425 pneg_ctxt->ContextType = SMB2_COMPRESSION_CAPABILITIES; in build_compression_ctxt()
426 pneg_ctxt->DataLength = in build_compression_ctxt()
[all …]
/Linux-v5.15/fs/ksmbd/
Dsmb2pdu.c734 static void build_preauth_ctxt(struct smb2_preauth_neg_context *pneg_ctxt, in build_preauth_ctxt() argument
737 pneg_ctxt->ContextType = SMB2_PREAUTH_INTEGRITY_CAPABILITIES; in build_preauth_ctxt()
738 pneg_ctxt->DataLength = cpu_to_le16(38); in build_preauth_ctxt()
739 pneg_ctxt->HashAlgorithmCount = cpu_to_le16(1); in build_preauth_ctxt()
740 pneg_ctxt->Reserved = cpu_to_le32(0); in build_preauth_ctxt()
741 pneg_ctxt->SaltLength = cpu_to_le16(SMB311_SALT_SIZE); in build_preauth_ctxt()
742 get_random_bytes(pneg_ctxt->Salt, SMB311_SALT_SIZE); in build_preauth_ctxt()
743 pneg_ctxt->HashAlgorithms = hash_id; in build_preauth_ctxt()
746 static void build_encrypt_ctxt(struct smb2_encryption_neg_context *pneg_ctxt, in build_encrypt_ctxt() argument
749 pneg_ctxt->ContextType = SMB2_ENCRYPTION_CAPABILITIES; in build_encrypt_ctxt()
[all …]