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