mirror of
https://github.com/crskycode/GARbro.git
synced 2026-07-08 01:30:18 +08:00
generalized CPZ archives access.
support different encryption schemes.
This commit is contained in:
@@ -27,6 +27,8 @@ using GameRes.Utility;
|
||||
|
||||
namespace GameRes.Formats.Cmvs
|
||||
{
|
||||
public enum Md5Variant { A, B }
|
||||
|
||||
public abstract class MD5
|
||||
{
|
||||
protected uint[] m_state;
|
||||
@@ -53,6 +55,14 @@ namespace GameRes.Formats.Cmvs
|
||||
m_buffer = new uint[16];
|
||||
}
|
||||
|
||||
static public MD5 Create (Md5Variant variant)
|
||||
{
|
||||
if (Md5Variant.A == variant)
|
||||
return new Md5VariantA();
|
||||
else
|
||||
return new Md5VariantB();
|
||||
}
|
||||
|
||||
protected abstract uint[] InitState ();
|
||||
protected abstract void SetResult (uint[] data);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user