diff --git a/src/sha3-addons.ts b/src/sha3-addons.ts index 7bc069a..d248885 100644 --- a/src/sha3-addons.ts +++ b/src/sha3-addons.ts @@ -54,7 +54,7 @@ function cshakePers(hash: Keccak, opts: cShakeOpts = {}): Keccak { } const gencShake = (suffix: number, blockLen: number, outputLen: number) => - wrapConstructorWithOpts((opts: cShakeOpts = {}) => + wrapXOFConstructorWithOpts((opts: cShakeOpts = {}) => cshakePers(new Keccak(blockLen, suffix, chooseLen(opts, outputLen), true), opts) );