Global

Location

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

 

constructor Island

 

constructor

 

__Global()

 

init()

DecryptOAEP

 

// .NET, Island
class method DecryptOAEP(hash: Hash; random: Reader; priv: Reference<PrivateKey>; ciphertext: Slice<Byte>; label: Slice<Byte>): tuple of (Slice<Byte>, error)
// .NET Standard 2.0
class method DecryptOAEP(hash: Hash; random: Reader; priv: Reference<PrivateKey>; ciphertext: Slice<Byte>; label: Slice<Byte>): ValueTuple<Slice<Byte>, error>

 

// .NET, Island
static (Slice<Byte>, error) DecryptOAEP(Hash hash, Reader random, Reference<PrivateKey> priv, Slice<Byte> ciphertext, Slice<Byte> label)
// .NET Standard 2.0
static ValueTuple<Slice<Byte>, error> DecryptOAEP(Hash hash, Reader random, Reference<PrivateKey> priv, Slice<Byte> ciphertext, Slice<Byte> label)

 

// .NET, Island
static func DecryptOAEP(_ hash: Hash, _ random: Reader, _ priv: Reference<PrivateKey>, _ ciphertext: Slice<Byte>, _ label: Slice<Byte>) -> (Slice<Byte>, error)
// .NET Standard 2.0
static func DecryptOAEP(_ hash: Hash, _ random: Reader, _ priv: Reference<PrivateKey>, _ ciphertext: Slice<Byte>, _ label: Slice<Byte>) -> ValueTuple<Slice<Byte>, error>

 

// .NET, Island
func DecryptOAEP(hash Hash, random Reader, priv Reference<PrivateKey>, ciphertext Slice<Byte>, label Slice<Byte>) (Slice<Byte>, error)
// .NET Standard 2.0
func DecryptOAEP(hash Hash, random Reader, priv Reference<PrivateKey>, ciphertext Slice<Byte>, label Slice<Byte>) ValueTuple<Slice<Byte>, error>

Parameters:

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

DecryptPKCS1v15

 

// .NET, Island
class method DecryptPKCS1v15(rand: Reader; priv: Reference<PrivateKey>; ciphertext: Slice<Byte>): tuple of (Slice<Byte>, error)
// .NET Standard 2.0
class method DecryptPKCS1v15(rand: Reader; priv: Reference<PrivateKey>; ciphertext: Slice<Byte>): ValueTuple<Slice<Byte>, error>

 

// .NET, Island
static (Slice<Byte>, error) DecryptPKCS1v15(Reader rand, Reference<PrivateKey> priv, Slice<Byte> ciphertext)
// .NET Standard 2.0
static ValueTuple<Slice<Byte>, error> DecryptPKCS1v15(Reader rand, Reference<PrivateKey> priv, Slice<Byte> ciphertext)

 

// .NET, Island
static func DecryptPKCS1v15(_ rand: Reader, _ priv: Reference<PrivateKey>, _ ciphertext: Slice<Byte>) -> (Slice<Byte>, error)
// .NET Standard 2.0
static func DecryptPKCS1v15(_ rand: Reader, _ priv: Reference<PrivateKey>, _ ciphertext: Slice<Byte>) -> ValueTuple<Slice<Byte>, error>

 

// .NET, Island
func DecryptPKCS1v15(rand Reader, priv Reference<PrivateKey>, ciphertext Slice<Byte>) (Slice<Byte>, error)
// .NET Standard 2.0
func DecryptPKCS1v15(rand Reader, priv Reference<PrivateKey>, ciphertext Slice<Byte>) ValueTuple<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

Parameters:

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

EncryptOAEP

 

// .NET, Island
class method EncryptOAEP(hash: Hash; random: Reader; pub: Reference<PublicKey>; msg: Slice<Byte>; label: Slice<Byte>): tuple of (Slice<Byte>, error)
// .NET Standard 2.0
class method EncryptOAEP(hash: Hash; random: Reader; pub: Reference<PublicKey>; msg: Slice<Byte>; label: Slice<Byte>): ValueTuple<Slice<Byte>, error>

 

