C# Class Granados.PKI.ECDSAPublicKey

Elliptic curve cryptography public key
Inheritance: PublicKey, IVerifier
Datei anzeigen Open project: poderosaproject/poderosa Class Usage Examples

Public Methods

Method Description
ECDSAPublicKey ( EllipticCurve curve, ECPoint point ) : Granados.Crypto
IsValid ( ) : bool

Check public key

ToOctetString ( ) : byte[]

Convert a point of public key to an octet string.

Verify ( byte data, byte expected ) : void
WriteTo ( IKeyWriter writer ) : void

Private Methods

Method Description
ExtractLeftBits ( byte src, int bits ) : byte[]
HashForSigning ( byte data, EllipticCurve curve ) : byte[]

Hash data for signing

ReadFrom ( Granados.IO.SSH2.SSH2DataReader reader ) : ECDSAPublicKey

Method Details

ECDSAPublicKey() public method

public ECDSAPublicKey ( EllipticCurve curve, ECPoint point ) : Granados.Crypto
curve EllipticCurve
point ECPoint
return Granados.Crypto

IsValid() public method

Check public key
public IsValid ( ) : bool
return bool

ToOctetString() public method

Convert a point of public key to an octet string.
public ToOctetString ( ) : byte[]
return byte[]

Verify() public method

public Verify ( byte data, byte expected ) : void
data byte
expected byte
return void

WriteTo() public method

public WriteTo ( IKeyWriter writer ) : void
writer IKeyWriter
return void