tuweni / org.apache.tuweni.crypto.sodium / DiffieHelman / SecretKey / forBoxSecretKey

forBoxSecretKey

static fun forBoxSecretKey(secretKey: SecretKey!): SecretKey! (source)

Creates a new secret key based on a box secret key.

Parameters

secretKey - SecretKey!: the box secret key to copy

Return
SecretKey!: A secret key.