C# Class BaseCipherSuitePlugin.SignatureAlgorithmDSA

Inheritance: SignatureAlgorithm
Afficher le fichier Open project: juhovh/AaltoTLS Class Usage Examples

Méthodes publiques

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

Private Methods

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

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 ( 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
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 ( 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
Résultat bool

VerifyData() public méthode

public VerifyData ( byte buffer, DSACryptoServiceProvider dsaKey, byte signature ) : bool
buffer byte
dsaKey System.Security.Cryptography.DSACryptoServiceProvider
signature byte
Résultat bool