Searched refs:pneg_ctxt (Results 1 – 1 of 1) sorted by relevance
381 build_preauth_ctxt(struct smb2_preauth_neg_context *pneg_ctxt) in build_preauth_ctxt() argument383 pneg_ctxt->ContextType = SMB2_PREAUTH_INTEGRITY_CAPABILITIES; in build_preauth_ctxt()384 pneg_ctxt->DataLength = cpu_to_le16(38); in build_preauth_ctxt()385 pneg_ctxt->HashAlgorithmCount = cpu_to_le16(1); in build_preauth_ctxt()386 pneg_ctxt->SaltLength = cpu_to_le16(SMB311_SALT_SIZE); in build_preauth_ctxt()387 get_random_bytes(pneg_ctxt->Salt, SMB311_SALT_SIZE); in build_preauth_ctxt()388 pneg_ctxt->HashAlgorithms = SMB2_PREAUTH_INTEGRITY_SHA512; in build_preauth_ctxt()392 build_encrypt_ctxt(struct smb2_encryption_neg_context *pneg_ctxt) in build_encrypt_ctxt() argument394 pneg_ctxt->ContextType = SMB2_ENCRYPTION_CAPABILITIES; in build_encrypt_ctxt()395 pneg_ctxt->DataLength = cpu_to_le16(4); /* Cipher Count + le16 cipher */ in build_encrypt_ctxt()[all …]