| Server IP : 209.209.40.120 / Your IP : 216.73.217.112 Web Server : Microsoft-IIS/10.0 System : Windows NT NEWWWW 10.0 build 17763 (Windows Server 2019) i586 User : NEWWWW$ ( 0) PHP Version : 8.3.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /Program Files (x86)/Windows Kits/10/Include/10.0.19041.0/um/ |
Upload File : |
/*++
Copyright (c) Microsoft Corporation. All rights reserved.
Module Name:
winenclaveapi.h
Abstract:
This module includes definitions of APIs that are exposed to software
enclaves.
--*/
#ifndef _WINENCLAVEAPI_
#define _WINENCLAVEAPI_
#ifdef __cplusplus
extern "C" {
#endif
#pragma region Desktop Family or OneCore Family
#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
//
// Attestation APIs.
//
STDAPI
EnclaveGetAttestationReport(
_In_opt_ const UINT8 EnclaveData[ENCLAVE_REPORT_DATA_LENGTH],
_Out_writes_bytes_to_opt_(BufferSize, *OutputSize) PVOID Report,
_In_ UINT32 BufferSize,
_Out_ UINT32 *OutputSize
);
STDAPI
EnclaveVerifyAttestationReport(
_In_ UINT32 EnclaveType,
_In_reads_bytes_(ReportSize) const VOID *Report,
_In_ UINT32 ReportSize
);
//
// Sealing/unsealing APIs.
//
STDAPI
EnclaveSealData(
_In_reads_bytes_(DataToEncryptSize) const VOID *DataToEncrypt,
_In_ UINT32 DataToEncryptSize,
_In_ ENCLAVE_SEALING_IDENTITY_POLICY IdentityPolicy,
_In_ UINT32 RuntimePolicy,
_Out_writes_bytes_to_opt_(BufferSize, ProtectedBlobSize) PVOID ProtectedBlob,
_In_ UINT32 BufferSize,
_Out_ UINT32 *ProtectedBlobSize
);
STDAPI
EnclaveUnsealData(
_In_reads_bytes_(ProtectedBlobSize) const VOID *ProtectedBlob,
_In_ UINT32 ProtectedBlobSize,
_Out_writes_bytes_to_opt_(BufferSize, DecryptedDataSize) PVOID DecryptedData,
_In_ UINT32 BufferSize,
_Out_ UINT32 *DecryptedDataSize,
_Out_opt_ ENCLAVE_IDENTITY *SealingIdentity,
_Out_opt_ UINT32 *UnsealingFlags
);
//
// Enclave properties.
//
STDAPI
EnclaveGetEnclaveInformation(
_In_ UINT32 InformationSize,
_Out_writes_bytes_(InformationSize) ENCLAVE_INFORMATION *EnclaveInformation
);
#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */
#pragma endregion
#ifdef __cplusplus
}
#endif
#endif /* _WINENCLAVEAPI_ */