Strong Naming (Unmanaged API Reference)

 

The strong naming API enables a client to administer strong name signing for assemblies.

Signing an assembly with a strong name adds a public key encryption to the file containing the assembly manifest. Strong name signing helps verify name uniqueness, prevents name spoofing, and provides callers with a unique identity when a reference is resolved. However, no level of trust is associated with a strong name.

Strong Naming Global Static Functions
Describes the unmanaged global static functions that the strong naming API uses.

System_CAPS_ICON_note.jpg Note

All of these functions have been deprecated starting with the .NET Framework 4. For suggested alternatives, see the ICLRStrongName interface.

GetHashFromAssemblyFile Function
Gets a hash of the specified assembly file, using the specified hash algorithm. Deprecated starting with the .NET Framework 4.

GetHashFromAssemblyFileW Function
Gets a hash of the assembly file specified as a Unicode string, using the specified hash algorithm. Deprecated starting with the .NET Framework 4.

GetHashFromBlob Function
Gets a hash of the assembly at the specified memory address, using the specified hash algorithm. Deprecated starting with the .NET Framework 4.

GetHashFromFile Function
Generates a hash over the contents of the specified file. Deprecated starting with the .NET Framework 4.

GetHashFromFileW Function
Generates a hash over the contents of the file specified by a Unicode string. Deprecated starting with the .NET Framework 4.

GetHashFromHandle Function
Generates a hash over the contents of the file with the specified file handle, using the specified hash algorithm. Deprecated starting with the .NET Framework 4.

StrongNameCompareAssemblies Function
Determines whether two assemblies differ only by their strong name signatures. Deprecated starting with the .NET Framework 4.

StrongNameErrorInfo Function
Gets the last error code that was raised by one of the strong name functions.

StrongNameFreeBuffer Function
Frees memory that was allocated with a previous call to a strong name function such as StrongNameGetPublicKey, StrongNameTokenFromPublicKey, or StrongNameSignatureGeneration. Deprecated starting with the .NET Framework 4.

StrongNameGetBlob Function
Fills the specified buffer with the binary representation of the executable file at the specified address. Deprecated starting with the .NET Framework 4.

StrongNameGetBlobFromImage Function
Gets a binary representation of the assembly image at the specified memory address. Deprecated starting with the .NET Framework 4.

StrongNameGetPublicKey Function
Gets the public key from a private/public key pair. Deprecated starting with the .NET Framework 4.

StrongNameHashSize Function
Gets the buffer size required for a hash, using the specified hash algorithm. Deprecated starting with the .NET Framework 4.

StrongNameKeyDelete Function
Deletes the specified key container. Deprecated starting with the .NET Framework 4.

StrongNameKeyGen Function
Creates a new public/private key pair for strong name use. Deprecated starting with the .NET Framework 4.

StrongNameKeyGenEx Function
Generates a new public/private key pair with the specified key size for strong name use. Deprecated starting with the .NET Framework 4.

StrongNameKeyInstall Function
Imports a public/private key pair into a container. Deprecated starting with the .NET Framework 4.

StrongNameSignatureGeneration Function
Generates a strong name signature for the specified assembly. Deprecated starting with the .NET Framework 4.

StrongNameSignatureGenerationEx Function
Generates a strong name signature for the specified assembly, based on the specified flags. Deprecated starting with the .NET Framework 4.

StrongNameSignatureSize Function
Returns the size of the strong name signature. Deprecated starting with the .NET Framework 4.

StrongNameSignatureVerification Function
Gets a value indicating whether the assembly manifest at the supplied path contains a strong name signature, which is verified according to the specified flags. Deprecated starting with the .NET Framework 4.

StrongNameSignatureVerificationEx Function
Gets a value indicating whether the assembly manifest at the supplied path contains a strong name signature. Deprecated starting with the .NET Framework 4.

StrongNameSignatureVerificationFromImage Function
Verifies that an assembly that has already been mapped to memory is valid for the associated public key. Deprecated starting with the .NET Framework 4.

StrongNameTokenFromAssembly Function
Creates a strong name token from the specified assembly file. Deprecated starting with the .NET Framework 4.

StrongNameTokenFromAssemblyEx Function
Creates a strong name token from the specified assembly file, and returns the public key. Deprecated starting with the .NET Framework 4.

StrongNameTokenFromPublicKey Function
Gets a token representing a public key. Deprecated starting with the .NET Framework 4.

Strong Naming Structure
Describes the unmanaged structure that the strong naming API uses to administer strong name signing for assemblies..

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

ICLRStrongName Interface
Unmanaged API Reference

Show: