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

openDecryptionStream

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

Open an decryption stream.

Parameters

key - Key!: The key to use for decryption.

header - ByteArray!: The header for the stream.

Exceptions

UnsupportedOperationException - If XChaCha20Poly1305 secret stream support is not available.

Return
SecretDecryptionStream!: The input stream.