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

Implements digital signature where where asymmetric cipher is used,
Inheritance: DigitalSignature
Afficher le fichier Open project: sshnet/SSH.NET

Méthodes publiques

Méthode Description
Sign ( byte input ) : byte[]

Creates the signature.

Verify ( byte input, byte signature ) : bool

Verifies the signature.

Méthodes protégées

Méthode Description
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.

Method Details

CipherDigitalSignature() protected méthode

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.
Résultat System

DerEncode() protected méthode

Encodes hash using DER.
protected DerEncode ( byte hashData ) : byte[]
hashData byte The hash data.
Résultat byte[]

Hash() protected abstract méthode

Hashes the specified input.
protected abstract Hash ( byte input ) : byte[]
input byte The input.
Résultat byte[]

Sign() public méthode

Creates the signature.
public Sign ( byte input ) : byte[]
input byte The input.
Résultat byte[]

Verify() public méthode

Verifies the signature.
public Verify ( byte input, byte signature ) : bool
input byte The input.
signature byte The signature.
Résultat bool