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 (Memory<PrivateKey>, error)

 

static (Memory<PrivateKey>, error) GenerateKey(Curve c, Reader rand)

 

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

 

func GenerateKey(c Curve, rand Reader) tuple of (Memory<PrivateKey>, error)

 

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

Parameters:

  • c:
  • rand:

Sign

 

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

 

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

 

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

 

func Sign(rand Reader, priv Memory<PrivateKey>, hash Slice<Byte>) tuple of (|name=r| Memory<Int>, |name=s| Memory<Int>, |name=err| error)

 

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

Parameters:

  • rand:
  • priv:
  • hash:

Verify

 

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

 

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

 

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

 

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

 

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

Parameters:

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