mirror of
https://github.com/dashr9230/SA-MP.git
synced 2024-12-22 14:37:29 +08:00
28 lines
416 B
C++
28 lines
416 B
C++
|
|
#pragma once
|
|
|
|
#include <windows.h>
|
|
#include "Hasher.h"
|
|
#include "KeyPair.h"
|
|
|
|
class CSigner
|
|
{
|
|
private:
|
|
BYTE* m_pbSignature;
|
|
DWORD m_dwLength;
|
|
|
|
public:
|
|
CSigner(void);
|
|
~CSigner(void);
|
|
|
|
#ifdef ARCTOOL
|
|
void SignHash(CHasher* pHasher);
|
|
BYTE* GetSignature();
|
|
DWORD GetSignatureLength();
|
|
#endif
|
|
|
|
void SetSignature(DWORD dwLength, BYTE* pbSignature);
|
|
BOOL VerifySignature(CHasher* pHasher, CKeyPair* pKeyPair);
|
|
|
|
};
|