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

Concatenate

class Concatenate (source)

Concatenate elements allocated to Sodium memory.

Constructors

<init>

Concatenate elements allocated to Sodium memory.

Concatenate()

Functions

add

Adds a hash to the elements to concatenate.

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

Adds a HMAC key to the elements to concatenate.

fun add(key: Key!): Concatenate!

Adds a memory allocated value to the elements to concatenate.

fun add(allocated: Allocated!): Concatenate!

Adds a key to the elements to concatenate.

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

Adds a public key to the elements to concatenate.

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

concatenate

Concatenates the values collected into a new safe memory allocation

fun concatenate(): Allocated!