SA-MP/saco/archive/Signer.h
2024-05-29 16:32:30 +08:00

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);
};