SSHKexDH class
The Diffie-Hellman (DH) key exchange provides a shared secret that cannot be determined by either party alone. https://tools.ietf.org/html/rfc4253#section-8
- Implemented types
Constructors
- SSHKexDH.new({required BigInt p, required BigInt g, required int secretBits})
- SSHKexDH.group1()
-
https://tools.ietf.org/html/rfc2409 Second Oakley Group
factory
- SSHKexDH.group14()
-
https://tools.ietf.org/html/rfc3526 Oakley Group 14
factory
Properties
- e ↔ BigInt
-
e = g^x mod p, used as public key
latefinal
- g → BigInt
-
g is a generator for a subgroup of GF(p)
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- p → BigInt
-
p is a large safe prime
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- secretBits → int
-
Length of the random number x
final
- x ↔ BigInt
-
Random number, used as private key
latefinal
Methods
-
computeSecret(
BigInt f) → BigInt - Compute the shared secret K
-
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