EcKeyPairData class

P-256 / P-384 / P-521 key pair.

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

Algorithms that use this class

Inheritance
Implemented types

Constructors

EcKeyPairData({required List<int> d, required List<int> x, required List<int> y, required KeyPairType<KeyPairData, PublicKey> type})
Constructs a private key with elliptic curve parameters.

Properties

d List<int>
Elliptic curve parameter d.
final
hashCode int
The hash code for this object.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type KeyPairType<KeyPairData, PublicKey>
Type of the key pair.
finalinherited
x List<int>
Elliptic curve parameter x.
final
y List<int>
Elliptic curve parameter y.
final

Methods

extract() Future<EcKeyPairData>
Returns KeyPairData.
override
extractPublicKey() Future<EcPublicKey>
Returns PublicKey.
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