C# Class Org.BouncyCastle.Crypto.Tls.TlsDsaSigner

Inheritance: TlsSigner
Exibir arquivo Open project: nonorganic/dssnet

Public Methods

Method Description
CreateSigner ( SecureRandom random, AsymmetricKeyParameter privateKey ) : ISigner
CreateVerifyer ( AsymmetricKeyParameter publicKey ) : ISigner
GenerateRawSignature ( SecureRandom random, AsymmetricKeyParameter privateKey, byte md5andsha1 ) : byte[]
IsValidPublicKey ( AsymmetricKeyParameter publicKey ) : bool
VerifyRawSignature ( byte sigBytes, AsymmetricKeyParameter publicKey, byte md5andsha1 ) : bool

Protected Methods

Method Description
CreateDsaImpl ( ) : IDsa
MakeSigner ( IDigest d, bool forSigning, ICipherParameters cp ) : ISigner

Method Details

CreateDsaImpl() protected abstract method

protected abstract CreateDsaImpl ( ) : IDsa
return IDsa

CreateSigner() public method

public CreateSigner ( SecureRandom random, AsymmetricKeyParameter privateKey ) : ISigner
random Org.BouncyCastle.Security.SecureRandom
privateKey AsymmetricKeyParameter
return ISigner

CreateVerifyer() public method

public CreateVerifyer ( AsymmetricKeyParameter publicKey ) : ISigner
publicKey AsymmetricKeyParameter
return ISigner

GenerateRawSignature() public method

public GenerateRawSignature ( SecureRandom random, AsymmetricKeyParameter privateKey, byte md5andsha1 ) : byte[]
random Org.BouncyCastle.Security.SecureRandom
privateKey AsymmetricKeyParameter
md5andsha1 byte
return byte[]

IsValidPublicKey() public abstract method

public abstract IsValidPublicKey ( AsymmetricKeyParameter publicKey ) : bool
publicKey AsymmetricKeyParameter
return bool

MakeSigner() protected method

protected MakeSigner ( IDigest d, bool forSigning, ICipherParameters cp ) : ISigner
d IDigest
forSigning bool
cp ICipherParameters
return ISigner

VerifyRawSignature() public method

public VerifyRawSignature ( byte sigBytes, AsymmetricKeyParameter publicKey, byte md5andsha1 ) : bool
sigBytes byte
publicKey AsymmetricKeyParameter
md5andsha1 byte
return bool