C# Класс EllipticCurveCipherSuitePlugin.SignatureAlgorithmECDSA

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

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

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

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

Метод Описание
DER2OID ( byte oid ) : string
DERDecodeSignature ( byte data, int sigLength ) : 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
GetCngAlgorithm ( HashAlgorithm hashAlgorithm ) : CngAlgorithm

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

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

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

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

public SignData ( byte buffer, HashAlgorithm hashAlgorithm, AaltoTLS.PluginInterface.CertificatePrivateKey privateKey ) : byte[]
buffer 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 ( byte buffer, HashAlgorithm hashAlgorithm, CertificatePublicKey publicKey, byte signature ) : bool
buffer byte
hashAlgorithm System.Security.Cryptography.HashAlgorithm
publicKey CertificatePublicKey
signature byte
Результат bool