// .NET, Island
static (Slice<Byte>, error) EncryptOAEP(Hash hash, Reader random, Reference<PublicKey> pub, Slice<Byte> msg, Slice<Byte> label)
// .NET Standard 2.0
static ValueTuple<Slice<Byte>, error> EncryptOAEP(Hash hash, Reader random, Reference<PublicKey> pub, Slice<Byte> msg, Slice<Byte> label)

 

// .NET, Island
static func EncryptOAEP(_ hash: Hash, _ random: Reader, _ pub: Reference<PublicKey>, _ msg: Slice<Byte>, _ label: Slice<Byte>) -> (Slice<Byte>, error)
// .NET Standard 2.0
static func EncryptOAEP(_ hash: Hash, _ random: Reader, _ pub: Reference<PublicKey>, _ msg: Slice<Byte>, _ label: Slice<Byte>) -> ValueTuple<Slice<Byte>, error>

 

// .NET, Island
func EncryptOAEP(hash Hash, random Reader, pub Reference<PublicKey>, msg Slice<Byte>, label Slice<Byte>) (Slice<Byte>, error)
// .NET Standard 2.0
func EncryptOAEP(hash Hash, random Reader, pub Reference<PublicKey>, msg Slice<Byte>, label Slice<Byte>) ValueTuple<Slice<Byte>, error>

Parameters:

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

EncryptPKCS1v15

 

// .NET, Island
class method EncryptPKCS1v15(rand: Reader; pub: Reference<PublicKey>; msg: Slice<Byte>): tuple of (Slice<Byte>, error)
// .NET Standard 2.0
class method EncryptPKCS1v15(rand: Reader; pub: Reference<PublicKey>; msg: Slice<Byte>): ValueTuple<Slice<Byte>, error>

 

// .NET, Island
static (Slice<Byte>, error) EncryptPKCS1v15(Reader rand, Reference<PublicKey> pub, Slice<Byte> msg)
// .NET Standard 2.0
static ValueTuple<Slice<Byte>, error> EncryptPKCS1v15(Reader rand, Reference<PublicKey> pub, Slice<Byte> msg)

 

// .NET, Island
static func EncryptPKCS1v15(_ rand: Reader, _ pub: Reference<PublicKey>, _ msg: Slice<Byte>) -> (Slice<Byte>, error)
// .NET Standard 2.0
static func EncryptPKCS1v15(_ rand: Reader, _ pub: Reference<PublicKey>, _ msg: Slice<Byte>) -> ValueTuple<Slice<Byte>, error>

 

// .NET, Island
func EncryptPKCS1v15(rand Reader, pub Reference<PublicKey>, msg Slice<Byte>) (Slice<Byte>, error)
// .NET Standard 2.0
func EncryptPKCS1v15(rand Reader, pub Reference<PublicKey>, msg Slice<Byte>) ValueTuple<Slice<Byte>, error>

Parameters:

  • rand:
  • pub:
  • msg:

ErrDecryption

 

class var ErrDecryption: error;

 

static error ErrDecryption

 

static var ErrDecryption: error

 

ErrDecryption error

ErrMessageTooLong

 

class var ErrMessageTooLong: error;

 

static error ErrMessageTooLong

 

static var ErrMessageTooLong: error

 

ErrMessageTooLong error

ErrVerification

 

class var ErrVerification: error;

 

static error ErrVerification

 

static var ErrVerification: error

 

ErrVerification error

GenerateKey

 

// .NET, Island
class method GenerateKey(random: Reader; bits: int): tuple of (Reference<PrivateKey>, error)
// .NET Standard 2.0
class method GenerateKey(random: Reader; bits: int): ValueTuple<Reference<PrivateKey>, error>

 

// .NET, Island
static (Reference<PrivateKey>, error) GenerateKey(Reader random, int bits)
// .NET Standard 2.0
static ValueTuple<Reference<PrivateKey>, error> GenerateKey(Reader random, int bits)

 

