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

fromBytes

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

Create a SessionKey from an array of bytes.

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

Parameters

bytes - Bytes!: The bytes for the public key.

Return
SessionKey!: A public key.

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 - ByteArray!: The bytes for the public key.

Return
SessionKey!: A public key.