2025-05-11 12:53:24 +08:00
|
|
|
|
namespace Obfuz.EncryptionVM
|
2025-05-11 12:48:53 +08:00
|
|
|
|
{
|
2025-05-11 12:53:24 +08:00
|
|
|
|
public class VirtualMachine
|
2025-05-11 12:48:53 +08:00
|
|
|
|
{
|
|
|
|
|
public const int SecretKeyLength = 1024;
|
|
|
|
|
|
2025-05-11 17:36:58 +08:00
|
|
|
|
public readonly int version;
|
|
|
|
|
public readonly string codeGenerationSecretKey;
|
2025-05-11 12:48:53 +08:00
|
|
|
|
public readonly EncryptionInstructionWithOpCode[] opCodes;
|
|
|
|
|
|
2025-05-11 17:36:58 +08:00
|
|
|
|
public VirtualMachine(int version, string codeGenerationSecretKey, EncryptionInstructionWithOpCode[] opCodes)
|
2025-05-11 12:48:53 +08:00
|
|
|
|
{
|
2025-05-11 17:36:58 +08:00
|
|
|
|
this.codeGenerationSecretKey = codeGenerationSecretKey;
|
2025-05-11 12:48:53 +08:00
|
|
|
|
this.opCodes = opCodes;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|