// .NET, Island
static func GenerateKey(_ random: Reader, _ bits: int) -> (Reference<PrivateKey>, error)
// .NET Standard 2.0
static func GenerateKey(_ random: Reader, _ bits: int) -> ValueTuple<Reference<PrivateKey>, error>

 

// .NET, Island
func GenerateKey(random Reader, bits int) (Reference<PrivateKey>, error)
// .NET Standard 2.0
func GenerateKey(random Reader, bits int) ValueTuple<Reference<PrivateKey>, error>

Parameters:

  • random:
  • bits:

GenerateMultiPrimeKey

 

// .NET, Island
class method GenerateMultiPrimeKey(random: Reader; nprimes: int; bits: int): tuple of (Reference<PrivateKey>, error)
// .NET Standard 2.0
class method GenerateMultiPrimeKey(random: Reader; nprimes: int; bits: int): ValueTuple<Reference<PrivateKey>, error>

 

// .NET, Island
static (Reference<PrivateKey>, error) GenerateMultiPrimeKey(Reader random, int nprimes, int bits)
// .NET Standard 2.0
static ValueTuple<Reference<PrivateKey>, error> GenerateMultiPrimeKey(Reader random, int nprimes, int bits)

 

// .NET, Island
static func GenerateMultiPrimeKey(_ random: Reader, _ nprimes: int, _ bits: int) -> (Reference<PrivateKey>, error)
// .NET Standard 2.0
static func GenerateMultiPrimeKey(_ random: Reader, _ nprimes: int, _ bits: int) -> ValueTuple<Reference<PrivateKey>, error>

 

// .NET, Island
func GenerateMultiPrimeKey(random Reader, nprimes int, bits int) (Reference<PrivateKey>, error)
// .NET Standard 2.0
func GenerateMultiPrimeKey(random Reader, nprimes int, bits int) ValueTuple<Reference<PrivateKey>, error>

Parameters:

  • random:
  • nprimes:
  • bits:

PSSSaltLengthAuto

 

const PSSSaltLengthAuto: Int64 = 0;

 

const Int64 PSSSaltLengthAuto = 0

 

static let PSSSaltLengthAuto: Int64 = 0

 

const PSSSaltLengthAuto Int64 =  = 0

PSSSaltLengthEqualsHash

 

const PSSSaltLengthEqualsHash: Int64 = -1;

 

const Int64 PSSSaltLengthEqualsHash = -1

 

static let PSSSaltLengthEqualsHash: Int64 = -1

 

const PSSSaltLengthEqualsHash Int64 =  = -1

SignPKCS1v15

 

// .NET, Island
class method SignPKCS1v15(rand: Reader; priv: Reference<PrivateKey>; hash: Hash; hashed: Slice<Byte>): tuple of (Slice<Byte>, error)
// .NET Standard 2.0
class method SignPKCS1v15(rand: Reader; priv: Reference<PrivateKey>; hash: Hash; hashed: Slice<Byte>): ValueTuple<Slice<Byte>, error>

 

// .NET, Island
static (Slice<Byte>, error) SignPKCS1v15(Reader rand, Reference<PrivateKey> priv, Hash hash, Slice<Byte> hashed)
// .NET Standard 2.0
static ValueTuple<Slice<Byte>, error> SignPKCS1v15(Reader rand, Reference<PrivateKey> priv, Hash hash, Slice<Byte> hashed)

 

// .NET, Island
static func SignPKCS1v15(_ rand: Reader, _ priv: Reference<PrivateKey>, _ hash: Hash, _ hashed: Slice<Byte>) -> (Slice<Byte>, error)
// .NET Standard 2.0
static func SignPKCS1v15(_ rand: Reader, _ priv: Reference<PrivateKey>, _ hash: Hash, _ hashed: Slice<Byte>) -> ValueTuple<Slice<Byte>, error>

 

// .NET, Island
func SignPKCS1v15(rand Reader, priv Reference<PrivateKey>, hash Hash, hashed Slice<Byte>) (Slice<Byte>, error)
// .NET Standard 2.0
func SignPKCS1v15(rand Reader, priv Reference<PrivateKey>, hash Hash, hashed Slice<Byte>) ValueTuple<Slice<Byte>, error>

Parameters:

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

SignPSS

 

// .NET, Island
class method SignPSS(rand: Reader; priv: Reference<PrivateKey>; hash: Hash; hashed: Slice<Byte>; opts: Reference<PSSOptions>): tuple of (Slice<Byte>, error)
// .NET Standard 2.0
class method SignPSS(rand: Reader; priv: Reference<PrivateKey>; hash: Hash; hashed: Slice<Byte>; opts: Reference<PSSOptions>): ValueTuple<Slice<Byte>, error>

 

// .NET, Island
static (Slice<Byte>, error) SignPSS(Reader rand, Reference<PrivateKey> priv, Hash hash, Slice<Byte> hashed, Reference<PSSOptions> opts)
// .NET Standard 2.0
static ValueTuple<Slice<Byte>, error> SignPSS(Reader rand, Reference<PrivateKey> priv, Hash hash, Slice<Byte> hashed, Reference<PSSOptions> opts)

 

// .NET, Island
static func SignPSS(_ rand: Reader, _ priv: Reference<PrivateKey>, _ hash: Hash, _ hashed: Slice<Byte>, _ opts: Reference<PSSOptions>) -> (Slice<Byte>, error)
// .NET Standard 2.0
static func SignPSS(_ rand: Reader, _ priv: Reference<PrivateKey>, _ hash: Hash, _ hashed: Slice<Byte>, _ opts: Reference<PSSOptions>) -> ValueTuple<Slice<Byte>, error>

 

// .NET, Island
func SignPSS(rand Reader, priv Reference<PrivateKey>, hash Hash, hashed Slice<Byte>, opts Reference<PSSOptions>) (Slice<Byte>, error)
// .NET Standard 2.0
func SignPSS(rand Reader, priv Reference<PrivateKey>, hash Hash, hashed Slice<Byte>, opts Reference<PSSOptions>) ValueTuple<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

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

Parameters:

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

 

PSSSaltLengthAuto

 

const PSSSaltLengthAuto: Int64 = 0;

 

const Int64 PSSSaltLengthAuto = 0

 

static let PSSSaltLengthAuto: Int64 = 0

 

const PSSSaltLengthAuto Int64 =  = 0

PSSSaltLengthEqualsHash

 

const PSSSaltLengthEqualsHash: Int64 = -1;

 

const Int64 PSSSaltLengthEqualsHash = -1

 

static let PSSSaltLengthEqualsHash: Int64 = -1

 

const PSSSaltLengthEqualsHash Int64 =  = -1

 

ErrDecryption

 

class var ErrDecryption: error;

 

static error ErrDecryption

 

static var ErrDecryption: error

 

ErrDecryption error

ErrMessageTooLong

 

class var ErrMessageTooLong: error;

 

static error ErrMessageTooLong

 

static var ErrMessageTooLong: error

 

ErrMessageTooLong error

ErrVerification

 

class var ErrVerification: error;

 

static error ErrVerification

 

static var ErrVerification: error

 

ErrVerification error

 

DecryptOAEP

 

// .NET, Island
class method DecryptOAEP(hash: Hash; random: Reader; priv: Reference<PrivateKey>; ciphertext: Slice<Byte>; label: Slice<Byte>): tuple of (Slice<Byte>, error)
// .NET Standard 2.0
class method DecryptOAEP(hash: Hash; random: Reader; priv: Reference<PrivateKey>; ciphertext: Slice<Byte>; label: Slice<Byte>): ValueTuple<Slice<Byte>, error>

 

// .NET, Island
static (Slice<Byte>, error) DecryptOAEP(Hash hash, Reader random, Reference<PrivateKey> priv, Slice<Byte> ciphertext, Slice<Byte> label)
// .NET Standard 2.0
static ValueTuple<Slice<Byte>, error> DecryptOAEP(Hash hash, Reader random, Reference<PrivateKey> priv, Slice<Byte> ciphertext, Slice<Byte> label)

 

