PublicKeyBlob Structure

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

Syntax

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: See System Requirements.

Header: StrongName.h

Library: Included as a resource in MsCorEE.dll

.NET Framework Versions: Available since 1.0

See also