NCRYPT_KEY_BLOB_HEADER structure (ncrypt.h)

The NCRYPT_KEY_BLOB_HEADER structure contains a key BLOB. This structure is used by the NCryptExportKey and NCryptImportKey functions.

Syntax

typedef struct _NCRYPT_KEY_BLOB_HEADER {
  ULONG cbSize;
  ULONG dwMagic;
  ULONG cbAlgName;
  ULONG cbKeyData;
} NCRYPT_KEY_BLOB_HEADER, *PNCRYPT_KEY_BLOB_HEADER;

Members

cbSize

The size, in bytes, of this structure.

dwMagic

Identifies the BLOB type. This can be one of the following values.

  • NCRYPT_CIPHER_KEY_BLOB_MAGIC
  • NCRYPT_PROTECTED_KEY_BLOB_MAGIC

cbAlgName

Size, in bytes, of the null-terminated algorithm name, including the terminating zero.

cbKeyData

Size, in bytes, of the BLOB.

Requirements

Requirement Value
Minimum supported client Windows 8 [desktop apps only]
Minimum supported server Windows Server 2012 [desktop apps only]
Header ncrypt.h

See also

NCryptExportKey

NCryptImportKey