setKey

fun setKey(key: ByteArray)

Updates the existing key with the given key, if it is not in use.

Parameters

key

New key.

Throws

If the key is already in use.