mirror of
https://github.com/crskycode/GARbro.git
synced 2025-01-12 12:59:28 +08:00
(LibScheme): added constructors from string key.
This commit is contained in:
parent
492692773e
commit
0120c3405a
@ -123,10 +123,8 @@ namespace GameRes.Formats.Malie
|
|||||||
public uint DataAlign;
|
public uint DataAlign;
|
||||||
public uint[] Key;
|
public uint[] Key;
|
||||||
|
|
||||||
public LibScheme (uint[] key)
|
public LibScheme (uint[] key) : this (0x1000, key)
|
||||||
{
|
{
|
||||||
DataAlign = 0x1000;
|
|
||||||
Key = key;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public LibScheme (uint align, uint[] key)
|
public LibScheme (uint align, uint[] key)
|
||||||
@ -134,6 +132,14 @@ namespace GameRes.Formats.Malie
|
|||||||
DataAlign = align;
|
DataAlign = align;
|
||||||
Key = key;
|
Key = key;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public LibScheme (string key) : this (Camellia.GenerateKey (key))
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
public LibScheme (uint align, string key) : this (align, Camellia.GenerateKey (key))
|
||||||
|
{
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
[Serializable]
|
[Serializable]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user