Gray C++ Libraries  0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
GrayLib::cFileDigSig Class Reference

#include <cFileDigSig.h>

Public Member Functions

 UNITTEST_FRIEND (cFileDigSig)
 

Static Public Member Functions

static HRESULT GRAYCALL VerifyDigSig (const FILECHAR_t *pszSourceFile, cString &rsResult)
 

Detailed Description

verifying the embedded digital signature of a PE file (EXE,DLL,OCX,etc) by using the "::WinVerifyTrust()" function. RSA+SHA1 signature. Use the windows certificate store.

  1. find the signature block in the file.
  2. Create the SHA1 hash for the rest of the files data.
  3. RSA encode the SHA1 hash.
  4. Validate the RSA encode against the specified public key.
    Note
    linux see: http://disec.sourceforge.net/

Member Function Documentation

◆ UNITTEST_FRIEND()

GrayLib::cFileDigSig::UNITTEST_FRIEND ( cFileDigSig  )

◆ VerifyDigSig()

HRESULT GrayLib::cFileDigSig::VerifyDigSig ( const FILECHAR_t pszSourceFile,
cString rsResult 
)
static

The documentation for this class was generated from the following files: