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
constructor
constructor
PrivateKey()
init()
Sub New()
constructor(aPublicKey: PublicKey; aD: Memory<Int>; aPrimes: Slice<Memory<Int>>; aPrecomputed: PrecomputedValues)
PrivateKey(PublicKey aPublicKey, Memory<Int> aD, Slice<Memory<Int>> aPrimes, PrecomputedValues aPrecomputed)
init(_ aPublicKey: PublicKey, _ aD: Memory<Int>, _ aPrimes: Slice<Memory<Int>>, _ aPrecomputed: PrecomputedValues)
Sub New(aPublicKey As PublicKey, aD As Memory<Int>, aPrimes As Slice<Memory<Int>>, aPrecomputed As PrecomputedValues)
Parameters:
- aPublicKey:
- aD:
- aPrimes:
- aPrecomputed:
constructor (PrivateKey)
constructor(value: PrivateKey)
PrivateKey(PrivateKey value)
init(_ value: PrivateKey)
Sub New(value As PrivateKey)
Parameters:
- value:
D
var D: Memory<Int>;
Memory<Int> D
var D: Memory<Int>
D Memory<Int>
FIELD D() As Memory<Int>
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) -> tuple of (Slice<Byte>, error)
func Decrypt(rand Reader, ciphertext Slice<Byte>, opts DecrypterOpts) tuple of (|name=plaintext| Slice<Byte>, |name=err| error)
Function Decrypt(rand As Reader, ciphertext As Slice<Byte>, opts As DecrypterOpts) As Tuple (Of Slice<Byte>, error)
Parameters:
- rand:
- ciphertext:
- opts:
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) -> tuple of (Slice<Byte>, error)
func Decrypt(rand Reader, ciphertext Slice<Byte>, opts DecrypterOpts) tuple of (|name=plaintext| Slice<Byte>, |name=err| error)
Function Decrypt(rand As Reader, ciphertext As Slice<Byte>, opts As DecrypterOpts) As Tuple (Of Slice<Byte>, error)
Parameters:
- rand:
- ciphertext:
- opts:
E
property E: int read write;
int E { get; set; }
var E: int { get{} set{} }
E int
Property E() As int
N
property N: Memory<Int> read write;
Memory<Int> N { get; set; }
var N: Memory<Int> { get{} set{} }
N Memory<Int>
Property N() As Memory<Int>
Precompute
method Precompute
void Precompute()
func Precompute()
// .NET, .NET Standard 2.0
func Precompute()
// Island
func Precompute() void
Sub Precompute()
Precomputed
var Precomputed: PrecomputedValues;
PrecomputedValues Precomputed
var Precomputed: PrecomputedValues
Precomputed PrecomputedValues
FIELD Precomputed() As PrecomputedValues
Primes
var Primes: Slice<Memory<Int>>;
Slice<Memory<Int>> Primes
var Primes: Slice<Memory<Int>>
Primes Slice<Memory<Int>>
FIELD Primes() As Slice<Memory<Int>>
Public Island
method Public: PublicKey
PublicKey Public()
func Public() -> PublicKey
func Public() PublicKey
Function Public() As PublicKey
PublicKey
var PublicKey: PublicKey;
PublicKey PublicKey
var PublicKey: PublicKey
PublicKey PublicKey
FIELD PublicKey() As PublicKey
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) -> tuple of (Slice<Byte>, error)
func Sign(rand Reader, digest Slice<Byte>, opts SignerOpts) tuple of (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:
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) -> tuple of (Slice<Byte>, error)
func Sign(rand Reader, digest Slice<Byte>, opts SignerOpts) tuple of (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:
Size
method Size: int
int Size()
func Size() -> int
func Size() int
Function Size() As int
Validate
method Validate: error
error Validate()
func Validate() -> error
func Validate() error
Function Validate() As error
D
var D: Memory<Int>;
Memory<Int> D
var D: Memory<Int>
D Memory<Int>
FIELD D() As Memory<Int>
Precomputed
var Precomputed: PrecomputedValues;
PrecomputedValues Precomputed
var Precomputed: PrecomputedValues
Precomputed PrecomputedValues
FIELD Precomputed() As PrecomputedValues
Primes
var Primes: Slice<Memory<Int>>;
Slice<Memory<Int>> Primes
var Primes: Slice<Memory<Int>>
Primes Slice<Memory<Int>>
FIELD Primes() As Slice<Memory<Int>>
PublicKey
var PublicKey: PublicKey;
PublicKey PublicKey
var PublicKey: PublicKey
PublicKey PublicKey
FIELD PublicKey() As PublicKey
E
property E: int read write;
int E { get; set; }
var E: int { get{} set{} }
E int
Property E() As int
N
property N: Memory<Int> read write;
Memory<Int> N { get; set; }
var N: Memory<Int> { get{} set{} }
N Memory<Int>
Property N() As Memory<Int>
constructor
constructor
PrivateKey()
init()
Sub New()
constructor(aPublicKey: PublicKey; aD: Memory<Int>; aPrimes: Slice<Memory<Int>>; aPrecomputed: PrecomputedValues)
PrivateKey(PublicKey aPublicKey, Memory<Int> aD, Slice<Memory<Int>> aPrimes, PrecomputedValues aPrecomputed)
init(_ aPublicKey: PublicKey, _ aD: Memory<Int>, _ aPrimes: Slice<Memory<Int>>, _ aPrecomputed: PrecomputedValues)
Sub New(aPublicKey As PublicKey, aD As Memory<Int>, aPrimes As Slice<Memory<Int>>, aPrecomputed As PrecomputedValues)
Parameters:
- aPublicKey:
- aD:
- aPrimes:
- aPrecomputed:
constructor (PrivateKey)
constructor(value: PrivateKey)
PrivateKey(PrivateKey value)
init(_ value: PrivateKey)
Sub New(value As PrivateKey)
Parameters:
- value:
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) -> tuple of (Slice<Byte>, error)
func Decrypt(rand Reader, ciphertext Slice<Byte>, opts DecrypterOpts) tuple of (|name=plaintext| Slice<Byte>, |name=err| error)
Function Decrypt(rand As Reader, ciphertext As Slice<Byte>, opts As DecrypterOpts) As Tuple (Of Slice<Byte>, error)
Parameters:
- rand:
- ciphertext:
- opts:
Public Island
method Public: PublicKey
PublicKey Public()
func Public() -> PublicKey
func Public() PublicKey
Function Public() As PublicKey
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) -> tuple of (Slice<Byte>, error)
func Sign(rand Reader, digest Slice<Byte>, opts SignerOpts) tuple of (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:
Size
method Size: int
int Size()
func Size() -> int
func Size() int
Function Size() As int