Global

Location

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

 

DecryptOAEP

 

class method DecryptOAEP(hash: Hash; random: Reader; priv: Reference<PrivateKey>; ciphertext: Slice<Byte>; label: Slice<Byte>): tuple of (Slice<Byte>, error)

 

static (Slice<Byte>, error) DecryptOAEP(Hash hash, Reader random, Reference<PrivateKey> priv, Slice<Byte> ciphertext, Slice<Byte> label)

 

static func DecryptOAEP(_ hash: Hash, _ random: Reader, _ priv: Reference<PrivateKey>, _ ciphertext: Slice<Byte>, _ label: Slice<Byte>) -> (Slice<Byte>, error)

 

func DecryptOAEP(hash Hash, random Reader, priv Reference<PrivateKey>, ciphertext Slice<Byte>, label Slice<Byte>) (Slice<Byte>, error)

 

Shared Function DecryptOAEP(hash As Hash, random As Reader, priv As Reference<PrivateKey>, ciphertext As Slice<Byte>, label As Slice<Byte>) As Tuple (Of Slice<Byte>, error)

Parameters:

  • hash:
  • random:
  • priv:
  • ciphertext:
  • label:

DecryptPKCS1v15

 

class method DecryptPKCS1v15(rand: Reader; priv: Reference<PrivateKey>; ciphertext: Slice<Byte>): tuple of (Slice<Byte>, error)

 

static (Slice<Byte>, error) DecryptPKCS1v15(Reader rand, Reference<PrivateKey> priv, Slice<Byte> ciphertext)

 

static func DecryptPKCS1v15(_ rand: Reader, _ priv: Reference<PrivateKey>, _ ciphertext: Slice<Byte>) -> (Slice<Byte>, error)

 

func DecryptPKCS1v15(rand Reader, priv Reference<PrivateKey>, ciphertext Slice<Byte>) (Slice<Byte>, error)

 

Shared Function DecryptPKCS1v15(rand As Reader, priv As Reference<PrivateKey>, ciphertext As Slice<Byte>) As Tuple (Of Slice<Byte>, error)

Parameters:

  • rand:
  • priv:
  • ciphertext:

DecryptPKCS1v15SessionKey

 

class method DecryptPKCS1v15SessionKey(rand: Reader; priv: Reference<PrivateKey>; ciphertext: Slice<Byte>; key: Slice<Byte>): error

 

static error DecryptPKCS1v15SessionKey(Reader rand, Reference<PrivateKey> priv, Slice<Byte> ciphertext, Slice<Byte> key)

 

static func DecryptPKCS1v15SessionKey(_ rand: Reader, _ priv: Reference<PrivateKey>, _ ciphertext: Slice<Byte>, _ key: Slice<Byte>) -> error

 

func DecryptPKCS1v15SessionKey(rand Reader, priv Reference<PrivateKey>, ciphertext Slice<Byte>, key Slice<Byte>) error

 

Shared Function DecryptPKCS1v15SessionKey(rand As Reader, priv As Reference<PrivateKey>, ciphertext As Slice<Byte>, key As Slice<Byte>) As error

Parameters:

  • rand:
  • priv:
  • ciphertext:
  • key:

EncryptOAEP

 

class method EncryptOAEP(hash: Hash; random: Reader; pub: Reference<PublicKey>; msg: Slice<Byte>; label: Slice<Byte>): tuple of (Slice<Byte>, error)

 

static (Slice<Byte>, error) EncryptOAEP(Hash hash, Reader random, Reference<PublicKey> pub, Slice<Byte> msg, Slice<Byte> label)

 

static func EncryptOAEP(_ hash: Hash, _ random: Reader, _ pub: Reference<PublicKey>, _ msg: Slice<Byte>, _ label: Slice<Byte>) -> (Slice<Byte>, error)

 

func EncryptOAEP(hash Hash, random Reader, pub Reference<PublicKey>, msg Slice<Byte>, label Slice<Byte>) (Slice<Byte>, error)

 

Shared Function EncryptOAEP(hash As Hash, random As Reader, pub As Reference<PublicKey>, msg As Slice<Byte>, label As Slice<Byte>) As Tuple (Of Slice<Byte>, error)

Parameters:

  • hash:
  • random:
  • pub:
  • msg:
  • label:

EncryptPKCS1v15

 

class method EncryptPKCS1v15(rand: Reader; pub: Reference<PublicKey>; msg: Slice<Byte>): tuple of (Slice<Byte>, error)

 

static (Slice<Byte>, error) EncryptPKCS1v15(Reader rand, Reference<PublicKey> pub, Slice<Byte> msg)

 

static func EncryptPKCS1v15(_ rand: Reader, _ pub: Reference<PublicKey>, _ msg: Slice<Byte>) -> (Slice<Byte>, error)

 

func EncryptPKCS1v15(rand Reader, pub Reference<PublicKey>, msg Slice<Byte>) (Slice<Byte>, error)

 

Shared Function EncryptPKCS1v15(rand As Reader, pub As Reference<PublicKey>, msg As Slice<Byte>) As Tuple (Of Slice<Byte>, error)

Parameters:

  • rand:
  • pub:
  • msg:

ErrDecryption

 

class var ErrDecryption: error;

 

static error ErrDecryption

 

static var ErrDecryption: error

 

ErrDecryption error

 

Shared FIELD ErrDecryption() As error

ErrMessageTooLong

 

class var ErrMessageTooLong: error;

 

static error ErrMessageTooLong

 

static var ErrMessageTooLong: error

 

ErrMessageTooLong error

 

Shared FIELD ErrMessageTooLong() As error

ErrVerification

 

class var ErrVerification: error;

 

static error ErrVerification

 

static var ErrVerification: error

 

ErrVerification error

 

Shared FIELD ErrVerification() As error

GenerateKey

 

class method GenerateKey(random: Reader; bits: int): tuple of (PrivateKey, error)

 

static (PrivateKey, error) GenerateKey(Reader random, int bits)

 

static func GenerateKey(_ random: Reader, _ bits: int) -> (PrivateKey, error)

 

func GenerateKey(random Reader, bits int) (PrivateKey, error)

 

Shared Function GenerateKey(random As Reader, bits As int) As Tuple (Of PrivateKey, error)

Parameters:

  • random:
  • bits:

GenerateMultiPrimeKey

 

class method GenerateMultiPrimeKey(random: Reader; nprimes: int; bits: int): tuple of (PrivateKey, error)

 

static (PrivateKey, error) GenerateMultiPrimeKey(Reader random, int nprimes, int bits)

 

static func GenerateMultiPrimeKey(_ random: Reader, _ nprimes: int, _ bits: int) -> (PrivateKey, error)

 

func GenerateMultiPrimeKey(random Reader, nprimes int, bits int) (PrivateKey, error)

 

Shared Function GenerateMultiPrimeKey(random As Reader, nprimes As int, bits As int) As Tuple (Of PrivateKey, error)

Parameters:

  • random:
  • nprimes:
  • bits:

PSSSaltLengthAuto

 

const PSSSaltLengthAuto: Int64 = 0;

 

const Int64 PSSSaltLengthAuto = 0

 

static let PSSSaltLengthAuto: Int64 = 0

 

const PSSSaltLengthAuto Int64 = 0

 

Dim PSSSaltLengthAuto As Int64 = 0

PSSSaltLengthEqualsHash

 

const PSSSaltLengthEqualsHash: Int64 = -1;

 

const Int64 PSSSaltLengthEqualsHash = -1

 

static let PSSSaltLengthEqualsHash: Int64 = -1

 

const PSSSaltLengthEqualsHash Int64 = -1

 

Dim PSSSaltLengthEqualsHash As Int64 = -1

SignPKCS1v15

 

class method SignPKCS1v15(rand: Reader; priv: Reference<PrivateKey>; hash: Hash; hashed: Slice<Byte>): tuple of (Slice<Byte>, error)

 

