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

forSecretKey

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

Create a KeyPair from an array of secret key bytes.

Parameters

secretKey - SecretKey!: The secret key.

Return
KeyPair!: A KeyPair.