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
StrongNamePrivateKeyThe private key to use.
Properties
PrivateKey
Gets the private key to use for signing the image.
public StrongNamePrivateKey PrivateKey { get; }
Property Value
Methods
SignImage(Stream, AssemblyHashAlgorithm)
Finalizes a delay-signed PE image.
public void SignImage(Stream imageStream, AssemblyHashAlgorithm hashAlgorithm)
Parameters
imageStream
StreamThe stream containing the image to sign.
hashAlgorithm
AssemblyHashAlgorithmThe 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.