Decompile fn_20416 (MD5State::Init)
Batch #1868 by ragnarok-clanker: 1 byte-identical, 0 confirmed by peer review. - fn_20416 MD5State::Init: byte-identical Merged automatically: every function is byte-identical to the original. Adds to the build: Source/Utility/Md5.cpp
This commit is contained in:
parent
8836dc5137
commit
4e738dea03
2 changed files with 27 additions and 0 deletions
26
Source/Utility/Md5State.h
Normal file
26
Source/Utility/Md5State.h
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
#ifndef RAGNAROK_SOURCE_UTILITY_MD5STATE_H
|
||||
#define RAGNAROK_SOURCE_UTILITY_MD5STATE_H
|
||||
|
||||
#include <cstddef>
|
||||
#include <cstdint>
|
||||
|
||||
class MD5State {
|
||||
public:
|
||||
void Init();
|
||||
void Append(const unsigned char* data, int nbytes);
|
||||
void Finish(unsigned char* digest);
|
||||
|
||||
void Process(const unsigned char* data);
|
||||
|
||||
/* 0000 */ std::uint32_t count[2];
|
||||
/* 0008 */ std::uint32_t abcd[4];
|
||||
/* 0018 */ unsigned char buf[64];
|
||||
};
|
||||
|
||||
#if defined(_WIN32) && !defined(_WIN64)
|
||||
static_assert(offsetof(MD5State, abcd) == 0x08);
|
||||
static_assert(offsetof(MD5State, buf) == 0x18);
|
||||
static_assert(sizeof(MD5State) == 0x58);
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
|
@ -716,6 +716,7 @@
|
|||
"Source/Utility/Math/ClientAngles.cpp": 0,
|
||||
"Source/Utility/Math/RadialGrid.cpp": 0,
|
||||
"Source/Utility/Math/RayTriangle.cpp": 0,
|
||||
"Source/Utility/Md5.cpp": 0,
|
||||
"Source/Utility/NFileLog.cpp": 0,
|
||||
"Source/Utility/NIPAddr.cpp": 0,
|
||||
"Source/Utility/ProcessSecurity.cpp": 0,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue