59 for (
n = 0;
n < cbHash; ++
n)
94 ConPuts(
StdOut,
L" -hashfile -- Display cryptographic hash over a file\n");
97 ConPuts(
StdOut,
L"CertUtil -hashfile -? -- Display help text for the 'hashfile' verb\n");
137 ConPuts(
StdOut,
L"CertUtil: -hashfile command completed successfully\n");
void ConPuts(FILE *fp, LPCWSTR psz)
#define ConInitStdStreams()
void ConPrintf(FILE *fp, LPCWSTR psz,...)
static BOOL hash_file(LPCWSTR Filename)
static void print_usage()
BOOL WINAPI CryptCreateHash(HCRYPTPROV hProv, ALG_ID Algid, HCRYPTKEY hKey, DWORD dwFlags, HCRYPTHASH *phHash)
BOOL WINAPI CryptGetHashParam(HCRYPTHASH hHash, DWORD dwParam, BYTE *pbData, DWORD *pdwDataLen, DWORD dwFlags)
BOOL WINAPI CryptDestroyHash(HCRYPTHASH hHash)
BOOL WINAPI CryptReleaseContext(HCRYPTPROV hProv, DWORD dwFlags)
BOOL WINAPI CryptHashData(HCRYPTHASH hHash, const BYTE *pbData, DWORD dwDataLen, DWORD dwFlags)
BOOL WINAPI CryptAcquireContextW(HCRYPTPROV *phProv, LPCWSTR pszContainer, LPCWSTR pszProvider, DWORD dwProvType, DWORD dwFlags)
#define ReadFile(a, b, c, d, e)
#define INVALID_HANDLE_VALUE
IN PVCB IN PBCB OUT PDIRENT IN USHORT IN POEM_STRING Filename
#define FILE_FLAG_SEQUENTIAL_SCAN
_Check_return_ _CRTIMP int __cdecl _wcsicmp(_In_z_ const wchar_t *_Str1, _In_z_ const wchar_t *_Str2)
DWORD WINAPI GetLastError(void)
#define CRYPT_VERIFYCONTEXT