SA-MP/saco/archive/Signer.h

28 lines
416 B
C
Raw Normal View History

2023-11-08 20:29:53 +08:00
#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);
2024-05-23 23:22:12 +08:00
#ifdef ARCTOOL
void SignHash(CHasher* pHasher);
BYTE* GetSignature();
DWORD GetSignatureLength();
#endif
2023-11-08 20:29:53 +08:00
void SetSignature(DWORD dwLength, BYTE* pbSignature);
BOOL VerifySignature(CHasher* pHasher, CKeyPair* pKeyPair);
};