tuweni / org.apache.tuweni.crypto.sodium / XChaCha20Poly1305 / openDecryptionStream

openDecryptionStream

static fun openDecryptionStream(key: Key, header: ByteArray): SecretDecryptionStream (source)

Open an decryption stream.

Parameters

key - The key to use for decryption.

header - The header for the stream.

Exceptions

UnsupportedOperationException - If XChaCha20Poly1305 secret stream support is not available.

Return
The input stream.