tuweni / org.apache.tuweni.crypto.sodium / SecretEncryptionStream / push

push

open fun push(clearText: Bytes): Bytes (source)
open fun push(clearText: ByteArray): ByteArray (source)

Push a message to this secret stream.

Parameters

clearText - The message to encrypt.

Return
The encrypted message.

open fun push(clearText: Bytes, isFinal: Boolean): Bytes (source)
abstract fun push(clearText: ByteArray, isFinal: Boolean): ByteArray (source)

Push a message to this secret stream.

Parameters

clearText - The message to encrypt.

isFinal - true if this is the final message that will be sent on this stream.

Return
The encrypted message.