Partager via


PLAINTEXTKEYBLOB structure

The PLAINTEXTKEYBLOB structure is used to contain parameter header information for a plaintext key. This structure is used with the pbData parameter for CryptImportKey and CryptExportKey functions.

Syntax

typedef struct _PLAINTEXTKEYBLOB {
  BLOBHEADER hdr;
  DWORD      dwKeySize;
  BYTE       rgbKeyData[];
} PLAINTEXTKEYBLOB, *PPLAINTEXTKEYBLOB;

Members

  • hdr
    A PUBLICKEYSTRUC that indicates the type of BLOB and the algorithm that the key uses.

  • dwKeySize
    The size, in bytes, of the key material.

  • rgbKeyData[]
    The key material.

Requirements

Minimum supported client

Windows XP [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

Wincrypt.h