NCryptCreateClaim function (ncrypt.h)

Creates a key attestation claim.

Syntax

SECURITY_STATUS NCryptCreateClaim(
  [in]           NCRYPT_KEY_HANDLE hSubjectKey,
  [in, optional] NCRYPT_KEY_HANDLE hAuthorityKey,
  [in]           DWORD             dwClaimType,
  [in, optional] NCryptBufferDesc  *pParameterList,
  [out]          PBYTE             pbClaimBlob,
  [in]           DWORD             cbClaimBlob,
  [out]          DWORD             *pcbResult,
  [in]           DWORD             dwFlags
);

Parameters

[in] hSubjectKey

The subject key handle that the claim is created for.

[in, optional] hAuthorityKey

The authority key handle that the claim is based on.

[in] dwClaimType

The type of claim.

[in, optional] pParameterList

An optional parameter list.

[out] pbClaimBlob

Output of the created claim blob.

[in] cbClaimBlob

[out] pcbResult

The output of the created claim blob.

[in] dwFlags

As of Windows 10, no flags are defined. This parameter should be set to 0.

Return value

Returns a status code that indicates the success or failure of the function.

Requirements

Requirement Value
Minimum supported client Windows 10 [desktop apps | UWP apps]
Minimum supported server Windows Server 2016 [desktop apps | UWP apps]
Target Platform Windows
Header ncrypt.h
Library Ncrypt.lib
DLL Ncrypt.dll