Global

Location

  • Reference:
    • Go.dll  .NET, .NET Standard 2.0
    • Go.fx  Island
  • Namespace: go.crypto.ecdsa
  • Platforms: .NET, .NET Standard 2.0, Island

Methods


GenerateKey

 

class method GenerateKey(c: Curve; rand: Reader): tuple of (PrivateKey, error)

 

static (PrivateKey, error) GenerateKey(Curve c, Reader rand)

 

static func GenerateKey(_ c: Curve, _ rand: Reader) -> (PrivateKey, error)

 

func GenerateKey(c Curve, rand Reader) (PrivateKey, error)

 

Shared Function GenerateKey(c As Curve, rand As Reader) As Tuple (Of PrivateKey, error)

Parameters:

  • c:
  • rand:

Sign

 

class method Sign(rand: Reader; priv: Reference<PrivateKey>; hash: Slice<Byte>): tuple of (r: Int, s: Int, err: error)

 

static (Int r, Int s, error err) Sign(Reader rand, Reference<PrivateKey> priv, Slice<Byte> hash)

 

static func Sign(_ rand: Reader, _ priv: Reference<PrivateKey>, _ hash: Slice<Byte>) -> (Int, Int, error)

 

func Sign(rand Reader, priv Reference<PrivateKey>, hash Slice<Byte>) (r Int, s Int, err error)

 

Shared Function Sign(rand As Reader, priv As Reference<PrivateKey>, hash As Slice<Byte>) As Tuple (Of Int, Int, error)

Parameters:

  • rand:
  • priv:
  • hash:

Verify

 

class method Verify(pub: Reference<PublicKey>; hash: Slice<Byte>; r: Reference<Int>; s: Reference<Int>): bool

 

static bool Verify(Reference<PublicKey> pub, Slice<Byte> hash, Reference<Int> r, Reference<Int> s)

 

static func Verify(_ pub: Reference<PublicKey>, _ hash: Slice<Byte>, _ r: Reference<Int>, _ s: Reference<Int>) -> bool

 

func Verify(pub Reference<PublicKey>, hash Slice<Byte>, r Reference<Int>, s Reference<Int>) bool

 

Shared Function Verify(pub As Reference<PublicKey>, hash As Slice<Byte>, r As Reference<Int>, s As Reference<Int>) As bool

Parameters:

  • pub:
  • hash:
  • r:
  • s: