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

push

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

Push a message to this secret stream.

Parameters

clearText - Bytes!: The message to encrypt.

Return
Bytes!: The encrypted message.

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

Push a message to this secret stream.

Parameters

clearText - ByteArray!: The message to encrypt.

Return
ByteArray!: The encrypted message.

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

Push a message to this secret stream.

Parameters

clearText - Bytes!: The message to encrypt.

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

Return
Bytes!: The encrypted message.

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

Push a message to this secret stream.

Parameters

clearText - ByteArray!: The message to encrypt.

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

Return
ByteArray!: The encrypted message.