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

fromBytes

static fun fromBytes(bytes: Bytes): SessionKey (source)
static fun fromBytes(bytes: ByteArray): SessionKey (source)

Create a SessionKey from an array of bytes.

The byte array must be of length #length().

Parameters

bytes - The bytes for the public key.

Return
A public key.