mirror of
https://github.com/Xevion/easy7zip.git
synced 2025-12-11 10:07:11 -06:00
Add some hash functions
- new: md2, md4, md5, sha384, sha512, xxhash-32, xxhash-64 - put Blake2sp hash stuff back to rar code - added the hashes to GUI and Explorer Menu code
This commit is contained in:
@@ -1,15 +1,16 @@
|
||||
// XXH64Reg.cpp
|
||||
// XXH64Reg.cpp /TR 2018-11-02
|
||||
|
||||
#include "StdAfx.h"
|
||||
|
||||
#define XXH_STATIC_LINKING_ONLY
|
||||
#include "../../C/CpuArch.h"
|
||||
|
||||
#define XXH_STATIC_LINKING_ONLY
|
||||
#include "../../C/zstd/xxhash.h"
|
||||
|
||||
#include "../Common/MyCom.h"
|
||||
|
||||
#include "../7zip/Common/RegisterCodec.h"
|
||||
|
||||
// XXH64
|
||||
class CXXH64Hasher:
|
||||
public IHasher,
|
||||
public CMyUnknownImp
|
||||
@@ -40,5 +41,4 @@ STDMETHODIMP_(void) CXXH64Hasher::Final(Byte *digest) throw()
|
||||
UInt64 val = XXH64_digest(_ctx);
|
||||
SetUi64(digest, val);
|
||||
}
|
||||
|
||||
REGISTER_HASHER(CXXH64Hasher, 0x204, "XXH64", 8)
|
||||
|
||||
Reference in New Issue
Block a user