xOf

@JvmStatic
@JvmOverloads
fun xOf(key: ByteArray, S: ByteArray? = null): Xof<KMAC128>(source)

Produces a new Xof (Extendable-Output Function) for KMAC128

Parameters

S

A user selected customization bit string to define a variant of the function. When no customization is desired, S is set to an empty or null value. (e.g. "My Customization".encodeToByteArray()).

See also

Throws

IllegalArgumentException

if key is empty.