XofFactory
Factory class for implementors of Digest or Mac to wrap them in XofDelegate such that there is a distinct separation of functionality between those class types and Xofs, while still being able to share similarities/capabilities.
e.g.
class SHAKE128: SHAKEDigest {
// ...
companion object: XofFactory() {
@JvmStatic
fun xOf(): Xof = object : XofDelegate(SHAKE128()) {
// ...
}
}
}
Content copied to clipboard
See also
Types
Link copied to clipboard
protected abstract inner class XofDelegate constructor(delegate: A) : Xof<A> , Algorithm, Resettable, Updatable
Wrapper for a Digest, Mac, etc. to act as a delegate to the Xof.