XofFactory

abstract class XofFactory<A : XofAlgorithm>(source)

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()) {
            // ...
        }
    }
}

See also

Constructors

Link copied to clipboard
constructor()

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.