mirror of
https://github.com/dashr9230/SA-MP.git
synced 2025-01-06 01:23:30 +08:00
23 lines
323 B
C
23 lines
323 B
C
|
|
||
|
#pragma once
|
||
|
|
||
|
#include <windows.h>
|
||
|
#include "CryptoContext.h"
|
||
|
|
||
|
class CHasher
|
||
|
{
|
||
|
private:
|
||
|
static DWORD ms_dwHashAlgorithm;
|
||
|
|
||
|
HCRYPTHASH m_hCryptHash;
|
||
|
CCryptoContext* m_pContext;
|
||
|
|
||
|
public:
|
||
|
CHasher(CCryptoContext* pContext);
|
||
|
~CHasher(void);
|
||
|
|
||
|
void AddData(DWORD dwDataLength, BYTE* pbData);
|
||
|
HCRYPTHASH GetContainer();
|
||
|
|
||
|
};
|