SSHKexNist class

The Elliptic Curve Diffie-Hellman (ECDH) key exchange method generates a shared secret from an ephemeral local elliptic curve private key and ephemeral remote elliptic curve public key.

Implemented types

Constructors

SSHKexNist.new({required ECDomainParameters curve, required int secretBits})
SSHKexNist.p256()
SSHKexNist.p384()
SSHKexNist.p521()

Properties

curve → ECDomainParameters
The elliptic curve domain parameters.
final
hashCode int
The hash code for this object.
no setterinherited
privateKey BigInt
Secret random number.
latefinal
publicKey Uint8List
Public key.
latefinaloverride-getter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
secretBits int
The length of the shared secret in bytes.
final

Methods

computeSecret(Uint8List remotePubilcKey) BigInt
Compute shared secret.
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