// .NET, Island
static func DecryptOAEP(_ hash: Hash, _ random: Reader, _ priv: Reference<PrivateKey>, _ ciphertext: Slice<Byte>, _ label: Slice<Byte>) -> (Slice<Byte>, error)
// .NET Standard 2.0
static func DecryptOAEP(_ hash: Hash, _ random: Reader, _ priv: Reference<PrivateKey>, _ ciphertext: Slice<Byte>, _ label: Slice<Byte>) -> ValueTuple<Slice<Byte>, error>

 

// .NET, Island
func DecryptOAEP(hash Hash, random Reader, priv Reference<PrivateKey>, ciphertext Slice<Byte>, label Slice<Byte>) (Slice<Byte>, error)
// .NET Standard 2.0
func DecryptOAEP(hash Hash, random Reader, priv Reference<PrivateKey>, ciphertext Slice<Byte>, label Slice<Byte>) ValueTuple<Slice<Byte>, error>

Parameters:

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

DecryptPKCS1v15

 

// .NET, Island
class method DecryptPKCS1v15(rand: Reader; priv: Reference<PrivateKey>; ciphertext: Slice<Byte>): tuple of (Slice<Byte>, error)
// .NET Standard 2.0
class method DecryptPKCS1v15(rand: Reader; priv: Reference<PrivateKey>; ciphertext: Slice<Byte>): ValueTuple<Slice<Byte>, error>

 

// .NET, Island
static (Slice<Byte>, error) DecryptPKCS1v15(Reader rand, Reference<PrivateKey> priv, Slice<Byte> ciphertext)
// .NET Standard 2.0
static ValueTuple<Slice<Byte>, error> DecryptPKCS1v15(Reader rand, Reference<PrivateKey> priv, Slice<Byte> ciphertext)

 

// .NET, Island
static func DecryptPKCS1v15(_ rand: Reader, _ priv: Reference<PrivateKey>, _ ciphertext: Slice<Byte>) -> (Slice<Byte>, error)
// .NET Standard 2.0
static func DecryptPKCS1v15(_ rand: Reader, _ priv: Reference<PrivateKey>, _ ciphertext: Slice<Byte>) -> ValueTuple<Slice<Byte>, error>

 

// .NET, Island
func DecryptPKCS1v15(rand Reader, priv Reference<PrivateKey>, ciphertext Slice<Byte>) (Slice<Byte>, error)
// .NET Standard 2.0
func DecryptPKCS1v15(rand Reader, priv Reference<PrivateKey>, ciphertext Slice<Byte>) ValueTuple<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

Parameters:

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

EncryptOAEP

 

// .NET, Island
class method EncryptOAEP(hash: Hash; random: Reader; pub: Reference<PublicKey>; msg: Slice<Byte>; label: Slice<Byte>): tuple of (Slice<Byte>, error)
// .NET Standard 2.0
class method EncryptOAEP(hash: Hash; random: Reader; pub: Reference<PublicKey>; msg: Slice<Byte>; label: Slice<Byte>): ValueTuple<Slice<Byte>, error>

 

// .NET, Island
static (Slice<Byte>, error) EncryptOAEP(Hash hash, Reader random, Reference<PublicKey> pub, Slice<Byte> msg, Slice<Byte> label)
// .NET Standard 2.0
static ValueTuple<Slice<Byte>, error> EncryptOAEP(Hash hash, Reader random, Reference<PublicKey> pub, Slice<Byte> msg, Slice<Byte> label)

 

// .NET, Island
static func EncryptOAEP(_ hash: Hash, _ random: Reader, _ pub: Reference<PublicKey>, _ msg: Slice<Byte>, _ label: Slice<Byte>) -> (Slice<Byte>, error)
// .NET Standard 2.0
static func EncryptOAEP(_ hash: Hash, _ random: Reader, _ pub: Reference<PublicKey>, _ msg: Slice<Byte>, _ label: Slice<Byte>) -> ValueTuple<Slice<Byte>, error>

 

