static fun fromBytes(bytes: Bytes!): Key!
(source)
Create a Key
from an array of bytes.
The byte array must be of length #length()
.
bytes
- Bytes!: The bytes for the key.
Return
Key!: A key, based on the supplied bytes.
static fun fromBytes(bytes: ByteArray!): Key!
(source)
Create a Key
from an array of bytes.
The byte array must be of length #length()
.
bytes
- ByteArray!: The bytes for the key.
UnsupportedOperationException
- If XChaCha20Poly1305 support is not available.
Return
Key!: A key, based on the supplied bytes.