C# 클래스 NetSparkle.NetSparkleDSAVerificator

Class to verify a DSA signature
파일 보기 프로젝트 열기: Deadpikle/NetSparkle 1 사용 예제들

공개 메소드들

메소드 설명
NetSparkleDSAVerificator ( SecurityMode mode, String publicKey = null, String publicKeyFile = "NetSparkle_DSA.pub" ) : System

Constructor

PublicKeyExists ( ) : System.Boolean

Determines if a public key exists

SignatureNeeded ( ) : bool

Returns if we need an signature

VerifyDSASignature ( String signature, Stream stream ) : ValidationResult

Verifies the DSA signature

VerifyDSASignatureFile ( String signature, String binaryPath ) : ValidationResult

Verifies the DSA signature

VerifyDSASignatureOfString ( String signature, String data ) : ValidationResult

Verifies the DSA signature of string data

비공개 메소드들

메소드 설명
CheckSecurityMode ( String signature, ValidationResult &result ) : System.Boolean
TryGetFileResource ( String publicKey, Stream data ) : Stream

Gets a file resource

TryGetResourceStream ( String publicKey ) : Stream

Get a resource stream

메소드 상세

NetSparkleDSAVerificator() 공개 메소드

Constructor
public NetSparkleDSAVerificator ( SecurityMode mode, String publicKey = null, String publicKeyFile = "NetSparkle_DSA.pub" ) : System
mode SecurityMode The security mode of the validator. Control what parts has to be exist
publicKey String the public key as string (will be prefered before the file)
publicKeyFile String the public key file
리턴 System

PublicKeyExists() 공개 메소드

Determines if a public key exists
public PublicKeyExists ( ) : System.Boolean
리턴 System.Boolean

SignatureNeeded() 공개 메소드

Returns if we need an signature
public SignatureNeeded ( ) : bool
리턴 bool

VerifyDSASignature() 공개 메소드

Verifies the DSA signature
public VerifyDSASignature ( String signature, Stream stream ) : ValidationResult
signature String expected signature
stream Stream the stream of the binary
리턴 ValidationResult

VerifyDSASignatureFile() 공개 메소드

Verifies the DSA signature
public VerifyDSASignatureFile ( String signature, String binaryPath ) : ValidationResult
signature String expected signature
binaryPath String the path to the binary
리턴 ValidationResult

VerifyDSASignatureOfString() 공개 메소드

Verifies the DSA signature of string data
public VerifyDSASignatureOfString ( String signature, String data ) : ValidationResult
signature String expected signature
data String the data
리턴 ValidationResult