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

Implements digital signature where where asymmetric cipher is used,
Наследование: DigitalSignature
Показать файл Открыть проект

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

Метод Описание
Sign ( byte input ) : byte[]

Creates the signature.

Verify ( byte input, byte signature ) : bool

Verifies the signature.

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

Метод Описание
CipherDigitalSignature ( ObjectIdentifier oid, AsymmetricCipher cipher ) : System

Initializes a new instance of the CipherDigitalSignature class.

DerEncode ( byte hashData ) : byte[]

Encodes hash using DER.

Hash ( byte input ) : byte[]

Hashes the specified input.

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

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

Initializes a new instance of the CipherDigitalSignature class.
protected CipherDigitalSignature ( ObjectIdentifier oid, AsymmetricCipher cipher ) : System
oid Renci.SshNet.Common.ObjectIdentifier The object identifier.
cipher AsymmetricCipher The cipher.
Результат System

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

Encodes hash using DER.
protected DerEncode ( byte hashData ) : byte[]
hashData byte The hash data.
Результат byte[]

Hash() защищенный абстрактный Метод

Hashes the specified input.
protected abstract Hash ( byte input ) : byte[]
input byte The input.
Результат byte[]

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

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

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

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