tuweni / org.apache.tuweni.crypto.sodium / HMACSHA512 / Key / fromBytes

fromBytes

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

Create a Key from an array of bytes.

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

Parameters

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

Return
Key!: A secret key.

static fun fromBytes(bytes: ByteArray!): Key! (source)

Create a Key from an array of bytes.

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

Parameters

bytes - ByteArray!: The bytes for the secret key.

Return
Key!: A secret key.