static fun openEncryptionStream(key: Key): SecretEncryptionStream
Open an encryption stream.
key - The key to encrypt for.
key
UnsupportedOperationException - If XChaCha20Poly1305 secret stream support is not available.
UnsupportedOperationException
Return The input stream.