Table of Contents

Class DsaKey

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

Contains DSA private and public key.

public class DsaKey : Key, IDisposable

Inheritance

Key

Implements

Inherited Members

Constructors

DsaKey(SshKeyData)

Initializes a new instance of the Renci.SshNet.Security.DsaKey class.

public DsaKey(SshKeyData publicKeyData)

Parameters

publicKeyData SshKeyData

The encoded public key data.

DsaKey(byte[])

Initializes a new instance of the Renci.SshNet.Security.DsaKey class.

public DsaKey(byte[] privateKeyData)

Parameters

privateKeyData byte[]

DER encoded private key data.

DsaKey(BigInteger, BigInteger, BigInteger, BigInteger, BigInteger)

Initializes a new instance of the Renci.SshNet.Security.DsaKey class.

public DsaKey(BigInteger p, BigInteger q, BigInteger g, BigInteger y, BigInteger x)

Parameters

p BigInteger

The p.

q BigInteger

The q.

g BigInteger

The g.

y BigInteger

The y.

x BigInteger

The x.

Properties

DigitalSignature

Gets the digital signature.

protected override DigitalSignature DigitalSignature { get; }

Property Value

DigitalSignature

G

Gets the G.

public BigInteger G { get; }

Property Value

BigInteger

KeyLength

Gets the length of the key in bits.

public override int KeyLength { get; }

Property Value

int

P

Gets the P.

public BigInteger P { get; }

Property Value

BigInteger

Public

Gets the DSA public key.

public override BigInteger[] Public { get; }

Property Value

BigInteger[]

Q

Gets the Q.

public BigInteger Q { get; }

Property Value

BigInteger

X

Gets private key X.

public BigInteger X { get; }

Property Value

BigInteger

Y

Gets public key Y.

public BigInteger Y { get; }

Property Value

BigInteger

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.