NCryptKeyName structure

The NCryptKeyName structure is used to contain information about a CNG key.

Syntax


typedef struct NCryptKeyName {
  LPWSTR pszName;
  LPWSTR pszAlgid;
  DWORD  dwLegacyKeySpec;
  DWORD  dwFlags;
} NCryptKeyName;

Members

pszName

A pointer to a null-terminated Unicode string that contains the name of the key.

pszAlgid

A pointer to a null-terminated Unicode string that contains the identifier of the cryptographic algorithm that the key was created with. This can be one of the standard CNG Algorithm Identifiers or the identifier for another registered algorithm.

dwLegacyKeySpec

A legacy identifier that specifies the type of key. This can be one of the following values.

ValueMeaning
AT_KEYEXCHANGE

The key is a key exchange key.

AT_SIGNATURE

The key is a signature key.

0

The key is none of the above types.

 

dwFlags

A set of flags that provide more information about the key. This can be zero or the following value.

ValueMeaning
NCRYPT_MACHINE_KEY_FLAG

The key applies to the local computer. If this flag is not present, the key applies to the current user.

 

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Header

Ncrypt.h

See also

NCryptEnumKeys

 

 

Community Additions

ADD
Show:
© 2014 Microsoft