C# Class Granados.PKI.EllipticCurveF2m

Elliptic curve domain parameters over F2^m
Inheritance: EllipticCurve
ファイルを表示 Open project: poderosaproject/poderosa

Public Properties

Property Type Description
Exp int[]
G ECPoint
a byte[]
b byte[]
h Granados.Mono.Math.BigInteger
m int
n Granados.Mono.Math.BigInteger

Public Methods

Method Description
BasePointMul ( BigInteger k ) : ECPoint

Calculate multiplication of G

EllipticCurveF2m ( PublicKeyAlgorithm algorithm, string curveName, int m, int exp, byte a, byte b, ECPoint G, BigInteger n, BigInteger h ) : Granados.Crypto

Constructor

ValidatePoint ( BigInteger x, BigInteger y ) : bool

Validate if the point satisfies the equation of the elliptic curve.

Method Details

BasePointMul() public method

Calculate multiplication of G
public BasePointMul ( BigInteger k ) : ECPoint
k Granados.Mono.Math.BigInteger scalar value for multiplication
return ECPoint

EllipticCurveF2m() public method

Constructor
public EllipticCurveF2m ( PublicKeyAlgorithm algorithm, string curveName, int m, int exp, byte a, byte b, ECPoint G, BigInteger n, BigInteger h ) : Granados.Crypto
algorithm PublicKeyAlgorithm public key algorithm which uses this curve
curveName string curve name
m int exponent of 2
exp int exponents of x
a byte curve parameter
b byte curve parameter
G ECPoint base point
n Granados.Mono.Math.BigInteger order n of G
h Granados.Mono.Math.BigInteger cofactor
return Granados.Crypto

ValidatePoint() public method

Validate if the point satisfies the equation of the elliptic curve.
public ValidatePoint ( BigInteger x, BigInteger y ) : bool
x Granados.Mono.Math.BigInteger value of X
y Granados.Mono.Math.BigInteger value of Y
return bool

Property Details

Exp public_oe property

Exponents of x
public int[] Exp
return int[]

G public_oe property

Base point
public ECPoint G
return ECPoint

a public_oe property

Curve parameter
public byte[] a
return byte[]

b public_oe property

Curve parameter
public byte[] b
return byte[]

h public_oe property

Cofactor
public BigInteger,Granados.Mono.Math h
return Granados.Mono.Math.BigInteger

m public_oe property

Exponent of 2
public int m
return int

n public_oe property

Order n of G
public BigInteger,Granados.Mono.Math n
return Granados.Mono.Math.BigInteger