C# Class Renci.SshNet.Security.Cryptography.DsaDigitalSignature

Implements DSA digital signature algorithm.
Inheritance: DigitalSignature, IDisposable
Mostra file Open project: sshnet/SSH.NET Class Usage Examples

Public Methods

Method Description
Dispose ( ) : void

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

DsaDigitalSignature ( DsaKey key ) : System

Initializes a new instance of the DsaDigitalSignature class.

Sign ( byte input ) : byte[]

Creates the signature.

Verify ( byte input, byte signature ) : bool

Verifies the signature.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Releases unmanaged and - optionally - managed resources

Method Details

Dispose() public method

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
return void

Dispose() protected method

Releases unmanaged and - optionally - managed resources
protected Dispose ( bool disposing ) : void
disposing bool true to release both managed and unmanaged resources; false to release only unmanaged resources.
return void

DsaDigitalSignature() public method

Initializes a new instance of the DsaDigitalSignature class.
is null.
public DsaDigitalSignature ( DsaKey key ) : System
key DsaKey The DSA key.
return System

Sign() public method

Creates the signature.
Invalid DSA key.
public Sign ( byte input ) : byte[]
input byte The input.
return byte[]

Verify() public method

Verifies the signature.
Invalid signature.
public Verify ( byte input, byte signature ) : bool
input byte The input.
signature byte The signature.
return bool