C# 클래스 Renci.SshNet.Security.Cryptography.CipherDigitalSignature

Implements digital signature where where asymmetric cipher is used,
상속: DigitalSignature
파일 보기 프로젝트 열기: sshnet/SSH.NET

공개 메소드들

메소드 설명
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