reset

@JvmStatic
fun <A : ReKeyableXofAlgorithm> Xof<A>.reset(newKey: ByteArray)(source)

Helper to provide access to the instance backing Xof, if said instance can be re-keyed (such as a org.kotlincrypto.core.mac.Mac).

Throws

IllegalArgumentException

if newKey is unacceptable.