Global

Location

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

 

ErrInvalidPublicKey

 

class var ErrInvalidPublicKey: error;

 

static error ErrInvalidPublicKey

 

static var ErrInvalidPublicKey: error

 

ErrInvalidPublicKey error

GenerateKey

 

class method GenerateKey(priv: Reference<PrivateKey>; rand: Reader): error

 

static error GenerateKey(Reference<PrivateKey> priv, Reader rand)

 

static func GenerateKey(_ priv: Reference<PrivateKey>, _ rand: Reader) -> error

 

func GenerateKey(priv Reference<PrivateKey>, rand Reader) error

Parameters:

  • priv:
  • rand:

GenerateParameters

 

class method GenerateParameters(params: Reference<Parameters>; rand: Reader; sizes: ParameterSizes): error

 

static error GenerateParameters(Reference<Parameters> params, Reader rand, ParameterSizes sizes)

 

static func GenerateParameters(_ params: Reference<Parameters>, _ rand: Reader, _ sizes: ParameterSizes) -> error

 

func GenerateParameters(params Reference<Parameters>, rand Reader, sizes ParameterSizes) error

Parameters:

  • params:
  • rand:
  • sizes:

L1024N160

 

const L1024N160: ParameterSizes = 0;

 

const ParameterSizes L1024N160 = 0

 

static let L1024N160: ParameterSizes = 0

 

const L1024N160 ParameterSizes =  = 0

L2048N224

 

const L2048N224: ParameterSizes = 1;

 

const ParameterSizes L2048N224 = 1

 

static let L2048N224: ParameterSizes = 1

 

const L2048N224 ParameterSizes =  = 1

L2048N256

 

const L2048N256: ParameterSizes = 2;

 

const ParameterSizes L2048N256 = 2

 

static let L2048N256: ParameterSizes = 2

 

const L2048N256 ParameterSizes =  = 2

L3072N256

 

const L3072N256: ParameterSizes = 3;

 

const ParameterSizes L3072N256 = 3

 

static let L3072N256: ParameterSizes = 3

 

const L3072N256 ParameterSizes =  = 3

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)

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

Parameters:

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

 

L1024N160

 

const L1024N160: ParameterSizes = 0;

 

const ParameterSizes L1024N160 = 0

 

static let L1024N160: ParameterSizes = 0

 

const L1024N160 ParameterSizes =  = 0

L2048N224

 

const L2048N224: ParameterSizes = 1;

 

const ParameterSizes L2048N224 = 1

 

static let L2048N224: ParameterSizes = 1

 

const L2048N224 ParameterSizes =  = 1

L2048N256

 

const L2048N256: ParameterSizes = 2;

 

const ParameterSizes L2048N256 = 2

 

static let L2048N256: ParameterSizes = 2

 

const L2048N256 ParameterSizes =  = 2

L3072N256

 

const L3072N256: ParameterSizes = 3;

 

const ParameterSizes L3072N256 = 3

 

static let L3072N256: ParameterSizes = 3

 

const L3072N256 ParameterSizes =  = 3

 

ErrInvalidPublicKey

 

class var ErrInvalidPublicKey: error;

 

static error ErrInvalidPublicKey

 

static var ErrInvalidPublicKey: error

 

ErrInvalidPublicKey error

 

GenerateKey

 

class method GenerateKey(priv: Reference<PrivateKey>; rand: Reader): error

 

static error GenerateKey(Reference<PrivateKey> priv, Reader rand)

 

static func GenerateKey(_ priv: Reference<PrivateKey>, _ rand: Reader) -> error

 

func GenerateKey(priv Reference<PrivateKey>, rand Reader) error

Parameters:

  • priv:
  • rand:

GenerateParameters

 

class method GenerateParameters(params: Reference<Parameters>; rand: Reader; sizes: ParameterSizes): error

 

static error GenerateParameters(Reference<Parameters> params, Reader rand, ParameterSizes sizes)

 

static func GenerateParameters(_ params: Reference<Parameters>, _ rand: Reader, _ sizes: ParameterSizes) -> error

 

func GenerateParameters(params Reference<Parameters>, rand Reader, sizes ParameterSizes) error

Parameters:

  • params:
  • rand:
  • sizes:

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)

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

Parameters:

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