PrivateKey

Overview

Location

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

Implements

 

constructor

 

constructor

 

PrivateKey()

 

init()

constructor (PrivateKey)

 

constructor(value: PrivateKey)

 

PrivateKey(PrivateKey value)

 

init(_ value: PrivateKey)

Parameters:

  • value:

 

constructor(aPublicKey: PublicKey; aD: Reference<Int>; aPrimes: Slice<Reference<Int>>; aPrecomputed: PrecomputedValues)

 

PrivateKey(PublicKey aPublicKey, Reference<Int> aD, Slice<Reference<Int>> aPrimes, PrecomputedValues aPrecomputed)

 

init(_ aPublicKey: PublicKey, _ aD: Reference<Int>, _ aPrimes: Slice<Reference<Int>>, _ aPrecomputed: PrecomputedValues)

Parameters:

  • aPublicKey:
  • aD:
  • aPrimes:
  • aPrecomputed:

D

 

var D: Reference<Int>;

 

var D: Reference<Int>

Decrypt

 

method Decrypt(rand: Reader; ciphertext: Slice<Byte>; opts: DecrypterOpts): tuple of (plaintext: Slice<Byte>, err: error)

 

(Slice<Byte> plaintext, error err) Decrypt(Reader rand, Slice<Byte> ciphertext, DecrypterOpts opts)

 

func Decrypt(_ rand: Reader, _ ciphertext: Slice<Byte>, _ opts: DecrypterOpts) -> (plaintext:Slice<Byte>, err:error)

 

func Decrypt(rand Reader, ciphertext Slice<Byte>, opts DecrypterOpts) (plaintext Slice<Byte>, err error)

Parameters:

  • rand:
  • ciphertext:
  • opts:

E

 

property E: int read write;

 

int E { get; set; }

 

var E: int { get{} set{} }

 

E int

N

 

property N: Reference<Int> read write;

 

Reference<Int> N { get; set; }

 

var N: Reference<Int> { get{} set{} }

Precompute

 

method Precompute

 

void Precompute()

 

func Precompute()

 

func Precompute()

Precomputed

 

var Precomputed: PrecomputedValues;

 

PrecomputedValues Precomputed

 

var Precomputed: PrecomputedValues

 

Precomputed PrecomputedValues

Primes

 

var Primes: Slice<Reference<Int>>;

 

Slice<Reference<Int>> Primes

 

var Primes: Slice<Reference<Int>>

 

Primes Slice<Reference<Int>>

Public

 

method Public: PublicKey

 

PublicKey Public()

 

func Public() -> PublicKey

 

func Public() PublicKey

PublicKey

 

var PublicKey: PublicKey;

 

PublicKey PublicKey

 

var PublicKey: PublicKey

 

PublicKey PublicKey

Sign

 

// .NET, Island
method Sign(rand: Reader; digest: Slice<Byte>; opts: SignerOpts): tuple of (Slice<Byte>, error)
// .NET Standard 2.0
method Sign(rand: Reader; digest: Slice<Byte>; opts: SignerOpts): ValueTuple<Slice<Byte>, error>

 

// .NET, Island
(Slice<Byte>, error) Sign(Reader rand, Slice<Byte> digest, SignerOpts opts)
// .NET Standard 2.0
ValueTuple<Slice<Byte>, error> Sign(Reader rand, Slice<Byte> digest, SignerOpts opts)

 

// .NET, Island
func Sign(_ rand: Reader, _ digest: Slice<Byte>, _ opts: SignerOpts) -> (Slice<Byte>, error)
// .NET Standard 2.0
func Sign(_ rand: Reader, _ digest: Slice<Byte>, _ opts: SignerOpts) -> ValueTuple<Slice<Byte>, error>

 

// .NET, Island
func Sign(rand Reader, digest Slice<Byte>, opts SignerOpts) (Slice<Byte>, error)
// .NET Standard 2.0
func Sign(rand Reader, digest Slice<Byte>, opts SignerOpts) ValueTuple<Slice<Byte>, error>

Parameters:

  • rand:
  • digest:
  • opts:

Size

 

method Size: int

 

int Size()

 

func Size() -> int

 

func Size() int

Validate

 

method Validate: error

 

error Validate()

 

func Validate() -> error

 

