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

forSecretKey

static fun forSecretKey(secretKey: SecretKey!): KeyPair! (source)

Create a KeyPair from a secret key.

Parameters

secretKey - SecretKey!: The secret key.

Return
KeyPair!: A KeyPair.