// .NET, Island
func EncryptOAEP(hash Hash, random Reader, pub Reference<PublicKey>, msg Slice<Byte>, label Slice<Byte>) (Slice<Byte>, error)
// .NET Standard 2.0
func EncryptOAEP(hash Hash, random Reader, pub Reference<PublicKey>, msg Slice<Byte>, label Slice<Byte>) ValueTuple<Slice<Byte>, error>

Parameters:

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

EncryptPKCS1v15

 

// .NET, Island
class method EncryptPKCS1v15(rand: Reader; pub: Reference<PublicKey>; msg: Slice<Byte>): tuple of (Slice<Byte>, error)
// .NET Standard 2.0
class method EncryptPKCS1v15(rand: Reader; pub: Reference<PublicKey>; msg: Slice<Byte>): ValueTuple<Slice<Byte>, error>

 

// .NET, Island
static (Slice<Byte>, error) EncryptPKCS1v15(Reader rand, Reference<PublicKey> pub, Slice<Byte> msg)
// .NET Standard 2.0
static ValueTuple<Slice<Byte>, error> EncryptPKCS1v15(Reader rand, Reference<PublicKey> pub, Slice<Byte> msg)

 

// .NET, Island
static func EncryptPKCS1v15(_ rand: Reader, _ pub: Reference<PublicKey>, _ msg: Slice<Byte>) -> (Slice<Byte>, error)
// .NET Standard 2.0
static func EncryptPKCS1v15(_ rand: Reader, _ pub: Reference<PublicKey>, _ msg: Slice<Byte>) -> ValueTuple<Slice<Byte>, error>

 

// .NET, Island
func EncryptPKCS1v15(rand Reader, pub Reference<PublicKey>, msg Slice<Byte>) (Slice<Byte>, error)
// .NET Standard 2.0
func EncryptPKCS1v15(rand Reader, pub Reference<PublicKey>, msg Slice<Byte>) ValueTuple<Slice<Byte>, error>

Parameters:

  • rand:
  • pub:
  • msg:

GenerateKey

 

// .NET, Island
class method GenerateKey(random: Reader; bits: int): tuple of (Reference<PrivateKey>, error)
// .NET Standard 2.0
class method GenerateKey(random: Reader; bits: int): ValueTuple<Reference<PrivateKey>, error>

 

// .NET, Island
static (Reference<PrivateKey>, error) GenerateKey(Reader random, int bits)
// .NET Standard 2.0
static ValueTuple<Reference<PrivateKey>, error> GenerateKey(Reader random, int bits)

 

// .NET, Island
static func GenerateKey(_ random: Reader, _ bits: int) -> (Reference<PrivateKey>, error)
// .NET Standard 2.0
static func GenerateKey(_ random: Reader, _ bits: int) -> ValueTuple<Reference<PrivateKey>, error>

 

// .NET, Island
func GenerateKey(random Reader, bits int) (Reference<PrivateKey>, error)
// .NET Standard 2.0
func GenerateKey(random Reader, bits int) ValueTuple<Reference<PrivateKey>, error>

Parameters:

  • random:
  • bits:

GenerateMultiPrimeKey

 

// .NET, Island
class method GenerateMultiPrimeKey(random: Reader; nprimes: int; bits: int): tuple of (Reference<PrivateKey>, error)
// .NET Standard 2.0
class method GenerateMultiPrimeKey(random: Reader; nprimes: int; bits: int): ValueTuple<Reference<PrivateKey>, error>

 

// .NET, Island
static (Reference<PrivateKey>, error) GenerateMultiPrimeKey(Reader random, int nprimes, int bits)
// .NET Standard 2.0
static ValueTuple<Reference<PrivateKey>, error> GenerateMultiPrimeKey(Reader random, int nprimes, int bits)

 

// .NET, Island
static func GenerateMultiPrimeKey(_ random: Reader, _ nprimes: int, _ bits: int) -> (Reference<PrivateKey>, error)
// .NET Standard 2.0
static func GenerateMultiPrimeKey(_ random: Reader, _ nprimes: int, _ bits: int) -> ValueTuple<Reference<PrivateKey>, error>

 

// .NET, Island
func GenerateMultiPrimeKey(random Reader, nprimes int, bits int) (Reference<PrivateKey>, error)
// .NET Standard 2.0
func GenerateMultiPrimeKey(random Reader, nprimes int, bits int) ValueTuple<Reference<PrivateKey>, error>

Parameters:

  • random:
  • nprimes:
  • bits:

SignPKCS1v15

 

// .NET, Island
class method SignPKCS1v15(rand: Reader; priv: Reference<PrivateKey>; hash: Hash; hashed: Slice<Byte>): tuple of (Slice<Byte>, error)
// .NET Standard 2.0
class method SignPKCS1v15(rand: Reader; priv: Reference<PrivateKey>; hash: Hash; hashed: Slice<Byte>): ValueTuple<Slice<Byte>, error>

 

// .NET, Island
static (Slice<Byte>, error) SignPKCS1v15(Reader rand, Reference<PrivateKey> priv, Hash hash, Slice<Byte> hashed)
// .NET Standard 2.0
static ValueTuple<Slice<Byte>, error> SignPKCS1v15(Reader rand, Reference<PrivateKey> priv, Hash hash, Slice<Byte> hashed)

 

// .NET, Island
static func SignPKCS1v15(_ rand: Reader, _ priv: Reference<PrivateKey>, _ hash: Hash, _ hashed: Slice<Byte>) -> (Slice<Byte>, error)
// .NET Standard 2.0
static func SignPKCS1v15(_ rand: Reader, _ priv: Reference<PrivateKey>, _ hash: Hash, _ hashed: Slice<Byte>) -> ValueTuple<Slice<Byte>, error>

 

// .NET, Island
func SignPKCS1v15(rand Reader, priv Reference<PrivateKey>, hash Hash, hashed Slice<Byte>) (Slice<Byte>, error)
// .NET Standard 2.0
func SignPKCS1v15(rand Reader, priv Reference<PrivateKey>, hash Hash, hashed Slice<Byte>) ValueTuple<Slice<Byte>, error>

Parameters:

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

SignPSS

 

// .NET, Island
class method SignPSS(rand: Reader; priv: Reference<PrivateKey>; hash: Hash; hashed: Slice<Byte>; opts: Reference<PSSOptions>): tuple of (Slice<Byte>, error)
// .NET Standard 2.0
class method SignPSS(rand: Reader; priv: Reference<PrivateKey>; hash: Hash; hashed: Slice<Byte>; opts: Reference<PSSOptions>): ValueTuple<Slice<Byte>, error>

 

// .NET, Island
static (Slice<Byte>, error) SignPSS(Reader rand, Reference<PrivateKey> priv, Hash hash, Slice<Byte> hashed, Reference<PSSOptions> opts)
// .NET Standard 2.0
static ValueTuple<Slice<Byte>, error> SignPSS(Reader rand, Reference<PrivateKey> priv, Hash hash, Slice<Byte> hashed, Reference<PSSOptions> opts)

 

// .NET, Island
static func SignPSS(_ rand: Reader, _ priv: Reference<PrivateKey>, _ hash: Hash, _ hashed: Slice<Byte>, _ opts: Reference<PSSOptions>) -> (Slice<Byte>, error)
// .NET Standard 2.0
static func SignPSS(_ rand: Reader, _ priv: Reference<PrivateKey>, _ hash: Hash, _ hashed: Slice<Byte>, _ opts: Reference<PSSOptions>) -> ValueTuple<Slice<Byte>, error>

 

// .NET, Island
func SignPSS(rand Reader, priv Reference<PrivateKey>, hash Hash, hashed Slice<Byte>, opts Reference<PSSOptions>) (Slice<Byte>, error)
// .NET Standard 2.0
func SignPSS(rand Reader, priv Reference<PrivateKey>, hash Hash, hashed Slice<Byte>, opts Reference<PSSOptions>) ValueTuple<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

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

Parameters:

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