C# Class EllipticCurveCipherSuitePlugin.SignatureAlgorithmECDSA

Inheritance: SignatureAlgorithm
Mostra file Open project: juhovh/AaltoTLS

Public Methods

Method 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

Method 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 method

public ImportPrivateKey ( byte keyData ) : AaltoTLS.PluginInterface.CertificatePrivateKey
keyData byte
return AaltoTLS.PluginInterface.CertificatePrivateKey

SignData() public method

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

SupportsHashAlgorithmType() public method

public SupportsHashAlgorithmType ( byte hashAlgorithm ) : bool
hashAlgorithm byte
return bool

SupportsProtocolVersion() public method

public SupportsProtocolVersion ( ProtocolVersion version ) : bool
version AaltoTLS.PluginInterface.ProtocolVersion
return bool

VerifyData() public method

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