2025-05-21 09:23:29 +08:00
|
|
|
|
using dnlib.DotNet;
|
|
|
|
|
|
|
|
|
|
namespace Obfuz.ObfusPasses.CallObfus
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
public interface IObfuscationPolicy
|
|
|
|
|
{
|
|
|
|
|
bool NeedObfuscateCallInMethod(MethodDef method);
|
|
|
|
|
|
2025-07-01 18:46:09 +08:00
|
|
|
|
bool NeedObfuscateCalledMethod(MethodDef callerMethod, IMethod calledMethod, bool callVir);
|
2025-05-21 09:23:29 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public abstract class ObfuscationPolicyBase : IObfuscationPolicy
|
|
|
|
|
{
|
|
|
|
|
public abstract bool NeedObfuscateCallInMethod(MethodDef method);
|
|
|
|
|
|
2025-07-01 18:46:09 +08:00
|
|
|
|
public abstract bool NeedObfuscateCalledMethod(MethodDef callerMethod, IMethod calledMethod, bool callVir);
|
2025-05-21 09:23:29 +08:00
|
|
|
|
}
|
|
|
|
|
}
|