static (Slice<Byte>, error) SignPKCS1v15(Reader rand, Reference<PrivateKey> priv, Hash hash, Slice<Byte> hashed)

 

static func SignPKCS1v15(_ rand: Reader, _ priv: Reference<PrivateKey>, _ hash: Hash, _ hashed: Slice<Byte>) -> (Slice<Byte>, error)

 

func SignPKCS1v15(rand Reader, priv Reference<PrivateKey>, hash Hash, hashed Slice<Byte>) (Slice<Byte>, error)

 

Shared Function SignPKCS1v15(rand As Reader, priv As Reference<PrivateKey>, hash As Hash, hashed As Slice<Byte>) As Tuple (Of Slice<Byte>, error)

Parameters:

  • rand:
  • priv:
  • hash:
  • hashed:

SignPSS

 

class method SignPSS(rand: Reader; priv: Reference<PrivateKey>; hash: Hash; hashed: Slice<Byte>; opts: Reference<PSSOptions>): tuple of (Slice<Byte>, error)

 

static (Slice<Byte>, error) SignPSS(Reader rand, Reference<PrivateKey> priv, Hash hash, Slice<Byte> hashed, Reference<PSSOptions> opts)

 

static func SignPSS(_ rand: Reader, _ priv: Reference<PrivateKey>, _ hash: Hash, _ hashed: Slice<Byte>, _ opts: Reference<PSSOptions>) -> (Slice<Byte>, error)

 

func SignPSS(rand Reader, priv Reference<PrivateKey>, hash Hash, hashed Slice<Byte>, opts Reference<PSSOptions>) (Slice<Byte>, error)

 

Shared Function SignPSS(rand As Reader, priv As Reference<PrivateKey>, hash As Hash, hashed As Slice<Byte>, opts As Reference<PSSOptions>) As Tuple (Of Slice<Byte>, error)

Parameters:

  • rand:
  • priv:
  • hash:
  • hashed:
  • opts:

VerifyPKCS1v15

 

class method VerifyPKCS1v15(pub: Reference<PublicKey>; hash: Hash; hashed: Slice<Byte>; sig: Slice<Byte>): error

 

static error VerifyPKCS1v15(Reference<PublicKey> pub, Hash hash, Slice<Byte> hashed, Slice<Byte> sig)

 

static func VerifyPKCS1v15(_ pub: Reference<PublicKey>, _ hash: Hash, _ hashed: Slice<Byte>, _ sig: Slice<Byte>) -> error

 

func VerifyPKCS1v15(pub Reference<PublicKey>, hash Hash, hashed Slice<Byte>, sig Slice<Byte>) error

 

Shared Function VerifyPKCS1v15(pub As Reference<PublicKey>, hash As Hash, hashed As Slice<Byte>, sig As Slice<Byte>) As error

Parameters:

  • pub:
  • hash:
  • hashed:
  • sig:

VerifyPSS

 

class method VerifyPSS(pub: Reference<PublicKey>; hash: Hash; hashed: Slice<Byte>; sig: Slice<Byte>; opts: Reference<PSSOptions>): error

 

static error VerifyPSS(Reference<PublicKey> pub, Hash hash, Slice<Byte> hashed, Slice<Byte> sig, Reference<PSSOptions> opts)

 

static func VerifyPSS(_ pub: Reference<PublicKey>, _ hash: Hash, _ hashed: Slice<Byte>, _ sig: Slice<Byte>, _ opts: Reference<PSSOptions>) -> error

 

func VerifyPSS(pub Reference<PublicKey>, hash Hash, hashed Slice<Byte>, sig Slice<Byte>, opts Reference<PSSOptions>) error

 

Shared Function VerifyPSS(pub As Reference<PublicKey>, hash As Hash, hashed As Slice<Byte>, sig As Slice<Byte>, opts As Reference<PSSOptions>) As error

Parameters:

  • pub:
  • hash:
  • hashed:
  • sig:
  • opts:

 

