Searched refs:pneg_ctxt (Results 1 – 2 of 2) sorted by relevance
436 build_preauth_ctxt(struct smb2_preauth_neg_context *pneg_ctxt) in build_preauth_ctxt() argument438 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() argument449 pneg_ctxt->ContextType = SMB2_COMPRESSION_CAPABILITIES; in build_compression_ctxt()450 pneg_ctxt->DataLength = in build_compression_ctxt()[all …]
736 static void build_preauth_ctxt(struct smb2_preauth_neg_context *pneg_ctxt, in build_preauth_ctxt() argument739 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() argument751 pneg_ctxt->ContextType = SMB2_ENCRYPTION_CAPABILITIES; in build_encrypt_ctxt()[all …]