Свойство | Тип | Описание | |
---|---|---|---|
G | ECPoint | ||
a | |||
b | |||
h | |||
n | |||
p |
Метод | Описание | |
---|---|---|
EllipticCurveFp ( PublicKeyAlgorithm algorithm, string curveName, |
Constructor
|
|
PointAdd ( ECPoint t1, ECPoint t2, bool infinityToNull ) : ECPoint |
Calculate point addition
|
|
PointMul ( |
Calculate point multiplication
|
|
PointMul ( |
Calculate point multiplication
|
|
ValidatePoint ( |
Validate if the point satisfies the equation of the elliptic curve.
|
Метод | Описание | |
---|---|---|
PointAdd ( |
Point addition over the curve
|
|
PointDouble ( |
Point dooubling over the curve
|
|
PointMul ( |
Point multiplication over the curve
|
public EllipticCurveFp ( PublicKeyAlgorithm algorithm, string curveName, |
||
algorithm | PublicKeyAlgorithm | public key algorithm which uses this curve |
curveName | string | curve name |
p | odd prime | |
a | curve parameter | |
b | curve parameter | |
G | ECPoint | base point |
n | order n of G | |
h | cofactor | |
Результат | Granados.Crypto |
public PointAdd ( ECPoint t1, ECPoint t2, bool infinityToNull ) : ECPoint | ||
t1 | ECPoint | point |
t2 | ECPoint | point |
infinityToNull | bool |
/// if result was point-at-infinity, and this parameter was true,
/// null is returned instead of |
Результат | ECPoint |
public PointMul ( |
||
k1 | scalar | |
k2 | scalar | |
t | ECPoint | point |
infinityToNull | bool |
/// if result was point-at-infinity, and this parameter was true,
/// null is returned instead of |
Результат | ECPoint |
public PointMul ( |
||
k | scalar | |
t | ECPoint | point |
infinityToNull | bool |
/// if result was point-at-infinity, and this parameter was true,
/// null is returned instead of |
Результат | ECPoint |
public ValidatePoint ( |
||
x | value of X | |
y | value of Y | |
Результат | bool |