PSSSaltLengthAuto

 

const PSSSaltLengthAuto: Int64 = 0;

 

const Int64 PSSSaltLengthAuto = 0

 

static let PSSSaltLengthAuto: Int64 = 0

 

const PSSSaltLengthAuto Int64 = 0

 

Dim PSSSaltLengthAuto As Int64 = 0

PSSSaltLengthEqualsHash

 

const PSSSaltLengthEqualsHash: Int64 = -1;

 

const Int64 PSSSaltLengthEqualsHash = -1

 

static let PSSSaltLengthEqualsHash: Int64 = -1

 

const PSSSaltLengthEqualsHash Int64 = -1

 

Dim PSSSaltLengthEqualsHash As Int64 = -1

 

ErrDecryption

 

class var ErrDecryption: error;

 

static error ErrDecryption

 

static var ErrDecryption: error

 

ErrDecryption error

 

Shared FIELD ErrDecryption() As error

ErrMessageTooLong

 

class var ErrMessageTooLong: error;

 

static error ErrMessageTooLong

 

static var ErrMessageTooLong: error

 

ErrMessageTooLong error

 

Shared FIELD ErrMessageTooLong() As error

ErrVerification

 

class var ErrVerification: error;

 

static error ErrVerification

 

static var ErrVerification: error

 

ErrVerification error

 

Shared FIELD ErrVerification() As error

 

DecryptOAEP

 

class method DecryptOAEP(hash: Hash; random: Reader; priv: Reference<PrivateKey>; ciphertext: Slice<Byte>; label: Slice<Byte>): tuple of (Slice<Byte>, error)

 

static (Slice<Byte>, error) DecryptOAEP(Hash hash, Reader random, Reference<PrivateKey> priv, Slice<Byte> ciphertext, Slice<Byte> label)

 

static func DecryptOAEP(_ hash: Hash, _ random: Reader, _ priv: Reference<PrivateKey>, _ ciphertext: Slice<Byte>, _ label: Slice<Byte>) -> (Slice<Byte>, error)

 

func DecryptOAEP(hash Hash, random Reader, priv Reference<PrivateKey>, ciphertext Slice<Byte>, label Slice<Byte>) (Slice<Byte>, error)

 

Shared Function DecryptOAEP(hash As Hash, random As Reader, priv As Reference<PrivateKey>, ciphertext As Slice<Byte>, label As Slice<Byte>) As Tuple (Of Slice<Byte>, error)

Parameters:

  • hash:
  • random:
  • priv:
  • ciphertext:
  • label:

DecryptPKCS1v15

 

class method DecryptPKCS1v15(rand: Reader; priv: Reference<PrivateKey>; ciphertext: Slice<Byte>): tuple of (Slice<Byte>, error)

 

static (Slice<Byte>, error) DecryptPKCS1v15(Reader rand, Reference<PrivateKey> priv, Slice<Byte> ciphertext)

 

static func DecryptPKCS1v15(_ rand: Reader, _ priv: Reference<PrivateKey>, _ ciphertext: Slice<Byte>) -> (Slice<Byte>, error)

 

func DecryptPKCS1v15(rand Reader, priv Reference<PrivateKey>, ciphertext Slice<Byte>) (Slice<Byte>, error)

 

Shared Function DecryptPKCS1v15(rand As Reader, priv As Reference<PrivateKey>, ciphertext As Slice<Byte>) As Tuple (Of Slice<Byte>, error)

Parameters:

  • rand:
  • priv:
  • ciphertext:

DecryptPKCS1v15SessionKey

 

class method DecryptPKCS1v15SessionKey(rand: Reader; priv: Reference<PrivateKey>; ciphertext: Slice<Byte>; key: Slice<Byte>): error

 

static error DecryptPKCS1v15SessionKey(Reader rand, Reference<PrivateKey> priv, Slice<Byte> ciphertext, Slice<Byte> key)

 