func Validate() error

 

D

 

var D: Reference<Int>;

 

var D: Reference<Int>

Precomputed

 

var Precomputed: PrecomputedValues;

 

PrecomputedValues Precomputed

 

var Precomputed: PrecomputedValues

 

Precomputed PrecomputedValues

Primes

 

var Primes: Slice<Reference<Int>>;

 

Slice<Reference<Int>> Primes

 

var Primes: Slice<Reference<Int>>

 

Primes Slice<Reference<Int>>

PublicKey

 

var PublicKey: PublicKey;

 

PublicKey PublicKey

 

var PublicKey: PublicKey

 

PublicKey PublicKey

 

E

 

property E: int read write;

 

int E { get; set; }

 

var E: int { get{} set{} }

 

E int

N

 

property N: Reference<Int> read write;

 

Reference<Int> N { get; set; }

 

var N: Reference<Int> { get{} set{} }

 

constructor

 

constructor

 

PrivateKey()

 

init()

constructor (PrivateKey)

 

constructor(value: PrivateKey)

 

PrivateKey(PrivateKey value)

 

init(_ value: PrivateKey)

Parameters:

  • value:

 

constructor(aPublicKey: PublicKey; aD: Reference<Int>; aPrimes: Slice<Reference<Int>>; aPrecomputed: PrecomputedValues)

 

PrivateKey(PublicKey aPublicKey, Reference<Int> aD, Slice<Reference<Int>> aPrimes, PrecomputedValues aPrecomputed)

 

init(_ aPublicKey: PublicKey, _ aD: Reference<Int>, _ aPrimes: Slice<Reference<Int>>, _ aPrecomputed: PrecomputedValues)

Parameters:

  • aPublicKey:
  • aD:
  • aPrimes:
  • aPrecomputed:

Decrypt

 

method Decrypt(rand: Reader; ciphertext: Slice<Byte>; opts: DecrypterOpts): tuple of (plaintext: Slice<Byte>, err: error)

 

(Slice<Byte> plaintext, error err) Decrypt(Reader rand, Slice<Byte> ciphertext, DecrypterOpts opts)

 

func Decrypt(_ rand: Reader, _ ciphertext: Slice<Byte>, _ opts: DecrypterOpts) -> (plaintext:Slice<Byte>, err:error)

 

func Decrypt(rand Reader, ciphertext Slice<Byte>, opts DecrypterOpts) (plaintext Slice<Byte>, err error)

Parameters:

  • rand:
  • ciphertext:
  • opts:

Public

 

method Public: PublicKey

 

PublicKey Public()

 

func Public() -> PublicKey

 

func Public() PublicKey

Sign

 

// .NET, Island
method Sign(rand: Reader; digest: Slice<Byte>; opts: SignerOpts): tuple of (Slice<Byte>, error)
// .NET Standard 2.0
method Sign(rand: Reader; digest: Slice<Byte>; opts: SignerOpts): ValueTuple<Slice<Byte>, error>

 

// .NET, Island
(Slice<Byte>, error) Sign(Reader rand, Slice<Byte> digest, SignerOpts opts)
// .NET Standard 2.0
ValueTuple<Slice<Byte>, error> Sign(Reader rand, Slice<Byte> digest, SignerOpts opts)

 

// .NET, Island
func Sign(_ rand: Reader, _ digest: Slice<Byte>, _ opts: SignerOpts) -> (Slice<Byte>, error)
// .NET Standard 2.0
func Sign(_ rand: Reader, _ digest: Slice<Byte>, _ opts: SignerOpts) -> ValueTuple<Slice<Byte>, error>

 

// .NET, Island
func Sign(rand Reader, digest Slice<Byte>, opts SignerOpts) (Slice<Byte>, error)
// .NET Standard 2.0
func Sign(rand Reader, digest Slice<Byte>, opts SignerOpts) ValueTuple<Slice<Byte>, error>

Parameters:

  • rand:
  • digest:
  • opts:

Size

 

method Size: int

 

int Size()

 

func Size() -> int

 

func Size() int

Precompute

 

method Precompute

 

void Precompute()

 

func Precompute()

 

func Precompute()

Validate

 

method Validate: error

 

error Validate()

 

func Validate() -> error

 

func Validate() error