class MachineKeyConfig
{
byte [] validation_key;
- bool isolate_validation;
+ //bool isolate_validation;
byte [] decryption_key;
byte [] decryption_key_192bits;
- bool isolate_decryption; // For us, this is always true by now.
+ //bool isolate_decryption; // For us, this is always true by now.
MachineKeyValidation validation_type;
static byte [] autogenerated;
return result;
}
- static byte [] MakeKey (string key, bool decryption, out bool isolate)
+ static byte [] MakeKey (string key, bool decryption) //, out bool isolate)
{
if (key == null || key.StartsWith ("AutoGenerate")){
- isolate = key.IndexOf ("IsolateApps") != 1;
+ //isolate = key.IndexOf ("IsolateApps") != 1;
return (decryption) ? autogenerated_decrypt : autogenerated;
}
- isolate = false;
+ //isolate = false;
int len = key.Length;
if (len < 40 || len > 128 || (len % 2) == 1)
internal void SetValidationKey (string n)
{
- validation_key = MakeKey (n, false, out isolate_validation);
+ validation_key = MakeKey (n, false); //, out isolate_validation);
}
internal byte [] ValidationKey {
internal void SetDecryptionKey (string n)
{
- decryption_key = MakeKey (n, true, out isolate_decryption);
+ decryption_key = MakeKey (n, true); //, out isolate_decryption);
decryption_key_192bits = new byte [24];
int count = 24;
if (decryption_key.Length < 24)