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

 

// .NET, Island
class method GenerateKey(c: Curve; rand: Reader): tuple of (Reference<PrivateKey>, error)
// .NET Standard 2.0
class method GenerateKey(c: Curve; rand: Reader): ValueTuple<Reference<PrivateKey>, error>

 

// .NET, Island
static (Reference<PrivateKey>, error) GenerateKey(Curve c, Reader rand)
// .NET Standard 2.0
static ValueTuple<Reference<PrivateKey>, error> GenerateKey(Curve c, Reader rand)

 

// .NET, Island
static func GenerateKey(_ c: Curve, _ rand: Reader) -> (Reference<PrivateKey>, error)
// .NET Standard 2.0
static func GenerateKey(_ c: Curve, _ rand: Reader) -> ValueTuple<Reference<PrivateKey>, error>

 

// .NET, Island
func GenerateKey(c Curve, rand Reader) (Reference<PrivateKey>, error)
// .NET Standard 2.0
func GenerateKey(c Curve, rand Reader) ValueTuple<Reference<PrivateKey>, error>

 

// .NET, Island
Shared Function GenerateKey(c As Curve, rand As Reader) As Tuple (Of Reference<PrivateKey>, error)
// .NET Standard 2.0
Shared Function GenerateKey(c As Curve, rand As Reader) As ValueTuple<Reference<PrivateKey>, error>

Parameters:

  • c:
  • rand:

Sign

 

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

 

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

 

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

 

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

 

Shared Function Sign(rand As Reader, priv As Reference<PrivateKey>, hash As Slice<Byte>) As Tuple (Of r:=Reference<Int>, s:=Reference<Int>, err:=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: