Class DsaKey
Contains DSA private and public key.
public class DsaKey : Key, IDisposable
- Inheritance
-
DsaKey
- Implements
- Inherited Members
Constructors
DsaKey(BigInteger, BigInteger, BigInteger, BigInteger, BigInteger)
Initializes a new instance of the DsaKey class.
public DsaKey(BigInteger p, BigInteger q, BigInteger g, BigInteger y, BigInteger x)
Parameters
p
BigIntegerThe p.
q
BigIntegerThe q.
g
BigIntegerThe g.
y
BigIntegerThe y.
x
BigIntegerThe x.
DsaKey(SshKeyData)
Initializes a new instance of the DsaKey class.
public DsaKey(SshKeyData publicKeyData)
Parameters
publicKeyData
SshKeyDataThe encoded public key data.
DsaKey(byte[])
Initializes a new instance of the DsaKey class.
public DsaKey(byte[] privateKeyData)
Parameters
privateKeyData
byte[]DER encoded private key data.
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.
public override int KeyLength { get; }
Property Value
- int
The length of the key.
P
Gets the P.
public BigInteger P { get; }
Property Value
Public
Gets the DSA public key.
public override BigInteger[] Public { get; }
Property Value
- BigInteger[]
An array whose values are:
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)
Parameters
disposing
booltrue to release both managed and unmanaged resources; false to release only unmanaged resources.
~DsaKey()
Finalizes an instance of the DsaKey class.
protected ~DsaKey()