Table of Contents

Class StrongNameSigner

Namespace
AsmResolver.PE.DotNet.StrongName
Assembly
AsmResolver.PE.dll

Provides a mechanism for adding a strong name signature to a PE image.

public class StrongNameSigner
Inheritance
StrongNameSigner
Inherited Members

Constructors

StrongNameSigner(StrongNamePrivateKey)

Creates a new strong name signer instance.

public StrongNameSigner(StrongNamePrivateKey privateKey)

Parameters

privateKey StrongNamePrivateKey

The private key to use.

Properties

PrivateKey

Gets the private key to use for signing the image.

public StrongNamePrivateKey PrivateKey { get; }

Property Value

StrongNamePrivateKey

Methods

SignImage(Stream, AssemblyHashAlgorithm)

Finalizes a delay-signed PE image.

public void SignImage(Stream imageStream, AssemblyHashAlgorithm hashAlgorithm)

Parameters

imageStream Stream

The stream containing the image to sign.

hashAlgorithm AssemblyHashAlgorithm

The hashing algorithm to use.

Exceptions

BadImageFormatException

Occurs when the image does not contain a valid .NET image.

ArgumentException

Occurs when the image does not contain a strong name directory of the right size.