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

SecretEncryptionStream

interface SecretEncryptionStream : Destroyable (source)

Used to encrypt a sequence of messages, or a single message split into arbitrary chunks.

Functions

header

open fun header(): Bytes

headerArray

abstract fun headerArray(): ByteArray

push

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

Push a message to this secret stream.

pushLast

open fun pushLast(clearText: Bytes): Bytes
open fun pushLast(clearText: ByteArray): ByteArray

Push the final message to this secret stream.