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

openEncryptionStream

static fun openEncryptionStream(key: Key!): SecretEncryptionStream! (source)

Open an encryption stream.

Parameters

key - Key!: The key to encrypt for.

Exceptions

UnsupportedOperationException - If XChaCha20Poly1305 secret stream support is not available.

Return
SecretEncryptionStream!: The input stream.