static func DecryptPKCS1v15SessionKey(_ rand: Reader, _ priv: Reference<PrivateKey>, _ ciphertext: Slice<Byte>, _ key: Slice<Byte>) -> error

 

func DecryptPKCS1v15SessionKey(rand Reader, priv Reference<PrivateKey>, ciphertext Slice<Byte>, key Slice<Byte>) error

 

Shared Function DecryptPKCS1v15SessionKey(rand As Reader, priv As Reference<PrivateKey>, ciphertext As Slice<Byte>, key As Slice<Byte>) As error

Parameters:

  • rand:
  • priv:
  • ciphertext:
  • key:

EncryptOAEP

 

class method EncryptOAEP(hash: Hash; random: Reader; pub: Reference<PublicKey>; msg: Slice<Byte>; label: Slice<Byte>): tuple of (Slice<Byte>, error)

 

static (Slice<Byte>, error) EncryptOAEP(Hash hash, Reader random, Reference<PublicKey> pub, Slice<Byte> msg, Slice<Byte> label)

 

static func EncryptOAEP(_ hash: Hash, _ random: Reader, _ pub: Reference<PublicKey>, _ msg: Slice<Byte>, _ label: Slice<Byte>) -> (Slice<Byte>, error)

 

func EncryptOAEP(hash Hash, random Reader, pub Reference<PublicKey>, msg Slice<Byte>, label Slice<Byte>) (Slice<Byte>, error)

 

Shared Function EncryptOAEP(hash As Hash, random As Reader, pub As Reference<PublicKey>, msg As Slice<Byte>, label As Slice<Byte>) As Tuple (Of Slice<Byte>, error)

Parameters:

  • hash:
  • random:
  • pub:
  • msg:
  • label:

EncryptPKCS1v15

 

class method EncryptPKCS1v15(rand: Reader; pub: Reference<PublicKey>; msg: Slice<Byte>): tuple of (Slice<Byte>, error)

 

static (Slice<Byte>, error) EncryptPKCS1v15(Reader rand, Reference<PublicKey> pub, Slice<Byte> msg)

 

static func EncryptPKCS1v15(_ rand: Reader, _ pub: Reference<PublicKey>, _ msg: Slice<Byte>) -> (Slice<Byte>, error)

 

func EncryptPKCS1v15(rand Reader, pub Reference<PublicKey>, msg Slice<Byte>) (Slice<Byte>, error)

 

Shared Function EncryptPKCS1v15(rand As Reader, pub As Reference<PublicKey>, msg As Slice<Byte>) As Tuple (Of Slice<Byte>, error)

Parameters:

  • rand:
  • pub:
  • msg:

GenerateKey

 

class method GenerateKey(random: Reader; bits: int): tuple of (PrivateKey, error)

 

static (PrivateKey, error) GenerateKey(Reader random, int bits)

 

static func GenerateKey(_ random: Reader, _ bits: int) -> (PrivateKey, error)

 

func GenerateKey(random Reader, bits int) (PrivateKey, error)

 

Shared Function GenerateKey(random As Reader, bits As int) As Tuple (Of PrivateKey, error)

Parameters:

  • random:
  • bits:

GenerateMultiPrimeKey

 

class method GenerateMultiPrimeKey(random: Reader; nprimes: int; bits: int): tuple of (PrivateKey, error)

 

static (PrivateKey, error) GenerateMultiPrimeKey(Reader random, int nprimes, int bits)

 

static func GenerateMultiPrimeKey(_ random: Reader, _ nprimes: int, _ bits: int) -> (PrivateKey, error)

 

func GenerateMultiPrimeKey(random Reader, nprimes int, bits int) (PrivateKey, error)

 

Shared Function GenerateMultiPrimeKey(random As Reader, nprimes As int, bits As int) As Tuple (Of PrivateKey, error)

Parameters:

  • random:
  • nprimes:
  • bits:

SignPKCS1v15

 

class method SignPKCS1v15(rand: Reader; priv: Reference<PrivateKey>; hash: Hash; hashed: Slice<Byte>): tuple of (Slice<Byte>, error)

 

