EcKeyPair class abstract
An opaque reference to P-256 / P-384 / P-521 key pair.
The private key bytes of the key may not be in the memory. The private key bytes may not even be extractable. If the private key is in memory, it's an instance of EcKeyPairData.
The public key is always EcPublicKey.
This class is used with algorithms such as Ecdh.p256 and Ecdsa.p256.
There are many formats for storing elliptic curve key parameters. If you are encoding/decoding JWK (JSON Web Key) format, use package:jwk.
- Inheritance
- Implementers
Constructors
- EcKeyPair.constructor()
- Constructor for subclasses.
Properties
- hasBeenDestroyed → bool
-
Whether destroy has been called.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
destroy(
) → void -
Overwrites sensitive parts of the private key data with zeroes and
prevents the private key from being used anymore.
inherited
-
extract(
) → Future< EcKeyPairData> -
Reads the private key into memory.
override
-
extractPublicKey(
) → Future< EcPublicKey> -
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.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited