Table of Contents

Class DsaDigitalSignature

Namespace
Renci.SshNet.Security.Cryptography
Assembly
Renci.SshNet.dll

Implements DSA digital signature algorithm.

public class DsaDigitalSignature : DigitalSignature, IDisposable

Inheritance

Implements

Inherited Members

Constructors

DsaDigitalSignature(DsaKey)

Initializes a new instance of the Renci.SshNet.Security.Cryptography.DsaDigitalSignature class.

public DsaDigitalSignature(DsaKey key)

Parameters

key DsaKey

The DSA key.

Exceptions

ArgumentNullException

key is null.

Methods

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public void Dispose()

Dispose(bool)

Releases unmanaged and - optionally - managed resources.

protected virtual void Dispose(bool disposing)

Parameters

disposing bool

true to release both managed and unmanaged resources; false to release only unmanaged resources.

~DsaDigitalSignature()

Finalizes an instance of the Renci.SshNet.Security.Cryptography.DsaDigitalSignature class.

protected ~DsaDigitalSignature()

Sign(byte[])

Creates the signature.

public override byte[] Sign(byte[] input)

Parameters

input byte[]

The input.

Returns

byte[]

Signed input data.

Exceptions

SshException

Invalid DSA key.

Verify(byte[], byte[])

Verifies the signature.

public override bool Verify(byte[] input, byte[] signature)

Parameters

input byte[]

The input.

signature byte[]

The signature.

Returns

bool

true if signature was successfully verified; otherwise false.

Exceptions

InvalidOperationException

Invalid signature.