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

server

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

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

Parameters

serverKeys - KeyPair!: The server key pair.

clientKey - PublicKey!: The client public key.

Return
SessionKeyPair!: A pair of session keys.