RsaKeyPairData class

RSA private key.

There are many formats for storing RSA key parameters. If you are encoding/decoding JWK (JSON Web Key) format, use package:jwk.

Inheritance
Implemented types

Constructors

RsaKeyPairData({required List<int> n, required List<int> e, required List<int> d, required List<int> p, required List<int> q, List<int>? dp, List<int>? dq, List<int>? qi})

Properties

d → List<int>
RSA private key parameter d.
final
dp → List<int>?
RSA private key parameter dp.
final
dq → List<int>?
RSA private key parameter dq.
final
e → List<int>
RSA exponent. This is public information.
final
hasBeenDestroyed → bool
Whether destroy has been called.
no setteroverride
hashCode → int
The hash code for this object.
no setteroverride
n → List<int>
RSA modulus. This is public information.
final
p → List<int>
RSA private key parameter p.
final
publicKey → RsaPublicKey
Public key
final
q → List<int>
RSA private key parameter q.
final
qi → List<int>?
RSA private key parameter qi.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
type → KeyPairType<KeyPairData, PublicKey>
Type of the key pair.
finalinherited

Methods

copy() → RsaKeyPairData
Copies the private key.
override
destroy() → void
Overwrites sensitive parts of the private key data with zeroes and prevents the private key from being used anymore.
inherited
extract() → Future<RsaKeyPairData>
Reads the private key into memory.
override
extractPublicKey() → Future<RsaPublicKey>
Reads the public key.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
override