C# Класс BaseCipherSuitePlugin.SignatureAlgorithmDSA

Наследование: SignatureAlgorithm
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
ImportPrivateKey ( byte keyData ) : AaltoTLS.PluginInterface.CertificatePrivateKey
SignData ( ProtocolVersion version, byte data, HashAlgorithm hashAlgorithm, AaltoTLS.PluginInterface.CertificatePrivateKey privateKey ) : byte[]
SupportsHashAlgorithmType ( byte hashAlgorithm ) : bool
SupportsProtocolVersion ( ProtocolVersion version ) : bool
VerifyData ( ProtocolVersion version, byte data, HashAlgorithm hashAlgorithm, CertificatePublicKey publicKey, byte signature ) : bool
VerifyData ( byte buffer, DSACryptoServiceProvider dsaKey, byte signature ) : bool

Приватные методы

Метод Описание
DERDecodeSignature ( byte data ) : byte[]
DERDecodeVector ( byte input, int idx, int &consumed ) : byte[]
DEREncodeSignature ( byte signature ) : byte[]
DEREncodeVector ( byte vector, int idx1, int length, byte output, int idx2 ) : void

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

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

public ImportPrivateKey ( byte keyData ) : AaltoTLS.PluginInterface.CertificatePrivateKey
keyData byte
Результат AaltoTLS.PluginInterface.CertificatePrivateKey

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

public SignData ( ProtocolVersion version, byte data, HashAlgorithm hashAlgorithm, AaltoTLS.PluginInterface.CertificatePrivateKey privateKey ) : byte[]
version AaltoTLS.PluginInterface.ProtocolVersion
data byte
hashAlgorithm System.Security.Cryptography.HashAlgorithm
privateKey AaltoTLS.PluginInterface.CertificatePrivateKey
Результат byte[]

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

public SupportsHashAlgorithmType ( byte hashAlgorithm ) : bool
hashAlgorithm byte
Результат bool

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

public SupportsProtocolVersion ( ProtocolVersion version ) : bool
version AaltoTLS.PluginInterface.ProtocolVersion
Результат bool

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

public VerifyData ( ProtocolVersion version, byte data, HashAlgorithm hashAlgorithm, CertificatePublicKey publicKey, byte signature ) : bool
version AaltoTLS.PluginInterface.ProtocolVersion
data byte
hashAlgorithm System.Security.Cryptography.HashAlgorithm
publicKey CertificatePublicKey
signature byte
Результат bool

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

public VerifyData ( byte buffer, DSACryptoServiceProvider dsaKey, byte signature ) : bool
buffer byte
dsaKey System.Security.Cryptography.DSACryptoServiceProvider
signature byte
Результат bool