EcPublicKey class

Public key of 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

Constructors

EcPublicKey({required List<int> x, required List<int> y, required KeyPairType<KeyPairData, PublicKey> type})

Properties

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.
final
x List<int>
Elliptic curve public key component x.
final
y List<int>
Elliptic curve public key component y.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDer() Uint8List
Constructs DER encoding of this public key.
toString() String
A string representation of this object.
override

Operators

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

Static Methods

parseDer(List<int> der, {required KeyPairType<KeyPairData, PublicKey> type}) EcPublicKey
Parses DER-encoded EC public key.