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

fromBytes

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

Create a GenericHash.Key from an array of bytes.

Parameters

bytes - Bytes!: The bytes for the key.

Return
Key!: A key.

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

Create a GenericHash.Key from an array of bytes.

Parameters

bytes - ByteArray!: The bytes for the key.

Return
Key!: A key.