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

add

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

Adds a hash to the elements to concatenate.

Parameters

hash - a generic hash

Return
the Concatenate instance

fun add(key: Key): Concatenate (source)

Adds a HMAC key to the elements to concatenate.

Parameters

key - a HMAC key

Return
the Concatenate instance

fun add(allocated: Allocated): Concatenate (source)

Adds a memory allocated value to the elements to concatenate.

Parameters

allocated - a memory allocated value

Return
the Concatenate instance

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

Adds a key to the elements to concatenate.

Parameters

key - a Diffie-Helman key

Return
the Concatenate instance

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

Adds a public key to the elements to concatenate.

Parameters

key - a public key

Return
the Concatenate instance

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

Adds a key to the elements to concatenate.

Parameters

key - a secret key

Return
the Concatenate instance