Class DsaKey
- Namespace
- Renci.SshNet.Security
- Assembly
- Renci.SshNet.dll
Contains DSA private and public key.
public class DsaKey : Key, IDisposable
Inheritance
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
G
Gets the G.
public BigInteger G { get; }
Property Value
KeyLength
Gets the length of the key in bits.
public override int KeyLength { get; }
Property Value
P
Gets the P.
public BigInteger P { get; }
Property Value
Public
Gets the DSA public key.
public override BigInteger[] Public { get; }
Property Value
Q
Gets the Q.
public BigInteger Q { get; }
Property Value
X
Gets private key X.
public BigInteger X { get; }
Property Value
Y
Gets public key Y.
public BigInteger Y { get; }
Property Value
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)