static (Slice<Byte>, error) SignPKCS1v15(Reader rand, Reference<PrivateKey> priv, Hash hash, Slice<Byte> hashed)

 

static func SignPKCS1v15(_ rand: Reader, _ priv: Reference<PrivateKey>, _ hash: Hash, _ hashed: Slice<Byte>) -> (Slice<Byte>, error)

 

func SignPKCS1v15(rand Reader, priv Reference<PrivateKey>, hash Hash, hashed Slice<Byte>) (Slice<Byte>, error)

 

Shared Function SignPKCS1v15(rand As Reader, priv As Reference<PrivateKey>, hash As Hash, hashed As Slice<Byte>) As Tuple (Of Slice<Byte>, error)

Parameters:

  • rand:
  • priv:
  • hash:
  • hashed:

SignPSS

 

class method SignPSS(rand: Reader; priv: Reference<PrivateKey>; hash: Hash; hashed: Slice<Byte>; opts: Reference<PSSOptions>): tuple of (Slice<Byte>, error)

 

static (Slice<Byte>, error) SignPSS(Reader rand, Reference<PrivateKey> priv, Hash hash, Slice<Byte> hashed, Reference<PSSOptions> opts)

 

static func SignPSS(_ rand: Reader, _ priv: Reference<PrivateKey>, _ hash: Hash, _ hashed: Slice<Byte>, _ opts: Reference<PSSOptions>) -> (Slice<Byte>, error)

 

func SignPSS(rand Reader, priv Reference<PrivateKey>, hash Hash, hashed Slice<Byte>, opts Reference<PSSOptions>) (Slice<Byte>, error)

 

Shared Function SignPSS(rand As Reader, priv As Reference<PrivateKey>, hash As Hash, hashed As Slice<Byte>, opts As Reference<PSSOptions>) As Tuple (Of Slice<Byte>, error)

Parameters:

  • rand:
  • priv:
  • hash:
  • hashed:
  • opts:

VerifyPKCS1v15

 

class method VerifyPKCS1v15(pub: Reference<PublicKey>; hash: Hash; hashed: Slice<Byte>; sig: Slice<Byte>): error

 

static error VerifyPKCS1v15(Reference<PublicKey> pub, Hash hash, Slice<Byte> hashed, Slice<Byte> sig)

 

static func VerifyPKCS1v15(_ pub: Reference<PublicKey>, _ hash: Hash, _ hashed: Slice<Byte>, _ sig: Slice<Byte>) -> error

 

func VerifyPKCS1v15(pub Reference<PublicKey>, hash Hash, hashed Slice<Byte>, sig Slice<Byte>) error

 

Shared Function VerifyPKCS1v15(pub As Reference<PublicKey>, hash As Hash, hashed As Slice<Byte>, sig As Slice<Byte>) As error

Parameters:

  • pub:
  • hash:
  • hashed:
  • sig:

VerifyPSS

 

class method VerifyPSS(pub: Reference<PublicKey>; hash: Hash; hashed: Slice<Byte>; sig: Slice<Byte>; opts: Reference<PSSOptions>): error

 

static error VerifyPSS(Reference<PublicKey> pub, Hash hash, Slice<Byte> hashed, Slice<Byte> sig, Reference<PSSOptions> opts)

 

static func VerifyPSS(_ pub: Reference<PublicKey>, _ hash: Hash, _ hashed: Slice<Byte>, _ sig: Slice<Byte>, _ opts: Reference<PSSOptions>) -> error

 

func VerifyPSS(pub Reference<PublicKey>, hash Hash, hashed Slice<Byte>, sig Slice<Byte>, opts Reference<PSSOptions>) error

 

Shared Function VerifyPSS(pub As Reference<PublicKey>, hash As Hash, hashed As Slice<Byte>, sig As Slice<Byte>, opts As Reference<PSSOptions>) As error

Parameters:

  • pub:
  • hash:
  • hashed:
  • sig:
  • opts: