RSAPrivateKey class

Private key for RSA encryption

Constructors

RSAPrivateKey(BigInt n, BigInt e, BigInt d, BigInt p, BigInt q)
RSAPrivateKey.fromASN1(dynamic input, {bool fromPkcs1 = true})
factory
RSAPrivateKey.fromPEM(String input)
factory
RSAPrivateKey.fromPrimaries(BigInt p, BigInt q, {BigInt? publicExponent})
factory
RSAPrivateKey.generate(int keySize, {BigInt? publicExponent})
factory

Properties

bitSize int
no setter
blockSize int
no setter
d BigInt
Private exponent
final
e BigInt
Public exponent
final
engine RSADecryptionEngine
no setter
hashCode int
The hash code for this object.
no setterinherited
n BigInt
Modulus
final
p BigInt
Prime p
final
q BigInt
Prime q
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
toPublicKey RSAPublicKey
no setter

Methods

decrypt(dynamic input, {Padder? padder, bool raw = false}) Iterable<int>
decryptOaep(dynamic input, {OAEPPadder? oaepPadder}) Iterable<int>
decryptOaepToUtf8(dynamic input, {OAEPPadder? oaepPadder}) String
decryptPkcs1v15(dynamic input) Iterable<int>
decryptPkcs1v15ToUtf8(dynamic input) String
decryptToUtf8(dynamic input, {Padder? padder, bool raw = false}) String
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
signPss(dynamic msg, {Mgf? mgf, Hash? hasher, int saltLength = 10, Random? saltGenerator, RsaSsaPssSigner? signer}) Iterable<int>
signPssToBase64(dynamic msg, {Mgf? mgf, Hash? hasher, int saltLength = 10, Random? saltGenerator, RsaSsaPssSigner? signer}) String
signSsaPkcs1v15(dynamic msg, {EmsaHasher? hasher}) List<int>
signSsaPkcs1v15ToBase64(dynamic msg, {EmsaHasher? hasher}) String
toASN1({bool toPkcs1 = true, Iterable<ASN1Object>? parameters}) String
toPem({bool toPkcs1 = true}) String
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited