C# Класс Renci.SshNet.Security.Cryptography.DsaDigitalSignature

Implements DSA digital signature algorithm.
Наследование: DigitalSignature, IDisposable
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
Dispose ( bool disposing ) : void

Releases unmanaged and - optionally - managed resources

Описание методов

Dispose() публичный Метод

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
Результат void

Dispose() защищенный Метод

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.
Результат void

DsaDigitalSignature() публичный Метод

Initializes a new instance of the DsaDigitalSignature class.
is null.
public DsaDigitalSignature ( DsaKey key ) : System
key DsaKey The DSA key.
Результат System

Sign() публичный Метод

Creates the signature.
Invalid DSA key.
public Sign ( byte input ) : byte[]
input byte The input.
Результат byte[]

Verify() публичный Метод

Verifies the signature.
Invalid signature.
public Verify ( byte input, byte signature ) : bool
input byte The input.
signature byte The signature.
Результат bool