PrivateKey Extension

Location

  • Reference: Go.dll
  • Namespace: go.crypto.rsa
  • Extends: PrivateKey
  • Platforms: .NET, .NET Standard 2.0

Instance Methods


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) -> (Slice<Byte>, error)

 

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

 

Function Decrypt(rand As Reader, ciphertext As Slice<Byte>, opts As DecrypterOpts) As Tuple (Of Slice<Byte>, error)

Parameters:

  • rand:
  • ciphertext:
  • opts:

Precompute

 

method Precompute

 

void Precompute()

 

func Precompute()

 

func Precompute()

 

Sub Precompute()

Public

 

method Public: PublicKey

 

PublicKey Public()

 

func Public() -> PublicKey

 

func Public() PublicKey

 

Function Public() As PublicKey

Sign

 

method Sign(rand: Reader; digest: Slice<Byte>; opts: SignerOpts): tuple of (Slice<Byte>, error)

 

(Slice<Byte>, error) Sign(Reader rand, Slice<Byte> digest, SignerOpts opts)

 

func Sign(_ rand: Reader, _ digest: Slice<Byte>, _ opts: SignerOpts) -> (Slice<Byte>, error)

 

func Sign(rand Reader, digest Slice<Byte>, opts SignerOpts) (Slice<Byte>, error)

 

Function Sign(rand As Reader, digest As Slice<Byte>, opts As SignerOpts) As Tuple (Of Slice<Byte>, error)

Parameters:

  • rand:
  • digest:
  • opts:

Validate

 

method Validate: error

 

error Validate()

 

func Validate() -> error

 

func Validate() error

 

Function Validate() As error