mirror of
https://github.com/crskycode/GARbro.git
synced 2024-12-24 20:04:13 +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[] Key;
|
||||
|
||||
public LibScheme (uint[] key)
|
||||
public LibScheme (uint[] key) : this (0x1000, key)
|
||||
{
|
||||
DataAlign = 0x1000;
|
||||
Key = key;
|
||||
}
|
||||
|
||||
public LibScheme (uint align, uint[] key)
|
||||
@ -134,6 +132,14 @@ namespace GameRes.Formats.Malie
|
||||
DataAlign = align;
|
||||
Key = key;
|
||||
}
|
||||
|
||||
public LibScheme (string key) : this (Camellia.GenerateKey (key))
|
||||
{
|
||||
}
|
||||
|
||||
public LibScheme (uint align, string key) : this (align, Camellia.GenerateKey (key))
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
[Serializable]
|
||||
|
Loading…
x
Reference in New Issue
Block a user