DiffieHellman 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

Constructors

DiffieHellman([BigInt p, BigInt g, int secretBits])
DiffieHellman.group1()
https://tools.ietf.org/html/rfc2409 Second Oakley Group
DiffieHellman.group14()
https://tools.ietf.org/html/rfc3526 Oakley Group 14

Properties

e BigInt
read / write
f BigInt
read / write
g BigInt
read / write
gexMax int
read / write
gexMin int
read / write
gexPref int
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
p BigInt
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
secretBits int
read / write
x BigInt
read / write

Methods

computeSecret(BigInt f) BigInt
generatePair(Random random) → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

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