2025-05-21 09:23:29 +08:00
|
|
|
|
namespace Obfuz
|
|
|
|
|
{
|
|
|
|
|
public interface IEncryptionScope
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public abstract class EncryptionScopeBase : IEncryptionScope
|
|
|
|
|
{
|
|
|
|
|
public void ForcePreserveAOT()
|
|
|
|
|
{
|
|
|
|
|
EncryptionService<EncryptionScopeBase>.Encrypt(0, 0, 0);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public struct DefaultDynamicEncryptionScope : IEncryptionScope
|
|
|
|
|
{
|
|
|
|
|
public void ForcePreserveAOT()
|
|
|
|
|
{
|
|
|
|
|
EncryptionService<DefaultDynamicEncryptionScope>.Encrypt(0, 0, 0);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2025-05-30 13:32:29 +08:00
|
|
|
|
public struct DefaultStaticEncryptionScope : IEncryptionScope
|
2025-05-21 09:23:29 +08:00
|
|
|
|
{
|
|
|
|
|
public void ForcePreserveAOT()
|
|
|
|
|
{
|
|
|
|
|
EncryptionService<DefaultStaticEncryptionScope>.Encrypt(0, 0, 0);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|