ICLRStrongName Interface

.NET Framework (current version)
 

Provides basic global static functions for signing assemblies with strong names. All ICLRStrongName methods return standard COM HRESULTs.

MethodDescription
GetHashFromAssemblyFile MethodGets a hash of the specified assembly file, using the specified hash algorithm.
GetHashFromAssemblyFileW MethodGets a hash of the assembly file specified as a Unicode string, using the specified hash algorithm.
GetHashFromBlob MethodGets a hash of the assembly at the specified memory address, using the specified hash algorithm.
GetHashFromFile MethodGenerates a hash over the contents of the specified file.
GetHashFromFileW MethodGenerates a hash over the contents of the file specified by a Unicode string.
GetHashFromHandle MethodGenerates a hash over the contents of the file with the specified file handle, using the specified hash algorithm.
StrongNameCompareAssemblies MethodDetermines whether two assemblies differ only by their strong name signatures.
StrongNameFreeBuffer MethodFrees memory that was allocated with a previous call to a strong name method such as StrongNameGetPublicKey, StrongNameTokenFromPublicKey, or StrongNameSignatureGeneration.
StrongNameGetBlob MethodFills the specified buffer with the binary representation of the executable file at the specified address.
StrongNameGetBlobFromImage MethodGets a binary representation of the assembly image at the specified memory address.
StrongNameGetPublicKey MethodGets the public key from a private/public key pair.
StrongNameHashSize MethodGets the buffer size required for a hash, using the specified hash algorithm.
StrongNameKeyDelete MethodDeletes the specified key container.
StrongNameKeyGen MethodCreates a new public/private key pair for strong name use.
StrongNameKeyGenEx MethodGenerates a new public/private key pair with the specified key size for strong name use.
StrongNameKeyInstall MethodImports a public/private key pair into a container.
StrongNameSignatureGeneration MethodGenerates a strong name signature for the specified assembly.
StrongNameSignatureGenerationEx MethodGenerates a strong name signature for the specified assembly, based on the specified flags.
StrongNameSignatureSize MethodReturns the size of the strong name signature.
StrongNameSignatureVerification MethodGets a value indicating whether the assembly manifest at the supplied path contains a strong name signature, which is verified according to the specified flags.
StrongNameSignatureVerificationEx MethodGets a value indicating whether the assembly manifest at the supplied path contains a strong name signature.
StrongNameSignatureVerificationFromImage MethodVerifies that an assembly that has already been mapped to memory is valid for the associated public key.
StrongNameTokenFromAssembly MethodCreates a strong name token from the specified assembly file.
StrongNameTokenFromAssemblyEx MethodCreates a strong name token from the specified assembly file, and returns the public key.
StrongNameTokenFromPublicKey MethodGets a token representing a public key.

You can get an instance of the ICLRStrongName by calling the ICLRRuntimeInfo::GetInterface method using CLSID_CLRStrongName and IID_ICLRStrongName as parameters.

Platforms: See System Requirements.

Header: MetaHost.h

Library: Included as a resource in MSCorEE.dll

.NET Framework Versions: Available since 4

Hosting Interfaces
Hosting

Show: