OpenSSHEcdsaKeyPair class

An ECDSA (NIST P-256, P-384, P-521) private/public key pair encoded in OpenSSH format.

Mixed-in types

Constructors

OpenSSHEcdsaKeyPair(String curveId, Uint8List q, BigInt d, String comment)
Creates an OpenSSHEcdsaKeyPair with curveId, public point q, private key d, and comment.
OpenSSHEcdsaKeyPair.readFrom(SSHMessageReader reader)
Reads an OpenSSHEcdsaKeyPair from an OpenSSH binary reader.
factory

Properties

comment String
In-memory key pairs do not use comment probing by default.
final
curveId String
Curve identifier (e.g. nistp256, nistp384, nistp521).
final
d BigInt
Private scalar d.
final
hashCode int
The hash code for this object.
no setterinherited
name String
The algorithm name used when serializing the key (e.g., ssh-rsa, ssh-ed25519, ecdsa-sha2-nistp256).
no setteroverride
q Uint8List
Uncompressed public point Q.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shouldProbe bool
In-memory key pairs do not require probing by default since signing is local and synchronous.
no setterinherited
type String
The signature algorithm name used when signing challenges.
no setteroverride

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
sign(Uint8List data) → SSHEcdsaSignature
Synchronously signs binary data with this private key.
override
toPem() String
Encodes this key pair into PEM string format.
inherited
toPublicKey() SSHHostKey
Exports the public key portion of this key pair as an SSHHostKey.
override
toString() String
A string representation of this object.
override
writeTo(SSHMessageWriter writer) → void
Serializes private key components into writer.
override

Operators

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