C# Class NBitcoin.BouncyCastle.Crypto.Signers.ECDsaSigner

Inheritance: IDsa
Mostra file Open project: Nethereum/Nethereum Class Usage Examples

Protected Properties

Property Type Description
kCalculator IDsaKCalculator
key NBitcoin.BouncyCastle.Crypto.Parameters.ECKeyParameters
random NBitcoin.BouncyCastle.Security.SecureRandom

Public Methods

Method Description
ECDsaSigner ( ) : NBitcoin.BouncyCastle.Crypto.Parameters
ECDsaSigner ( IDsaKCalculator kCalculator ) : NBitcoin.BouncyCastle.Crypto.Parameters
GenerateSignature ( byte message ) : NBitcoin.BouncyCastle.Math.BigInteger[]
Init ( bool forSigning, ICipherParameters parameters ) : void
VerifySignature ( byte message, NBitcoin.BouncyCastle.Math.BigInteger r, NBitcoin.BouncyCastle.Math.BigInteger s ) : bool

Protected Methods

Method Description
CalculateE ( NBitcoin.BouncyCastle.Math.BigInteger n, byte message ) : NBitcoin.BouncyCastle.Math.BigInteger
CreateBasePointMultiplier ( ) : ECMultiplier
GetDenominator ( int coordinateSystem, NBitcoin.BouncyCastle.Math.EC.ECPoint p ) : ECFieldElement
InitSecureRandom ( bool needed, SecureRandom provided ) : SecureRandom

Method Details

CalculateE() protected method

protected CalculateE ( NBitcoin.BouncyCastle.Math.BigInteger n, byte message ) : NBitcoin.BouncyCastle.Math.BigInteger
n NBitcoin.BouncyCastle.Math.BigInteger
message byte
return NBitcoin.BouncyCastle.Math.BigInteger

CreateBasePointMultiplier() protected method

protected CreateBasePointMultiplier ( ) : ECMultiplier
return ECMultiplier

ECDsaSigner() public method

public ECDsaSigner ( ) : NBitcoin.BouncyCastle.Crypto.Parameters
return NBitcoin.BouncyCastle.Crypto.Parameters

ECDsaSigner() public method

public ECDsaSigner ( IDsaKCalculator kCalculator ) : NBitcoin.BouncyCastle.Crypto.Parameters
kCalculator IDsaKCalculator
return NBitcoin.BouncyCastle.Crypto.Parameters

GenerateSignature() public method

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

GetDenominator() protected method

protected GetDenominator ( int coordinateSystem, NBitcoin.BouncyCastle.Math.EC.ECPoint p ) : ECFieldElement
coordinateSystem int
p NBitcoin.BouncyCastle.Math.EC.ECPoint
return NBitcoin.BouncyCastle.Math.EC.ECFieldElement

Init() public method

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

InitSecureRandom() protected method

protected InitSecureRandom ( bool needed, SecureRandom provided ) : SecureRandom
needed bool
provided NBitcoin.BouncyCastle.Security.SecureRandom
return NBitcoin.BouncyCastle.Security.SecureRandom

VerifySignature() public method

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

Property Details

kCalculator protected_oe property

protected IDsaKCalculator kCalculator
return IDsaKCalculator

key protected_oe property

protected ECKeyParameters,NBitcoin.BouncyCastle.Crypto.Parameters key
return NBitcoin.BouncyCastle.Crypto.Parameters.ECKeyParameters

random protected_oe property

protected SecureRandom,NBitcoin.BouncyCastle.Security random
return NBitcoin.BouncyCastle.Security.SecureRandom