tuweni / org.apache.tuweni.crypto.sodium / KeyExchange

KeyExchange

class KeyExchange (source)

Key exchange.

Allows two parties to securely compute a set of shared keys using their peer's public key and their own secret key.

Types

KeyPair

A KeyExchange key pair.

class KeyPair

PublicKey

A KeyExchange public key.

class PublicKey

SecretKey

A KeyExchange secret key.

class SecretKey : Destroyable

Seed

A KeyExchange key pair seed.

class Seed

SessionKey

A KeyExchange session key.

class SessionKey : Destroyable

SessionKeyPair

A KeyExchange session key pair.

class SessionKeyPair

Constructors

<init>

Key exchange.

KeyExchange()

Functions

client

Computer a pair of session keys for use by a client.

static fun client(clientKeys: KeyPair!, serverKey: PublicKey!): SessionKeyPair!

server

Computer a pair of session keys for use by a client.

static fun server(serverKeys: KeyPair!, clientKey: PublicKey!): SessionKeyPair!