C# Class EllipticCurveCipherSuitePlugin.SignatureAlgorithmECDSA

Inheritance: SignatureAlgorithm
Afficher le fichier Open project: juhovh/AaltoTLS

Méthodes publiques

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

Private Methods

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

Method Details

ImportPrivateKey() public méthode

public ImportPrivateKey ( byte keyData ) : AaltoTLS.PluginInterface.CertificatePrivateKey
keyData byte
Résultat AaltoTLS.PluginInterface.CertificatePrivateKey

SignData() public méthode

public SignData ( byte buffer, HashAlgorithm hashAlgorithm, AaltoTLS.PluginInterface.CertificatePrivateKey privateKey ) : byte[]
buffer byte
hashAlgorithm System.Security.Cryptography.HashAlgorithm
privateKey AaltoTLS.PluginInterface.CertificatePrivateKey
Résultat byte[]

SupportsHashAlgorithmType() public méthode

public SupportsHashAlgorithmType ( byte hashAlgorithm ) : bool
hashAlgorithm byte
Résultat bool

SupportsProtocolVersion() public méthode

public SupportsProtocolVersion ( ProtocolVersion version ) : bool
version AaltoTLS.PluginInterface.ProtocolVersion
Résultat bool

VerifyData() public méthode

public VerifyData ( byte buffer, HashAlgorithm hashAlgorithm, CertificatePublicKey publicKey, byte signature ) : bool
buffer byte
hashAlgorithm System.Security.Cryptography.HashAlgorithm
publicKey CertificatePublicKey
signature byte
Résultat bool