Searched refs:pneg_ctxt (Results 1 – 2 of 2) sorted by relevance
592 build_preauth_ctxt(struct smb2_preauth_neg_context *pneg_ctxt) in build_preauth_ctxt() argument594 pneg_ctxt->ContextType = SMB2_PREAUTH_INTEGRITY_CAPABILITIES; in build_preauth_ctxt()595 pneg_ctxt->DataLength = cpu_to_le16(38); in build_preauth_ctxt()596 pneg_ctxt->HashAlgorithmCount = cpu_to_le16(1); in build_preauth_ctxt()597 pneg_ctxt->SaltLength = cpu_to_le16(SMB311_SALT_SIZE); in build_preauth_ctxt()598 get_random_bytes(pneg_ctxt->Salt, SMB311_SALT_SIZE); in build_preauth_ctxt()599 pneg_ctxt->HashAlgorithms = SMB2_PREAUTH_INTEGRITY_SHA512; in build_preauth_ctxt()603 build_compression_ctxt(struct smb2_compression_capabilities_context *pneg_ctxt) in build_compression_ctxt() argument605 pneg_ctxt->ContextType = SMB2_COMPRESSION_CAPABILITIES; in build_compression_ctxt()606 pneg_ctxt->DataLength = in build_compression_ctxt()[all …]
765 static void build_preauth_ctxt(struct smb2_preauth_neg_context *pneg_ctxt, in build_preauth_ctxt() argument768 pneg_ctxt->ContextType = SMB2_PREAUTH_INTEGRITY_CAPABILITIES; in build_preauth_ctxt()769 pneg_ctxt->DataLength = cpu_to_le16(38); in build_preauth_ctxt()770 pneg_ctxt->HashAlgorithmCount = cpu_to_le16(1); in build_preauth_ctxt()771 pneg_ctxt->Reserved = cpu_to_le32(0); in build_preauth_ctxt()772 pneg_ctxt->SaltLength = cpu_to_le16(SMB311_SALT_SIZE); in build_preauth_ctxt()773 get_random_bytes(pneg_ctxt->Salt, SMB311_SALT_SIZE); in build_preauth_ctxt()774 pneg_ctxt->HashAlgorithms = hash_id; in build_preauth_ctxt()777 static void build_encrypt_ctxt(struct smb2_encryption_neg_context *pneg_ctxt, in build_encrypt_ctxt() argument780 pneg_ctxt->ContextType = SMB2_ENCRYPTION_CAPABILITIES; in build_encrypt_ctxt()[all …]