C# Class Granados.PKI.ECPoint

Elliptic curve point
This class cannot represent a point at infinity.
ファイルを表示 Open project: poderosaproject/poderosa Class Usage Examples

Public Properties

Property Type Description
X Granados.Mono.Math.BigInteger
Y Granados.Mono.Math.BigInteger

Public Methods

Method Description
ECPoint ( BigInteger x, BigInteger y ) : Granados.Crypto
ECPoint ( ECPoint p ) : Granados.Crypto
Parse ( byte data, EllipticCurve ec, ECPoint &p ) : bool

Parses an elliptic curve point.

ParseUncompressed ( byte data ) : ECPoint

Parses an elliptic curve point stored in the uncompressed form.

Note that this method doesn't check consistency or validity of the values.

Private Methods

Method Description
IsZero ( byte data ) : bool

Method Details

ECPoint() public method

public ECPoint ( BigInteger x, BigInteger y ) : Granados.Crypto
x Granados.Mono.Math.BigInteger
y Granados.Mono.Math.BigInteger
return Granados.Crypto

ECPoint() public method

public ECPoint ( ECPoint p ) : Granados.Crypto
p ECPoint
return Granados.Crypto

Parse() public static method

Parses an elliptic curve point.
public static Parse ( byte data, EllipticCurve ec, ECPoint &p ) : bool
data byte octet data
ec EllipticCurve elliptic curve domain parameters
p ECPoint an elliptic curve point object
return bool

ParseUncompressed() public static method

Parses an elliptic curve point stored in the uncompressed form.
Note that this method doesn't check consistency or validity of the values.
public static ParseUncompressed ( byte data ) : ECPoint
data byte octet data
return ECPoint

Property Details

X public_oe property

public BigInteger,Granados.Mono.Math X
return Granados.Mono.Math.BigInteger

Y public_oe property

public BigInteger,Granados.Mono.Math Y
return Granados.Mono.Math.BigInteger