C# Class Org.BouncyCastle.Crypto.Signers.DsaSigner

Inheritance: IDsa
Mostra file Open project: nonorganic/dssnet Class Usage Examples

Public Methods

Method Description
GenerateSignature ( byte message ) : Org.BouncyCastle.Math.BigInteger[]
Init ( bool forSigning, ICipherParameters parameters ) : void
VerifySignature ( byte message, BigInteger r, BigInteger s ) : bool

Private Methods

Method Description
calculateE ( BigInteger n, byte message ) : BigInteger

Method Details

GenerateSignature() public method

public GenerateSignature ( byte message ) : Org.BouncyCastle.Math.BigInteger[]
message byte
return Org.BouncyCastle.Math.BigInteger[]

Init() public method

public Init ( bool forSigning, ICipherParameters parameters ) : void
forSigning bool
parameters ICipherParameters
return void

VerifySignature() public method

public VerifySignature ( byte message, BigInteger r, BigInteger s ) : bool
message byte
r Org.BouncyCastle.Math.BigInteger
s Org.BouncyCastle.Math.BigInteger
return bool