KeyExchange class
Key exchange API, securely compute a set of shared keys.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
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
Static Methods
-
computeClientSessionKeys(
KeyPair clientPair, Uint8List serverPublicKey) → SessionKeys - Computes a pair of shared keys using the client's public key, the client's secret key and the server's public key.
-
computeServerSessionKeys(
KeyPair serverPair, Uint8List clientPublicKey) → SessionKeys - Computes a pair of shared keys using the server's public key, the server's secret key and the client's public key.
-
randomKeys(
) → KeyPair - Generates a random secret key and a corresponding public key.
-
randomSeed(
) → Uint8List - Generates a random seed for use in seedKeys.
-
seedKeys(
Uint8List seed) → KeyPair - Generates a secret key and a corresponding public key using given seed.