C# 클래스 Granados.PKI.EllipticCurve

Abstract class for elliptic curve parameters.
파일 보기 프로젝트 열기: poderosaproject/poderosa 1 사용 예제들

공개 메소드들

메소드 설명
ConvertPointToOctetString ( ECPoint point ) : byte[]

Convert a point to the octet string.

FindByName ( string name ) : EllipticCurve

Find curve by identifier

FindByOID ( string oid ) : EllipticCurve

Find curve by OID

GenerateKeyPair ( ) : ECDSAKeyPair

Generates new key pair.

GenerateKeyPair ( RandomNumberGenerator rng ) : ECDSAKeyPair

Generates new key pair.

PointAdd ( ECPoint t1, ECPoint t2, bool infinityToNull ) : ECPoint

Calculate point addition

PointMul ( BigInteger k1, BigInteger k2, ECPoint t, bool infinityToNull ) : ECPoint

Calculate point multiplication

PointMul ( BigInteger k, ECPoint t, bool infinityToNull ) : ECPoint

Calculate point multiplication

ValidatePoint ( BigInteger x, BigInteger y ) : bool

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

ValidatePoint ( ECPoint t ) : bool

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

비공개 메소드들

메소드 설명
TestKeyPair ( ) : void
TestPKV ( ) : void
TestPointMultiplication ( ) : void
TestSignatureVerification ( ) : void

메소드 상세

ConvertPointToOctetString() 공개 메소드

Convert a point to the octet string.
public ConvertPointToOctetString ( ECPoint point ) : byte[]
point ECPoint point
리턴 byte[]

FindByName() 공개 정적인 메소드

Find curve by identifier
public static FindByName ( string name ) : EllipticCurve
name string curve identifier
리턴 EllipticCurve

FindByOID() 공개 정적인 메소드

Find curve by OID
public static FindByOID ( string oid ) : EllipticCurve
oid string
리턴 EllipticCurve

GenerateKeyPair() 공개 메소드

Generates new key pair.
public GenerateKeyPair ( ) : ECDSAKeyPair
리턴 ECDSAKeyPair

GenerateKeyPair() 공개 메소드

Generates new key pair.
public GenerateKeyPair ( RandomNumberGenerator rng ) : ECDSAKeyPair
rng System.Security.Cryptography.RandomNumberGenerator random number generator
리턴 ECDSAKeyPair

PointAdd() 공개 추상적인 메소드

Calculate point addition
public abstract 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

PointMul() 공개 추상적인 메소드

Calculate point multiplication
public abstract PointMul ( BigInteger k1, BigInteger k2, ECPoint t, bool infinityToNull ) : ECPoint
k1 Granados.Mono.Math.BigInteger scalar
k2 Granados.Mono.Math.BigInteger scalar
t ECPoint point
infinityToNull bool /// if result was point-at-infinity, and this parameter was true, /// null is returned instead of . ///
리턴 ECPoint

PointMul() 공개 추상적인 메소드

Calculate point multiplication
public abstract PointMul ( BigInteger k, ECPoint t, bool infinityToNull ) : ECPoint
k Granados.Mono.Math.BigInteger scalar
t ECPoint point
infinityToNull bool /// if result was point-at-infinity, and this parameter was true, /// null is returned instead of . ///
리턴 ECPoint

ValidatePoint() 공개 추상적인 메소드

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

ValidatePoint() 공개 메소드

Validates if the point satisfies the equation of the elliptic curve.
public ValidatePoint ( ECPoint t ) : bool
t ECPoint point
리턴 bool