Partager via


PublicKeyBlob Structure

Represents, in binary format, the public key of a public/private key pair.

typedef struct {
    unsigned int SigAlgId;
    unsigned int HashAlgId;
    ULONG cbPublicKey;
    BYTE PublicKey[1]
} PublicKeyBlob; 

Members

Member

Description

SigAlgId

The identifier for the signature algorithm (of type ALG_ID, as defined in WinCrypt.h) of the public key.

HashAlgId

The identifier for the hash algorithm (of type ALG_ID, as defined in WinCrypt.h) of the public key.

cbPublicKey

The length of the key in bytes.

PublicKey

A variable-length byte array that contains the key value in the format returned by the CryptoAPI.

Remarks

The PublicKeyBlob structure is used by StrongNameGetPublicKey, StrongNameSignatureGeneration, and other strong name functions to represent the public key of a public/private key pair.

Requirements

Platforms: Windows 2000, Windows XP, Windows Server 2003 family

Header: StrongName.h

Library: Included as a resource in MsCorEE.dll

.NET Framework Version: 2.0, 1.1, 1.0

See Also

Concepts

Strong Name Scenario

StrongNameGetPublicKey Function

StrongNameSignatureGeneration Function

Strong Naming Structures