crypto / org.apache.tuweni.crypto.sodium / Concatenate

Concatenate

class Concatenate (source)

Concatenate elements allocated to Sodium memory.

Constructors

<init>

Concatenate()

Concatenate elements allocated to Sodium memory.

Functions

add

fun add(hash: Hash): Concatenate
fun add(hash: Hash): Concatenate

Adds a hash to the elements to concatenate.

fun add(key: Key): Concatenate

Adds a HMAC key to the elements to concatenate.

fun add(allocated: Allocated): Concatenate

Adds a memory allocated value to the elements to concatenate.

fun add(key: Secret): Concatenate
fun add(key: SecretKey): Concatenate
fun add(key: SecretKey): Concatenate

Adds a key to the elements to concatenate.

fun add(key: PublicKey): Concatenate
fun add(key: PublicKey): Concatenate

Adds a public key to the elements to concatenate.

concatenate

fun concatenate(): Allocated

Concatenates the values collected into a new safe memory allocation