NCryptCreateClaim function

[Some information relates to pre-released product which may be substantially modified before it's commercially released. Microsoft makes no warranties, express or implied, with respect to the information provided here.]

Creates a key attestation claim.

Syntax


SECURITY_STATUS WINAPI NCryptCreateClaim(
  _In_     NCRYPT_KEY_HANDLE                                    hSubjectKey,
  _In_opt_ NCRYPT_KEY_HANDLE                                    hAuthorityKey,
  _In_     DWORD                                                dwClaimType,
  _In_opt_ NCryptBufferDesc                                     *pParameterList,
  _Out_    _writes_bytes_to_opt_(cbClaimBlob, *pcbResult) PBYTE pbClaimBlob,
  _In_     DWORD                                                cbClaimBlob,
  _Out_    DWORD                                                *pcbResult,
  _In_     DWORD                                                dwFlags
);

Parameters

hSubjectKey [in]

The subject key handle that the claim is created for.

hAuthorityKey [in, optional]

The authority key handle that the claim is based on.

dwClaimType [in]

The type of claim.

pParameterList [in, optional]

An optional parameter list.

pbClaimBlob [out]

Output of the created claim blob.

cbClaimBlob [in]
pcbResult [out]

The output of the created claim blob.

dwFlags [in]

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

Minimum supported client

Windows 10 [desktop apps | UWP apps]

Minimum supported server

Windows Server 2016 [desktop apps | Windows Store apps]

Header

Ncrypt.h

Library

Ncrypt.lib

DLL

Ncrypt.dll

 

 

Show: