blob: 200926996491b387d5ff400603151e17131eaf9d [file] [log] [blame]
//-------------------------------------------------------------------------------------------------
// <copyright file="cryputil.h" company="Microsoft">
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// The use and distribution terms for this software are covered by the
// Common Public License 1.0 (http://opensource.org/licenses/cpl1.0.php)
// which can be found in the file CPL.TXT at the root of this distribution.
// By using this software in any fashion, you are agreeing to be bound by
// the terms of this license.
//
// You must not remove this notice, or any other, from this software.
// </copyright>
//
// <summary>
// Cryptography helper functions.
// </summary>
//-------------------------------------------------------------------------------------------------
#pragma once
#ifdef __cplusplus
extern "C" {
#endif
// function declarations
HRESULT CrypHashFile(
__in_z LPCWSTR wzFilePath,
__in DWORD dwProvType,
__in ALG_ID algid,
__out_bcount(cbHash) BYTE* pbHash,
__in DWORD cbHash,
__out_opt DWORD64* pqwBytesHashed
);
HRESULT CrypHashFileHandle(
__in HANDLE hFile,
__in DWORD dwProvType,
__in ALG_ID algid,
__out_bcount(cbHash) BYTE* pbHash,
__in DWORD cbHash,
__out_opt DWORD64* pqwBytesHashed
);
#ifdef __cplusplus
}
#endif